Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.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/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestVectors,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors",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.00115/0.00115, allocations: 96.31 kB / 16.99 MB, free: 6.402 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.001389/0.001389, allocations: 179.1 kB / 17.88 MB, free: 5.957 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.383/1.383, allocations: 223.2 MB / 241.8 MB, free: 396 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2173/0.2173, allocations: 44.23 MB / 337.1 MB, free: 2.898 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004623/0.0004625, allocations: 8 kB / 409.6 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1447/0.1452, allocations: 61.92 MB / 471.5 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.0006741/0.1459, allocations: 214.9 kB / 471.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001555/0.1475, allocations: 0.7278 MB / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.614e-05/0.1475, allocations: 4 kB / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.253e-05/0.1475, allocations: 0 / 472.5 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.521e-06/0.1475, allocations: 3.938 kB / 472.5 MB, free: 12.72 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Math.mo:612:3-661:14:writable] Warning: Pure function ‘ModelicaTest.Math.Vectors‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001654/0.1492, allocations: 486.6 kB / 472.9 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.06e-05/0.1493, allocations: 4 kB / 473 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.042e-05/0.1493, allocations: 3.938 kB / 473 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.574e-05/0.1493, allocations: 0 / 473 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.835e-05/0.1494, allocations: 0 / 473 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.501e-06/0.1494, allocations: 0 / 473 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007137/0.1501, allocations: 331.5 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.437e-06/0.1501, allocations: 3.938 kB / 473.3 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.244e-05/0.1502, allocations: 25.7 kB / 473.3 MB, free: 11.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000437/0.1506, allocations: 247.5 kB / 473.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.905e-06/0.1506, allocations: 0 / 473.6 MB, free: 11.64 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1506, allocations: 4 kB / 473.6 MB, free: 11.63 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.207e-06/0.1506, allocations: 0 / 473.6 MB, free: 11.63 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004596/0.1511, allocations: 381.1 kB / 473.9 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.52e-05/0.1512, allocations: 8.031 kB / 473.9 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.85e-05/0.1512, allocations: 30.56 kB / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.1513, allocations: 0 / 474 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001294/0.1514, allocations: 163.1 kB / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.1514, allocations: 3.938 kB / 474.1 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.272e-05/0.1514, allocations: 3.953 kB / 474.1 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.1516, allocations: 37.69 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1516, allocations: 0 / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.002e-05/0.1516, allocations: 0 / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1516, allocations: 0 / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.276e-05/0.1516, allocations: 3.938 kB / 474.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001755/0.1518, allocations: 145.7 kB / 474.3 MB, free: 10.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.693e-05/0.1519, allocations: 18.61 kB / 474.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.145e-06/0.1519, allocations: 0 / 474.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.919e-05/0.1519, allocations: 68.22 kB / 474.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.293e-06/0.152, allocations: 0 / 474.4 MB, free: 10.61 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002185/0.1522, allocations: 71.39 kB / 474.5 MB, free: 10.52 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.1523, allocations: 77.11 kB / 474.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.745e-05/0.1523, allocations: 97.8 kB / 474.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.693e-05/0.1524, allocations: 25.7 kB / 474.7 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.535e-05/0.1524, allocations: 80.14 kB / 474.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.126e-05/0.1524, allocations: 0 / 474.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.284e-06/0.1524, allocations: 4.125 kB / 474.7 MB, free: 10.21 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.1526, allocations: 310.8 kB / 475.1 MB, free: 9.895 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.174e-05/0.1526, allocations: 3.984 kB / 475.1 MB, free: 9.891 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.518e-06/0.1526, allocations: 4 kB / 475.1 MB, free: 9.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.636e-05/0.1527, allocations: 25.7 kB / 475.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1527, allocations: 0 / 475.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.835e-05/0.1528, allocations: 67.34 kB / 475.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.594e-05/0.1528, allocations: 29.7 kB / 475.2 MB, free: 9.742 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.1529, allocations: 4.094 kB / 475.2 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.1529, allocations: 7.938 kB / 475.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.613e-06/0.1529, allocations: 0 / 475.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.371e-06/0.1529, allocations: 4 kB / 475.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.011e-05/0.1529, allocations: 0 / 475.2 MB, free: 9.727 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.1529, allocations: 0 / 475.2 MB, free: 9.727 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: 1 (result) * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001266/0.1531, allocations: 136.1 kB / 475.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.396e-06/0.1531, allocations: 0 / 475.3 MB, free: 9.578 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.274e-05/0.1531, allocations: 3.125 kB / 475.3 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.1531, allocations: 7.953 kB / 475.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1531, allocations: 0 / 475.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1532, allocations: 0 / 475.3 MB, free: 9.566 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001364/0.1533, allocations: 153.7 kB / 475.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.1533, allocations: 0 / 475.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.71e-07/0.1533, allocations: 0 / 475.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.1533, allocations: 0 / 475.5 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.1533, allocations: 3.938 kB / 475.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1533, allocations: 0 / 475.5 MB, free: 9.363 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.1534, allocations: 3.953 kB / 475.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001232/0.1535, allocations: 102.7 kB / 475.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.334e-05/0.1536, allocations: 77.11 kB / 475.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.605e-05/0.1536, allocations: 0 / 475.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.624e-05/0.1536, allocations: 4 kB / 475.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.724e-05/0.1536, allocations: 0 / 475.7 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.1537, allocations: 11.88 kB / 475.7 MB, free: 9.125 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.657e-05/0.1537, allocations: 75.28 kB / 475.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1537, allocations: 0 / 475.8 MB, free: 9.051 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004911/0.1542, allocations: 92 kB / 475.8 MB, free: 8.961 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: 1 (result) * Number of discrete states: 1 (result) * 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: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009652/0.1552, allocations: 0.7379 MB / 476.6 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 9.862e-05/0.1553, allocations: 59.34 kB / 476.6 MB, free: 8.129 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.1553, allocations: 4.062 kB / 476.6 MB, free: 8.125 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.038e-05/0.1554, allocations: 59.39 kB / 476.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001065/0.1555, allocations: 0 / 476.7 MB, free: 8.055 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003978/0.1559, allocations: 136.3 kB / 476.8 MB, free: 7.879 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002579/0.1561, allocations: 0.677 MB / 477.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.682e-06/0.1562, allocations: 0 / 477.5 MB, free: 7.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.343e-05/0.1562, allocations: 7.438 kB / 477.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1562, allocations: 0 / 477.5 MB, free: 7.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0157/0.1719, allocations: 2.428 MB / 480 MB, free: 4.836 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001703/0.1721, allocations: 211 kB / 480.2 MB, free: 4.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.786/1.958, allocations: 0 / 480.2 MB, free: 4.59 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.mat does not exist to compare? outputFormat=mat