Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.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.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ConversionBlocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.ConversionBlocks,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Blocks_ConversionBlocks",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.001151/0.001151, allocations: 102.5 kB / 16.27 MB, free: 6.102 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.001122/0.001122, allocations: 181 kB / 17.19 MB, free: 5.727 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.636/1.636, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2032/0.2032, allocations: 43.52 MB / 313.9 MB, free: 0.5312 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.002848/0.002848, allocations: 74.52 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1512, allocations: 57.78 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.ConversionBlocks): time 0.003553/0.1548, allocations: 2.086 MB / 442.7 MB, free: 4.715 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001672/0.1565, allocations: 1.302 MB / 444 MB, free: 3.402 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001545/0.1567, allocations: 4 kB / 444 MB, free: 3.398 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.172e-05/0.1568, allocations: 27.66 kB / 444 MB, free: 3.371 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001353/0.157, allocations: 35.66 kB / 444.1 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005094/0.1575, allocations: 183.3 kB / 444.2 MB, free: 3.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001596/0.1576, allocations: 176.1 kB / 444.4 MB, free: 2.98 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001992/0.1578, allocations: 107.8 kB / 444.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001203/0.158, allocations: 79.59 kB / 444.6 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.054e-05/0.1581, allocations: 91.53 kB / 444.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.1581, allocations: 16 kB / 444.7 MB, free: 2.691 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002982/0.1584, allocations: 147.9 kB / 444.9 MB, free: 2.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.935e-05/0.1584, allocations: 47.78 kB / 444.9 MB, free: 2.5 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.155e-05/0.1585, allocations: 91.47 kB / 445 MB, free: 2.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003415/0.1589, allocations: 291.1 kB / 445.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.1589, allocations: 0 / 445.3 MB, free: 2.125 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.1589, allocations: 4 kB / 445.3 MB, free: 2.121 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1589, allocations: 0 / 445.3 MB, free: 2.121 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0005098/0.1594, allocations: 0.5226 MB / 445.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.1595, allocations: 11.89 kB / 445.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.496e-05/0.1595, allocations: 87.08 kB / 445.9 MB, free: 1.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008483/0.1604, allocations: 72.61 kB / 446 MB, free: 1.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.259e-05/0.1605, allocations: 192.1 kB / 446.2 MB, free: 1.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.1605, allocations: 21.03 kB / 446.2 MB, free: 1.129 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.69e-05/0.1606, allocations: 32.38 kB / 446.2 MB, free: 1.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.1609, allocations: 238.2 kB / 446.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.1609, allocations: 0 / 446.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.031e-05/0.1609, allocations: 12 kB / 446.5 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.161, allocations: 11.94 kB / 446.5 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002428/0.1612, allocations: 158.5 kB / 446.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000759/0.162, allocations: 0.6632 MB / 447.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005171/0.1625, allocations: 233.6 kB / 447.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001307/0.1626, allocations: 73.3 kB / 447.6 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.268e-05/0.1627, allocations: 4.234 kB / 447.6 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.035e-05/0.1627, allocations: 30.8 kB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=27): time 1.423e-06/0.1627, allocations: 0 / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.0004473/0.1632, allocations: 222.4 kB / 447.8 MB, free: 15.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.703e-05/0.1632, allocations: 59.34 kB / 447.9 MB, free: 15.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.34e-05/0.1633, allocations: 105.8 kB / 448 MB, free: 15.21 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.1633, allocations: 33.7 kB / 448 MB, free: 15.17 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.921e-05/0.1634, allocations: 152.3 kB / 448.2 MB, free: 15.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.473e-05/0.1635, allocations: 94.64 kB / 448.3 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.974e-05/0.1635, allocations: 33.72 kB / 448.3 MB, free: 14.88 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.53e-05/0.1636, allocations: 322.8 kB / 448.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.557e-05/0.1637, allocations: 43.97 kB / 448.7 MB, free: 14.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.565e-05/0.1638, allocations: 51.91 kB / 448.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001966/0.164, allocations: 118.2 kB / 448.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.164, allocations: 0 / 448.8 MB, free: 14.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=27) (initialization): time 0.0002639/0.1643, allocations: 169.5 kB / 449 MB, free: 14.18 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.1643, allocations: 4 kB / 449 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.1643, allocations: 0 / 449 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1644, allocations: 3.984 kB / 449 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003652/0.1647, allocations: 111.8 kB / 449.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.293e-06/0.1647, allocations: 0 / 449.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.058e-05/0.1648, allocations: 15.84 kB / 449.1 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.163e-05/0.1648, allocations: 8 kB / 449.1 MB, free: 14.04 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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.0001093/0.165, allocations: 129.8 kB / 449.3 MB, free: 13.9 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.666e-05/0.165, allocations: 19.75 kB / 449.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.774e-05/0.1651, allocations: 21.12 kB / 449.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.1651, allocations: 7.938 kB / 449.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1651, allocations: 0 / 449.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.1651, allocations: 4 kB / 449.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002908/0.1654, allocations: 281.4 kB / 449.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1654, allocations: 3.938 kB / 449.6 MB, free: 13.52 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000343/0.1657, allocations: 99.94 kB / 449.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.1658, allocations: 0 / 449.7 MB, free: 13.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.1658, allocations: 8 kB / 449.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.928e-06/0.1658, allocations: 3.938 kB / 449.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.1658, allocations: 4 kB / 449.7 MB, free: 13.41 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.1661, allocations: 271.3 kB / 450 MB, free: 13.12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.785e-05/0.1662, allocations: 88.95 kB / 450.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.1662, allocations: 4 kB / 450.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.007e-05/0.1663, allocations: 7.938 kB / 450.1 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.07e-05/0.1663, allocations: 20.22 kB / 450.1 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.087e-06/0.1663, allocations: 8 kB / 450.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.131e-05/0.1664, allocations: 87.28 kB / 450.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1664, allocations: 0 / 450.2 MB, free: 12.89 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002722/0.1667, allocations: 55.69 kB / 450.2 MB, free: 12.84 MB / 334.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * 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.0006785/0.1674, allocations: 0.8689 MB / 451.1 MB, free: 11.95 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003064/0.1677, allocations: 156 kB / 451.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1677, allocations: 0 / 451.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001251/0.1678, allocations: 71.91 kB / 451.3 MB, free: 11.72 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000237/0.1681, allocations: 16.56 kB / 451.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002076/0.1701, allocations: 1.967 MB / 453.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.1705, allocations: 0.7475 MB / 454.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001065/0.1707, allocations: 17.41 kB / 454.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.9e-05/0.1707, allocations: 63.42 kB / 454.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1708, allocations: 0 / 454.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01905/0.1898, allocations: 2.657 MB / 456.8 MB, free: 6.16 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.442/7.631, allocations: 0 / 456.8 MB, free: 6.16 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.sim & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Blocks_ConversionBlocks.fmu > ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/ConversionBlocks/ConversionBlocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.ConversionBlocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches