Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.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.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Utilities.TestStrings,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings",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.0009291/0.0009291, allocations: 92.55 kB / 17 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.0008321/0.0008324, allocations: 177.7 kB / 17.89 MB, free: 5.945 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.425/1.425, allocations: 223.3 MB / 241.9 MB, free: 332 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.1954/0.1954, allocations: 44.22 MB / 337.2 MB, free: 2.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003576/0.0003576, allocations: 10.66 kB / 409.7 MB, free: 27.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1437/0.1441, allocations: 61.92 MB / 471.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Utilities.TestStrings): time 0.0007137/0.1449, allocations: 203 kB / 471.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.1472, allocations: 1.214 MB / 473.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.645e-05/0.1472, allocations: 0 / 473.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1472, allocations: 0 / 473.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.704e-06/0.1472, allocations: 0 / 473.1 MB, free: 12.22 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/Utilities.mo:4:3-220:14:writable] Warning: Pure function ‘ModelicaTest.Utilities.Strings‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFTyping.typeClassSections: time 0.001085/0.1483, allocations: 451 kB / 473.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.644e-05/0.1484, allocations: 0 / 473.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.226e-05/0.1484, allocations: 0 / 473.5 MB, free: 11.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.758e-05/0.1484, allocations: 3.938 kB / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.239e-05/0.1485, allocations: 0 / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.732e-06/0.1485, allocations: 0 / 473.5 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002999/0.1515, allocations: 1.881 MB / 475.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.002e-05/0.1515, allocations: 0 / 475.4 MB, free: 9.891 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.201e-05/0.1515, allocations: 29.64 kB / 475.4 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002043/0.1518, allocations: 115.8 kB / 475.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.064e-06/0.1518, allocations: 0 / 475.5 MB, free: 9.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.1518, allocations: 3.938 kB / 475.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1518, allocations: 4 kB / 475.5 MB, free: 9.734 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.0003514/0.1521, allocations: 371.4 kB / 475.9 MB, free: 9.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.1522, allocations: 8.031 kB / 475.9 MB, free: 9.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.174e-05/0.1522, allocations: 38.56 kB / 475.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.376e-05/0.1523, allocations: 7.938 kB / 476 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.317e-05/0.1524, allocations: 163.1 kB / 476.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.376e-06/0.1524, allocations: 0 / 476.1 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.464e-06/0.1524, allocations: 7.938 kB / 476.1 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.742e-05/0.1525, allocations: 25.7 kB / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.54e-06/0.1525, allocations: 0 / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.504e-06/0.1525, allocations: 0 / 476.1 MB, free: 9.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.1525, allocations: 7.953 kB / 476.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.808e-05/0.1525, allocations: 7.938 kB / 476.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.1527, allocations: 145.7 kB / 476.3 MB, free: 8.812 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.942e-05/0.1527, allocations: 26.59 kB / 476.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.165e-05/0.1527, allocations: 4.859 kB / 476.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.66e-06/0.1527, allocations: 0 / 476.3 MB, free: 8.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/0.1528, allocations: 60.2 kB / 476.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.1528, allocations: 0 / 476.4 MB, free: 8.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001778/0.153, allocations: 71.39 kB / 476.5 MB, free: 8.613 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.153, allocations: 81.11 kB / 476.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.638e-05/0.1531, allocations: 97.81 kB / 476.6 MB, free: 8.41 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.1531, allocations: 25.7 kB / 476.7 MB, free: 8.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/0.1531, allocations: 80.14 kB / 476.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.665e-05/0.1532, allocations: 0 / 476.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-06/0.1532, allocations: 0 / 476.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.1533, allocations: 310.8 kB / 477 MB, free: 7.984 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.915e-06/0.1533, allocations: 4.125 kB / 477 MB, free: 7.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.928e-06/0.1533, allocations: 4 kB / 477.1 MB, free: 7.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.755e-05/0.1533, allocations: 29.69 kB / 477.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.1533, allocations: 0 / 477.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.24e-05/0.1534, allocations: 67.34 kB / 477.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.111e-05/0.1535, allocations: 29.7 kB / 477.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.1535, allocations: 0 / 477.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.1535, allocations: 4 kB / 477.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.22e-07/0.1535, allocations: 0 / 477.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.1535, allocations: 4.094 kB / 477.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.571e-05/0.1535, allocations: 0 / 477.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.098e-05/0.1535, allocations: 7.938 kB / 477.2 MB, free: 7.812 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 8.297e-05/0.1536, allocations: 136.1 kB / 477.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.071e-06/0.1536, allocations: 0 / 477.3 MB, free: 7.664 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.239e-05/0.1537, allocations: 7.078 kB / 477.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.21e-07/0.1537, allocations: 0 / 477.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1537, allocations: 0 / 477.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1537, allocations: 0 / 477.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.399e-05/0.1538, allocations: 157.6 kB / 477.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1538, allocations: 0 / 477.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1538, allocations: 0 / 477.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.143e-06/0.1538, allocations: 0 / 477.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.982e-06/0.1538, allocations: 3.938 kB / 477.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1538, allocations: 0 / 477.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.1538, allocations: 0 / 477.5 MB, free: 7.449 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.212e-05/0.1539, allocations: 102.7 kB / 477.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.952e-05/0.154, allocations: 92.98 kB / 477.7 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.154, allocations: 4 kB / 477.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.496e-06/0.154, allocations: 0 / 477.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.094e-05/0.154, allocations: 0 / 477.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.285e-06/0.154, allocations: 0 / 477.7 MB, free: 7.211 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.641e-05/0.154, allocations: 75.28 kB / 477.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.154, allocations: 0 / 477.8 MB, free: 7.137 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003256/0.1544, allocations: 75.98 kB / 477.8 MB, free: 7.062 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.00103/0.1554, allocations: 0.9156 MB / 478.7 MB, free: 6.191 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 8.043e-05/0.1555, allocations: 63.33 kB / 478.8 MB, free: 6.117 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.1555, allocations: 8 kB / 478.8 MB, free: 6.109 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.876e-05/0.1556, allocations: 59.34 kB / 478.9 MB, free: 6.039 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.1557, allocations: 7.938 kB / 478.9 MB, free: 6.031 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003078/0.156, allocations: 136.4 kB / 479 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000254/0.1563, allocations: 0.6731 MB / 479.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.61e-06/0.1563, allocations: 0 / 479.7 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.445e-05/0.1563, allocations: 11.42 kB / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1563, allocations: 0 / 479.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01333/0.1697, allocations: 2.732 MB / 482.4 MB, free: 2.523 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.1699, allocations: 219.3 kB / 482.6 MB, free: 2.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.845/2.015, allocations: 0 / 482.6 MB, free: 2.277 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Utilities_TestStrings.fmu > ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result ModelicaTest_4.0.0_ModelicaTest.Utilities.TestStrings_res.mat does not exist to compare? outputFormat=mat