Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.R134a.R134a1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00163/0.001635, allocations: 182.1 kB / 16.4 MB, free: 5.754 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.033/2.033, allocations: 205.4 MB / 222.5 MB, free: 9.105 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001144/0.001144, allocations: 87.41 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000385/0.0003852, allocations: 8 kB / 327 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3415/0.3419, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.R134a.R134a1): time 0.02959/0.3716, allocations: 22.55 MB / 397.2 MB, free: 26.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02829/0.3999, allocations: 20.77 MB / 417.9 MB, free: 5.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004625/0.4005, allocations: 7.938 kB / 418 MB, free: 5.422 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009691/0.4014, allocations: 243 kB / 418.2 MB, free: 5.184 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007351/0.4022, allocations: 259.3 kB / 418.4 MB, free: 4.93 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01247/0.4147, allocations: 3.099 MB / 421.5 MB, free: 1.828 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001068/0.4158, allocations: 0.5311 MB / 422.1 MB, free: 1.293 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002089/0.416, allocations: 83.45 kB / 422.2 MB, free: 1.211 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006066/0.4166, allocations: 287.2 kB / 422.4 MB, free: 0.9297 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002999/0.4169, allocations: 195.2 kB / 422.6 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.309e-05/0.417, allocations: 19.94 kB / 422.6 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1543/0.5713, allocations: 53.56 MB / 476.2 MB, free: 11.12 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002231/0.5716, allocations: 79.78 kB / 476.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000228/0.5719, allocations: 109.5 kB / 476.4 MB, free: 10.93 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.06251/0.6344, allocations: 10.63 MB / 487 MB, free: 288 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.6345, allocations: 0 / 487 MB, free: 288 kB / 362.7 MB Notification: Performance of FrontEnd: time 2.625e-06/0.6345, allocations: 0 / 487 MB, free: 288 kB / 362.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.6345, allocations: 0 / 487 MB, free: 288 kB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.008512/0.643, allocations: 1.065 MB / 488.1 MB, free: 15.17 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.433e-05/0.6431, allocations: 12.03 kB / 488.1 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001222/0.6432, allocations: 74.47 kB / 488.2 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007133/0.644, allocations: 75.45 kB / 488.2 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006231/0.6446, allocations: 319.4 kB / 488.6 MB, free: 14.65 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.446e-05/0.6447, allocations: 20.66 kB / 488.6 MB, free: 14.63 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.272e-05/0.6448, allocations: 39.94 kB / 488.6 MB, free: 14.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.6461, allocations: 455.8 kB / 489.1 MB, free: 14.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.321e-05/0.6461, allocations: 4 kB / 489.1 MB, free: 14.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.105e-05/0.6462, allocations: 12 kB / 489.1 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.525e-05/0.6462, allocations: 12 kB / 489.1 MB, free: 14.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001151/0.6474, allocations: 386.3 kB / 489.5 MB, free: 13.7 MB / 378.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005688/0.6531, allocations: 2.949 MB / 492.4 MB, free: 10.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001031/0.6542, allocations: 287.7 kB / 492.7 MB, free: 10.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003877/0.6581, allocations: 2.545 MB / 495.2 MB, free: 7.184 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.505e-05/0.6582, allocations: 42.55 kB / 495.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 3.136e-06/0.6582, allocations: 0 / 495.3 MB, free: 7.133 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.007911/0.6661, allocations: 1.289 MB / 496.6 MB, free: 5.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.236e-05/0.6662, allocations: 55.41 kB / 496.6 MB, free: 5.703 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003799/0.6666, allocations: 258.5 kB / 496.9 MB, free: 5.441 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.6666, allocations: 29.7 kB / 496.9 MB, free: 5.406 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001899/0.6668, allocations: 250.4 kB / 497.2 MB, free: 5.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001376/0.667, allocations: 126.2 kB / 497.3 MB, free: 5.035 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.667, allocations: 4 kB / 497.3 MB, free: 5.031 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.6672, allocations: 338.8 kB / 497.6 MB, free: 4.691 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003163/0.6675, allocations: 108.8 kB / 497.7 MB, free: 4.586 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.668, allocations: 218.1 kB / 497.9 MB, free: 4.324 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004087/0.6684, allocations: 159.9 kB / 498.1 MB, free: 4.168 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/0.6684, allocations: 0 / 498.1 MB, free: 4.168 MB / 378.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001342/0.6698, allocations: 443.1 kB / 498.5 MB, free: 3.723 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.6698, allocations: 8 kB / 498.5 MB, free: 3.715 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.6698, allocations: 4 kB / 498.5 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007808/0.6776, allocations: 237.4 kB / 498.8 MB, free: 3.473 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006789/0.6784, allocations: 83.89 kB / 498.8 MB, free: 3.391 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002021/0.6804, allocations: 1.868 MB / 0.489 GB, free: 1.363 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004759/0.6809, allocations: 27.92 kB / 0.489 GB, free: 1.336 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.625e-05/0.681, allocations: 20 kB / 0.489 GB, free: 1.316 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 (ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003/0.6813, allocations: 173.7 kB / 0.4892 GB, free: 1.137 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.705e-05/0.6814, allocations: 31.62 kB / 0.4892 GB, free: 1.105 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/0.6831, allocations: 0.6936 MB / 0.4899 GB, free: 412 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.6831, allocations: 11.95 kB / 0.4899 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.6831, allocations: 0 / 0.4899 GB, free: 400 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2916/0.9747, allocations: 0.8531 MB / 0.4907 GB, free: 107.9 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002019/0.9768, allocations: 1.193 MB / 0.4919 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.363e-06/0.9768, allocations: 0 / 0.4919 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004596/0.9773, allocations: 62.25 kB / 0.492 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00271/0.98, allocations: 185.1 kB / 0.4921 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.176e-05/0.9801, allocations: 7.844 kB / 0.4922 GB, free: 107.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003928/0.9805, allocations: 0.5739 MB / 0.4927 GB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.9805, allocations: 3 kB / 0.4927 GB, free: 106.8 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.9819, allocations: 0.7337 MB / 0.4934 GB, free: 106.4 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001792/0.9821, allocations: 123.2 kB / 0.4935 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.55e-05/0.9822, allocations: 5.422 kB / 0.4936 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004047/0.9826, allocations: 28.42 kB / 0.4936 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.82e-05/0.9827, allocations: 19.23 kB / 0.4936 GB, free: 106.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.555e-05/0.9827, allocations: 19.62 kB / 0.4936 GB, free: 106.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002969/0.983, allocations: 218.6 kB / 0.4938 GB, free: 106.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.983, allocations: 3.469 kB / 0.4938 GB, free: 106.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.005859/0.9889, allocations: 0.7353 MB / 0.4945 GB, free: 106.1 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 4 ($cse3.phase,$cse4,$cse5.phase,$cse6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.05952/1.048, allocations: 7.561 MB / 0.5019 GB, free: 102.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001327/1.05, allocations: 488.4 kB / 0.5024 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/1.05, allocations: 2.125 kB / 0.5024 GB, free: 102.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006246/1.051, allocations: 217.4 kB / 0.5026 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001767/1.052, allocations: 179.5 kB / 0.5028 GB, free: 102 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009923/1.062, allocations: 4.866 MB / 0.5075 GB, free: 98.26 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/1.063, allocations: 0.8153 MB / 0.5083 GB, free: 97.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003002/1.063, allocations: 136.5 kB / 0.5085 GB, free: 97.4 MB / 378.7 MB Notification: Performance of SimCode: time 1.072e-06/1.063, allocations: 0 / 0.5085 GB, free: 97.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.588/4.651, allocations: 31.7 MB / 0.5394 GB, free: 66.43 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1_fmu --startTime=0 --stopTime=1.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Media_Examples_R134a_R134a1.fmu > Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Media.Examples.R134a.R134a1_res.mat does not exist to compare? outputFormat=mat