Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_pTX_phX_all.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001831/0.001831, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002318/0.002318, allocations: 212.5 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2285/0.2285, allocations: 46.93 MB / 360.8 MB, free: 4.188 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_pTX_phX_all,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_R134a_pTX_phX_all",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.R134a_pTX_phX_all,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Media_TestOnly_R134a_pTX_phX_all",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003335/0.003335, allocations: 75.88 kB / 0.4962 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3696/0.3729, allocations: 66.09 MB / 0.5607 GB, free: 4.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.R134a_pTX_phX_all): time 0.01412/0.3871, allocations: 8.795 MB / 0.5693 GB, free: 11.49 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01816/0.4052, allocations: 14.16 MB / 0.5832 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.385e-05/0.4053, allocations: 4 kB / 0.5832 GB, free: 13.29 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002266/0.4055, allocations: 47.72 kB / 0.5832 GB, free: 13.24 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008907/0.4145, allocations: 2.461 MB / 0.5856 GB, free: 10.77 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001268/0.4146, allocations: 11.98 kB / 0.5856 GB, free: 10.76 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002749/0.4149, allocations: 127.2 kB / 0.5857 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.6e-05/0.4149, allocations: 8 kB / 0.5857 GB, free: 10.62 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002282/0.4152, allocations: 55.72 kB / 0.5858 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001273/0.4153, allocations: 51.83 kB / 0.5858 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.4153, allocations: 4 kB / 0.5859 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0148/0.4301, allocations: 7.364 MB / 0.593 GB, free: 3.137 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 3.965e-05/0.4301, allocations: 15.91 kB / 0.5931 GB, free: 3.121 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001261/0.4303, allocations: 39.86 kB / 0.5931 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01597/0.4462, allocations: 6.34 MB / 0.5993 GB, free: 12.73 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.732e-05/0.4463, allocations: 4 kB / 0.5993 GB, free: 12.73 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4463, allocations: 0 / 0.5993 GB, free: 12.73 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.4463, allocations: 0 / 0.5993 GB, free: 12.73 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.004281/0.4505, allocations: 0.6714 MB / 0.5999 GB, free: 12.02 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.645e-05/0.4506, allocations: 12.03 kB / 0.6 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.579e-05/0.4507, allocations: 38.55 kB / 0.6 GB, free: 11.96 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002423/0.4509, allocations: 23.94 kB / 0.6 GB, free: 11.94 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.451, allocations: 109.2 kB / 0.6001 GB, free: 11.81 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.4511, allocations: 11.98 kB / 0.6001 GB, free: 11.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.4511, allocations: 4 kB / 0.6001 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004157/0.4515, allocations: 141.5 kB / 0.6003 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.4515, allocations: 0 / 0.6003 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.623e-05/0.4515, allocations: 0 / 0.6003 GB, free: 11.65 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.4515, allocations: 4 kB / 0.6003 GB, free: 11.64 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000358/0.4519, allocations: 111.9 kB / 0.6004 GB, free: 11.54 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008228/0.4527, allocations: 0.5926 MB / 0.601 GB, free: 10.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/0.4532, allocations: 126.6 kB / 0.6011 GB, free: 10.71 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.4533, allocations: 52.81 kB / 0.6011 GB, free: 10.66 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002316/0.4556, allocations: 0.6399 MB / 0.6018 GB, free: 10.02 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003754/0.456, allocations: 143.2 kB / 0.6019 GB, free: 9.863 MB / 446.1 MB Notification: Performance of pre-optimization done (n=16): time 1.943e-06/0.456, allocations: 0 / 0.6019 GB, free: 9.863 MB / 446.1 MB Notification: Performance of matching and sorting (n=16): time 0.0007877/0.4568, allocations: 235.8 kB / 0.6021 GB, free: 9.629 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.27e-05/0.4568, allocations: 55.41 kB / 0.6022 GB, free: 9.562 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.4569, allocations: 105.8 kB / 0.6023 GB, free: 9.449 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.041e-05/0.457, allocations: 29.7 kB / 0.6023 GB, free: 9.414 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/0.457, allocations: 95.81 kB / 0.6024 GB, free: 9.316 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.4571, allocations: 51.62 kB / 0.6024 GB, free: 9.266 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.4571, allocations: 37.7 kB / 0.6025 GB, free: 9.223 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.4573, allocations: 318.8 kB / 0.6028 GB, free: 8.902 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001352/0.4574, allocations: 43.97 kB / 0.6028 GB, free: 8.859 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.4576, allocations: 76.3 kB / 0.6029 GB, free: 8.781 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.4579, allocations: 101.7 kB / 0.603 GB, free: 8.676 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.4579, allocations: 0 / 0.603 GB, free: 8.676 MB / 446.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004634/0.4583, allocations: 164 kB / 0.6032 GB, free: 8.512 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.4583, allocations: 4 kB / 0.6032 GB, free: 8.508 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.4584, allocations: 0 / 0.6032 GB, free: 8.508 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.644e-05/0.4584, allocations: 0 / 0.6032 GB, free: 8.508 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001234/0.4585, allocations: 27.98 kB / 0.6032 GB, free: 8.48 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-06/0.4585, allocations: 0 / 0.6032 GB, free: 8.48 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.4586, allocations: 24.12 kB / 0.6032 GB, free: 8.457 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.928e-05/0.4586, allocations: 15.98 kB / 0.6032 GB, free: 8.441 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 (dT,$PRE.dT,state.phase,p,$PRE.p,state_check.phase,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 14 * 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 0.0001189/0.4588, allocations: 117.8 kB / 0.6033 GB, free: 8.316 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.034e-05/0.4588, allocations: 11.95 kB / 0.6033 GB, free: 8.305 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006523/0.4595, allocations: 369.2 kB / 0.6037 GB, free: 7.938 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004671/0.4599, allocations: 301.5 kB / 0.604 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.46, allocations: 0 / 0.604 GB, free: 7.637 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.46, allocations: 3.984 kB / 0.604 GB, free: 7.633 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001193/0.4612, allocations: 0.6807 MB / 0.6047 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.584e-06/0.4612, allocations: 0 / 0.6047 GB, free: 6.902 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/0.4613, allocations: 27.98 kB / 0.6047 GB, free: 6.875 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.614e-06/0.4613, allocations: 4 kB / 0.6047 GB, free: 6.871 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.706e-05/0.4613, allocations: 7.938 kB / 0.6047 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.4613, allocations: 0 / 0.6047 GB, free: 6.863 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.4613, allocations: 4 kB / 0.6047 GB, free: 6.859 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000797/0.4621, allocations: 463 kB / 0.6051 GB, free: 6.391 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.685e-05/0.4622, allocations: 19.81 kB / 0.6052 GB, free: 6.371 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.439e-05/0.4622, allocations: 8 kB / 0.6052 GB, free: 6.363 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.4624, allocations: 24.03 kB / 0.6052 GB, free: 6.34 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.771e-05/0.4624, allocations: 19.97 kB / 0.6052 GB, free: 6.32 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.636e-05/0.4625, allocations: 15.98 kB / 0.6052 GB, free: 6.305 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.322e-05/0.4625, allocations: 79.28 kB / 0.6053 GB, free: 6.227 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4625, allocations: 0 / 0.6053 GB, free: 6.227 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003081/0.4656, allocations: 454.7 kB / 0.6057 GB, free: 5.781 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (T) * Number of discrete variables: 10 (state.phase,$cse3.phase,$cse4,$cse5.phase,$whenCondition3,$whenCondition2,$whenCondition1,dT,state_check.phase,p) * Number of discrete states: 2 (dT,p) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * 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.02031/0.4859, allocations: 5.787 MB / 0.6114 GB, free: 15.96 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006342/0.4865, allocations: 201.4 kB / 0.6116 GB, free: 15.76 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/0.4865, allocations: 0 / 0.6116 GB, free: 15.76 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002492/0.4868, allocations: 107.8 kB / 0.6117 GB, free: 15.65 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006312/0.4874, allocations: 67.91 kB / 0.6117 GB, free: 15.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005429/0.4929, allocations: 1.965 MB / 0.6137 GB, free: 13.53 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.4933, allocations: 0.7212 MB / 0.6144 GB, free: 12.78 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002065/0.4935, allocations: 56.8 kB / 0.6144 GB, free: 12.72 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001059/0.4936, allocations: 47.42 kB / 0.6145 GB, free: 12.68 MB / 462.1 MB Notification: Performance of SimCode: time 8.11e-07/0.4936, allocations: 0 / 0.6145 GB, free: 12.68 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07201/0.5656, allocations: 23.61 MB / 0.6375 GB, free: 5.152 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.37/12.93, allocations: 4 kB / 0.6375 GB, free: 5.148 MB / 478.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_pTX_phX_all.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_pTX_phX_all.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_pTX_phX_all.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_pTX_phX_all.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_pTX_phX_all_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Media_TestOnly_R134a_pTX_phX_all_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Media_TestOnly_R134a_pTX_phX_all.fmu > ModelicaTest_trunk_ModelicaTest.Media.TestOnly.R134a_pTX_phX_all.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.61443402385339] Failed to read output from testmodel.py, exit status != 0: ['time'] 13.070790062192827 13.086680008 12.63689869 Calling exit ...