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.001167/0.001167, allocations: 104.2 kB / 17.63 MB, free: 5.523 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.001097/0.001097, allocations: 191.9 kB / 18.56 MB, free: 4.605 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.326/1.326, allocations: 222.9 MB / 242.3 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2159/0.2159, allocations: 44.18 MB / 336.6 MB, free: 2.711 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002096/0.002096, allocations: 67.83 kB / 408.5 MB, free: 27.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.151/0.1531, allocations: 60.81 MB / 469.3 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestVectors): time 0.002407/0.1556, allocations: 498.9 kB / 469.8 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.1575, allocations: 0.7744 MB / 470.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.054e-05/0.1575, allocations: 0 / 470.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.01e-05/0.1576, allocations: 0 / 470.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.32e-06/0.1576, allocations: 0 / 470.6 MB, free: 13.05 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.002222/0.1598, allocations: 0.5834 MB / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.443e-05/0.1599, allocations: 0 / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.921e-05/0.1599, allocations: 0 / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.67e-05/0.16, allocations: 4 kB / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.814e-05/0.16, allocations: 0 / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.16, allocations: 4 kB / 471.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009082/0.1609, allocations: 379.2 kB / 471.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.604e-06/0.1609, allocations: 3.938 kB / 471.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 1.914e-05/0.161, allocations: 0 / 471.6 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006678/0.1617, allocations: 335.3 kB / 471.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1617, allocations: 0 / 471.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1617, allocations: 0 / 471.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.1617, allocations: 4 kB / 471.9 MB, free: 11.75 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.0004873/0.1622, allocations: 385.2 kB / 472.3 MB, free: 11.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.1623, allocations: 16.03 kB / 472.3 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.192e-05/0.1623, allocations: 34.75 kB / 472.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.1623, allocations: 0.9375 kB / 472.3 MB, free: 11.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000105/0.1625, allocations: 160.4 kB / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.157e-05/0.1625, allocations: 384 / 472.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.457e-05/0.1625, allocations: 8.359 kB / 472.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001016/0.1626, allocations: 30.2 kB / 472.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.929e-06/0.1626, allocations: 3.938 kB / 472.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.1626, allocations: 0 / 472.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.1627, allocations: 0 / 472.5 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.277e-05/0.1627, allocations: 11.98 kB / 472.5 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001631/0.1629, allocations: 141.7 kB / 472.7 MB, free: 10.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.286e-05/0.1629, allocations: 22.61 kB / 472.7 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.115e-05/0.163, allocations: 4.859 kB / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.163, allocations: 0 / 472.7 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.934e-05/0.1631, allocations: 56.27 kB / 472.8 MB, free: 10.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 1.503e-06/0.1631, allocations: 7.938 kB / 472.8 MB, free: 10.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001986/0.1633, allocations: 67.39 kB / 472.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.1634, allocations: 77.11 kB / 472.9 MB, free: 10.53 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.121e-05/0.1634, allocations: 97.86 kB / 473 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.448e-05/0.1635, allocations: 25.7 kB / 473 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.266e-05/0.1635, allocations: 80.14 kB / 473.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.923e-05/0.1635, allocations: 0 / 473.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.835e-05/0.1636, allocations: 9.719 kB / 473.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.1637, allocations: 323 kB / 473.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.235e-05/0.1638, allocations: 0 / 473.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.073e-06/0.1638, allocations: 0 / 473.4 MB, free: 9.969 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.943e-05/0.1639, allocations: 68.2 kB / 473.5 MB, free: 9.887 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1639, allocations: 3.938 kB / 473.5 MB, free: 9.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001076/0.164, allocations: 59.41 kB / 473.6 MB, free: 9.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.577e-05/0.164, allocations: 33.69 kB / 473.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.866e-06/0.1641, allocations: 3.938 kB / 473.6 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1641, allocations: 4.094 kB / 473.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.152e-06/0.1641, allocations: 0 / 473.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.268e-06/0.1641, allocations: 4 kB / 473.6 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.095e-05/0.1641, allocations: 7.938 kB / 473.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1642, allocations: 0 / 473.6 MB, free: 9.754 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001101/0.1643, allocations: 131.5 kB / 473.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.419e-05/0.1643, allocations: 4 kB / 473.7 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.618e-05/0.1643, allocations: 11.06 kB / 473.8 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.35e-06/0.1643, allocations: 3.984 kB / 473.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1644, allocations: 4 kB / 473.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.1644, allocations: 0 / 473.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.1645, allocations: 149.6 kB / 473.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.1645, allocations: 4 kB / 473.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.776e-06/0.1645, allocations: 0 / 473.9 MB, free: 9.387 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1645, allocations: 3.938 kB / 473.9 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.792e-05/0.1646, allocations: 3.938 kB / 473.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1646, allocations: 0 / 473.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.1646, allocations: 0 / 473.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000124/0.1647, allocations: 94.83 kB / 474 MB, free: 9.262 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.511e-05/0.1648, allocations: 77.11 kB / 474.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.192e-05/0.1648, allocations: 7.922 kB / 474.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.449e-05/0.1648, allocations: 0 / 474.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.735e-05/0.1649, allocations: 4 kB / 474.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.1649, allocations: 0 / 474.1 MB, free: 9.156 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.427e-05/0.1649, allocations: 75.28 kB / 474.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1649, allocations: 0 / 474.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005667/0.1655, allocations: 75.98 kB / 474.2 MB, free: 9.008 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 (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.001085/0.1666, allocations: 0.7709 MB / 475 MB, free: 8.211 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001262/0.1667, allocations: 55.41 kB / 475.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.1668, allocations: 0 / 475.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.139e-05/0.1668, allocations: 59.47 kB / 475.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002066/0.167, allocations: 11.92 kB / 475.1 MB, free: 8.062 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004769/0.1675, allocations: 138.5 kB / 475.3 MB, free: 7.887 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/0.1679, allocations: 0.669 MB / 475.9 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.602e-06/0.1679, allocations: 4 kB / 476 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.658e-05/0.1679, allocations: 7.438 kB / 476 MB, free: 7.18 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1679, allocations: 0 / 476 MB, free: 7.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02528/0.1932, allocations: 2.66 MB / 478.6 MB, free: 4.562 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.597/7.791, allocations: 12.23 kB / 478.6 MB, free: 4.559 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 & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_Math_TestVectors.fmu > ModelicaTest_4.0.0_ModelicaTest.Math.TestVectors.pipe 2>&1)