Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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 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(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestOnly.IdealGasN2,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2",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.000852/0.0008521, allocations: 88.19 kB / 15.7 MB, free: 460 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001151/0.001151, allocations: 174 kB / 16.58 MB, free: 6.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.715/1.715, allocations: 205.4 MB / 222.7 MB, free: 5.887 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3972/0.3972, allocations: 43.54 MB / 314.6 MB, free: 8.879 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005809/0.0005811, allocations: 12 kB / 384 MB, free: 8.18 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1273/0.1279, allocations: 58.85 MB / 442.9 MB, free: 13.23 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestOnly.IdealGasN2): time 0.3788/0.5067, allocations: 136.6 MB / 0.5659 GB, free: 3.387 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001458/0.5082, allocations: 0.9204 MB / 0.5668 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.5084, allocations: 0 / 0.5668 GB, free: 2.477 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002826/0.5087, allocations: 26.67 kB / 0.5668 GB, free: 2.453 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007717/0.5095, allocations: 203.4 kB / 0.567 GB, free: 2.262 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004002/0.5099, allocations: 95.78 kB / 0.5671 GB, free: 2.168 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002833/0.5102, allocations: 179.2 kB / 0.5672 GB, free: 1.992 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.552e-05/0.5103, allocations: 10.66 kB / 0.5673 GB, free: 1.984 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002242/0.5105, allocations: 87.62 kB / 0.5673 GB, free: 1.898 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.5106, allocations: 47.83 kB / 0.5674 GB, free: 1.852 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.184e-05/0.5106, allocations: 4 kB / 0.5674 GB, free: 1.848 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000605/0.5113, allocations: 267.7 kB / 0.5676 GB, free: 1.586 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.735e-05/0.5113, allocations: 19.91 kB / 0.5677 GB, free: 1.566 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.654e-05/0.5114, allocations: 41.64 kB / 0.5677 GB, free: 1.52 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003393/0.5117, allocations: 198 kB / 0.5679 GB, free: 1.328 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.5117, allocations: 4 kB / 0.5679 GB, free: 1.324 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.5117, allocations: 0 / 0.5679 GB, free: 1.324 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.771e-06/0.5118, allocations: 0 / 0.5679 GB, free: 1.324 MB / 430.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.0004943/0.5123, allocations: 390.5 kB / 0.5683 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.5123, allocations: 12.03 kB / 0.5683 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.219e-05/0.5124, allocations: 38.56 kB / 0.5683 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001785/0.5142, allocations: 190.7 kB / 0.5685 GB, free: 0.6562 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002704/0.5144, allocations: 203 kB / 0.5687 GB, free: 428 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.451e-05/0.5145, allocations: 4 kB / 0.5687 GB, free: 424 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.914e-05/0.5145, allocations: 12.5 kB / 0.5687 GB, free: 412 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000478/0.515, allocations: 222.9 kB / 0.5689 GB, free: 176 kB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.515, allocations: 0 / 0.5689 GB, free: 176 kB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.398e-05/0.5151, allocations: 8 kB / 0.5689 GB, free: 168 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.5151, allocations: 7.938 kB / 0.5689 GB, free: 160 kB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004342/0.5155, allocations: 167.9 kB / 0.5691 GB, free: 15.99 MB / 446.1 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.001021/0.5166, allocations: 0.5852 MB / 0.5697 GB, free: 15.36 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003152/0.5169, allocations: 140.3 kB / 0.5698 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.517, allocations: 68.83 kB / 0.5699 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.134e-05/0.5171, allocations: 4 kB / 0.5699 GB, free: 15.14 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.5171, allocations: 30.56 kB / 0.5699 GB, free: 15.1 MB / 446.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.5171, allocations: 0 / 0.5699 GB, free: 15.1 MB / 446.1 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=19): time 0.004719/0.5218, allocations: 1.306 MB / 0.5712 GB, free: 13.71 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.5219, allocations: 51.41 kB / 0.5712 GB, free: 13.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.148e-05/0.522, allocations: 121.6 kB / 0.5713 GB, free: 13.52 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.572e-05/0.522, allocations: 29.7 kB / 0.5714 GB, free: 13.48 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.764e-05/0.5221, allocations: 107.8 kB / 0.5715 GB, free: 13.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.503e-05/0.5222, allocations: 67 kB / 0.5715 GB, free: 13.31 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.732e-05/0.5222, allocations: 4 kB / 0.5715 GB, free: 13.3 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.122e-05/0.5223, allocations: 322.8 kB / 0.5718 GB, free: 12.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001441/0.5224, allocations: 67.97 kB / 0.5719 GB, free: 12.91 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.5226, allocations: 95.58 kB / 0.572 GB, free: 12.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001633/0.5228, allocations: 84.86 kB / 0.5721 GB, free: 12.73 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-06/0.5228, allocations: 0 / 0.5721 GB, free: 12.73 MB / 446.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0004669/0.5233, allocations: 255.4 kB / 0.5723 GB, free: 12.47 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.5233, allocations: 8 kB / 0.5723 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.673e-06/0.5233, allocations: 0 / 0.5723 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001735/0.5235, allocations: 52.92 kB / 0.5724 GB, free: 12.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003054/0.5238, allocations: 59.89 kB / 0.5724 GB, free: 12.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003727/0.5242, allocations: 0.5641 MB / 0.573 GB, free: 11.76 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001739/0.5244, allocations: 4 kB / 0.573 GB, free: 11.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.335e-05/0.5244, allocations: 24.09 kB / 0.573 GB, free: 11.73 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (23): * Single equations (assignments): 22 * 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: 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 prepare postOptimizeDAE: time 0.0001202/0.5246, allocations: 137.7 kB / 0.5731 GB, free: 11.59 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.395e-05/0.5246, allocations: 11.91 kB / 0.5732 GB, free: 11.57 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008374/0.5254, allocations: 349.9 kB / 0.5735 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.5255, allocations: 0 / 0.5735 GB, free: 11.23 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.999e-06/0.5255, allocations: 4 kB / 0.5735 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.5255, allocations: 4 kB / 0.5735 GB, free: 11.22 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.5265, allocations: 0.6258 MB / 0.5741 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.179e-06/0.5265, allocations: 4 kB / 0.5741 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003235/0.5268, allocations: 63.88 kB / 0.5742 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.744e-05/0.5269, allocations: 28.88 kB / 0.5742 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.99e-05/0.527, allocations: 11.98 kB / 0.5742 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009044/0.5279, allocations: 1.263 MB / 0.5754 GB, free: 9.027 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/0.5279, allocations: 7.969 kB / 0.5755 GB, free: 9.02 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006845/0.5286, allocations: 426.8 kB / 0.5759 GB, free: 8.574 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.445e-05/0.5287, allocations: 85.02 kB / 0.5759 GB, free: 8.473 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.352e-05/0.5287, allocations: 4 kB / 0.5759 GB, free: 8.469 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002179/0.5289, allocations: 15.84 kB / 0.576 GB, free: 8.453 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.898e-05/0.529, allocations: 31.86 kB / 0.576 GB, free: 8.422 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.187e-05/0.5291, allocations: 27.98 kB / 0.576 GB, free: 8.395 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.137e-05/0.5291, allocations: 91.27 kB / 0.5761 GB, free: 8.305 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5291, allocations: 0 / 0.5761 GB, free: 8.305 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.5296, allocations: 76 kB / 0.5762 GB, free: 8.23 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (medium.p,medium.T) * 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 (21): * Single equations (assignments): 20 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001181/0.5307, allocations: 1.003 MB / 0.5772 GB, free: 7.191 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0005178/0.5313, allocations: 203.2 kB / 0.5774 GB, free: 6.996 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5313, allocations: 0 / 0.5774 GB, free: 6.996 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003419/0.5316, allocations: 223.1 kB / 0.5776 GB, free: 6.766 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004538/0.5321, allocations: 55.95 kB / 0.5776 GB, free: 6.715 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001797/0.5339, allocations: 1.091 MB / 0.5787 GB, free: 5.566 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002848/0.5342, allocations: 0.7088 MB / 0.5794 GB, free: 4.832 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0004539/0.5347, allocations: 83.81 kB / 0.5795 GB, free: 4.754 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002247/0.5349, allocations: 67.41 kB / 0.5795 GB, free: 4.688 MB / 446.1 MB Notification: Performance of SimCode: time 7.62e-07/0.5349, allocations: 0 / 0.5795 GB, free: 4.688 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02113/0.5561, allocations: 6.874 MB / 0.5862 GB, free: 13.88 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002234/0.5563, allocations: 210.4 kB / 0.5864 GB, free: 13.64 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.746/2.302, allocations: 0 / 0.5864 GB, free: 13.64 MB / 462.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Media_TestOnly_IdealGasN2.fmu > ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_3.2.3_ModelicaTest.Media.TestOnly.IdealGasN2_res.mat does not exist to compare? outputFormat=mat