Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007566/0.0007565, allocations: 92 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.004749/0.004749, allocations: 172.3 kB / 16.26 MB, free: 6.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.319/1.319, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1261/0.1261, allocations: 2.787 MB / 294.2 MB, free: 4.27 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002985/0.0002986, allocations: 8 kB / 356.3 MB, free: 3.879 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09548/0.0958, allocations: 51.25 MB / 407.6 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.007183/0.103, allocations: 7.13 MB / 414.7 MB, free: 9.414 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004229/0.1035, allocations: 0.5411 MB / 415.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.589e-05/0.1035, allocations: 0 / 415.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001936/0.1037, allocations: 59.73 kB / 415.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.487e-05/0.1037, allocations: 15.84 kB / 415.3 MB, free: 8.797 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001253/0.1039, allocations: 27.84 kB / 415.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.432e-05/0.104, allocations: 43.67 kB / 415.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.586e-05/0.104, allocations: 0 / 415.4 MB, free: 8.727 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.41e-05/0.104, allocations: 11.94 kB / 415.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.051e-05/0.1041, allocations: 7.938 kB / 415.4 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.143e-05/0.1041, allocations: 4 kB / 415.4 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001635/0.1043, allocations: 43.92 kB / 415.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.036e-05/0.1043, allocations: 0 / 415.4 MB, free: 8.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.1043, allocations: 45.58 kB / 415.5 MB, free: 8.609 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001275/0.1045, allocations: 43.88 kB / 415.5 MB, free: 8.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.1045, allocations: 4 kB / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1045, allocations: 0 / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.1045, allocations: 0 / 415.5 MB, free: 8.562 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0002932/0.1048, allocations: 335.5 kB / 415.9 MB, free: 8.188 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.975e-05/0.1048, allocations: 12.03 kB / 415.9 MB, free: 8.176 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.511e-05/0.1049, allocations: 34.73 kB / 415.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.169e-05/0.1049, allocations: 4.844 kB / 415.9 MB, free: 8.129 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.519e-05/0.105, allocations: 172.3 kB / 416.1 MB, free: 7.922 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.077e-05/0.105, allocations: 4.312 kB / 416.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.942e-06/0.105, allocations: 8.312 kB / 416.1 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001079/0.1051, allocations: 57.62 kB / 416.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.1052, allocations: 0 / 416.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.803e-06/0.1052, allocations: 0 / 416.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.584e-06/0.1052, allocations: 0 / 416.2 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.451e-05/0.1052, allocations: 31.92 kB / 416.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.1054, allocations: 161.7 kB / 416.3 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.919e-05/0.1054, allocations: 54.5 kB / 416.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.904e-05/0.1055, allocations: 40.89 kB / 416.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.1055, allocations: 3.938 kB / 416.4 MB, free: 7.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.1055, allocations: 34.55 kB / 416.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 9.32e-07/0.1055, allocations: 0 / 416.5 MB, free: 7.457 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.000204/0.1058, allocations: 121.6 kB / 416.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.247e-05/0.1058, allocations: 51.41 kB / 416.6 MB, free: 7.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.341e-05/0.1058, allocations: 89.86 kB / 416.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.176e-05/0.1059, allocations: 25.7 kB / 416.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.509e-05/0.1059, allocations: 84.41 kB / 416.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.777e-05/0.106, allocations: 43.3 kB / 416.9 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.482e-05/0.106, allocations: 17.72 kB / 416.9 MB, free: 6.988 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001023/0.1061, allocations: 322.8 kB / 417.2 MB, free: 6.664 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.46e-05/0.1061, allocations: 19.94 kB / 417.2 MB, free: 6.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.247e-05/0.1062, allocations: 27.98 kB / 417.3 MB, free: 6.617 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.456e-05/0.1062, allocations: 65.09 kB / 417.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.1062, allocations: 0 / 417.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 9.946e-05/0.1063, allocations: 93.48 kB / 417.4 MB, free: 6.457 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.1064, allocations: 8.062 kB / 417.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1064, allocations: 0 / 417.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.045e-05/0.1064, allocations: 0 / 417.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.102e-06/0.1064, allocations: 0 / 417.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1064, allocations: 0 / 417.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.365e-05/0.1064, allocations: 11.84 kB / 417.4 MB, free: 6.438 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.1064, allocations: 0 / 417.4 MB, free: 6.438 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.635e-05/0.1065, allocations: 109.8 kB / 417.5 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.808e-06/0.1066, allocations: 11.84 kB / 417.6 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.1067, allocations: 97.77 kB / 417.6 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.1067, allocations: 8 kB / 417.7 MB, free: 6.203 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1067, allocations: 3.984 kB / 417.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.274e-06/0.1067, allocations: 0 / 417.7 MB, free: 6.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001093/0.1068, allocations: 169.5 kB / 417.8 MB, free: 5.984 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.1069, allocations: 3.938 kB / 417.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.506e-06/0.1069, allocations: 0 / 417.8 MB, free: 5.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1069, allocations: 7.938 kB / 417.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.412e-06/0.1069, allocations: 7.938 kB / 417.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1069, allocations: 0 / 417.8 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.1069, allocations: 4.031 kB / 417.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001168/0.107, allocations: 121 kB / 418 MB, free: 5.824 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.98e-05/0.1071, allocations: 88.95 kB / 418.1 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.1071, allocations: 3.984 kB / 418.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.597e-05/0.1071, allocations: 0 / 418.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.969e-06/0.1071, allocations: 0 / 418.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-06/0.1071, allocations: 0 / 418.1 MB, free: 5.715 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.021e-05/0.1072, allocations: 79.31 kB / 418.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1072, allocations: 0 / 418.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000182/0.1074, allocations: 12 kB / 418.1 MB, free: 5.625 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004722/0.1078, allocations: 0.681 MB / 418.8 MB, free: 4.922 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001058/0.1079, allocations: 67.98 kB / 418.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.108, allocations: 0 / 418.9 MB, free: 4.855 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.989e-05/0.108, allocations: 32 kB / 418.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.1083, allocations: 36.08 kB / 419 MB, free: 4.789 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004147/0.1087, allocations: 263.9 kB / 419.2 MB, free: 4.488 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000247/0.109, allocations: 0.6887 MB / 419.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.691e-05/0.109, allocations: 0 / 419.9 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.514e-05/0.1091, allocations: 19.42 kB / 419.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of SimCode: time 2.034e-06/0.1091, allocations: 0 / 419.9 MB, free: 3.754 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01122/0.1203, allocations: 2.114 MB / 422 MB, free: 1.75 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002141/0.1205, allocations: 228.9 kB / 422.3 MB, free: 1.496 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.703/1.823, allocations: 4.062 kB / 422.3 MB, free: 1.492 MB / 350.1 MB (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestSat_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestSat.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe 2>&1)