Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001342/0.001342, allocations: 179.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.526/1.526, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007811/0.0007811, allocations: 90.36 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3851/0.3851, allocations: 43.56 MB / 362.7 MB, free: 52.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003892, allocations: 16 kB / 431.4 MB, free: 6.141 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1469/0.1473, allocations: 58.84 MB / 490.2 MB, free: 11.21 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005267/0.1527, allocations: 3.708 MB / 493.9 MB, free: 7.484 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.004093/0.1568, allocations: 1.536 MB / 495.5 MB, free: 5.938 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001272/0.1581, allocations: 35.81 kB / 495.5 MB, free: 5.902 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005984/0.1588, allocations: 110.8 kB / 495.6 MB, free: 5.793 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008614/0.1596, allocations: 126.8 kB / 495.7 MB, free: 5.668 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001586/0.1612, allocations: 439.3 kB / 496.2 MB, free: 5.238 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.001506/0.1628, allocations: 0.9022 MB / 497.1 MB, free: 4.332 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005889/0.1634, allocations: 310.5 kB / 497.4 MB, free: 4.012 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003639/0.1637, allocations: 266.4 kB / 497.6 MB, free: 3.75 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003121/0.1641, allocations: 282 kB / 497.9 MB, free: 3.473 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 7.237e-05/0.1641, allocations: 20 kB / 497.9 MB, free: 3.453 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.262e-05/0.1642, allocations: 24 kB / 498 MB, free: 3.43 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001008/0.1643, allocations: 115.3 kB / 498.1 MB, free: 3.316 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001343/0.1645, allocations: 165.1 kB / 498.2 MB, free: 3.148 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006582/0.1651, allocations: 0.7134 MB / 498.9 MB, free: 2.434 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.626e-06/0.1651, allocations: 0 / 498.9 MB, free: 2.434 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.015e-06/0.1651, allocations: 3.938 kB / 498.9 MB, free: 2.43 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.537e-05/0.1652, allocations: 4 kB / 499 MB, free: 2.426 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.002041/0.1672, allocations: 1.16 MB / 0.4884 GB, free: 1.215 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.437e-05/0.1673, allocations: 8.031 kB / 0.4884 GB, free: 1.207 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.1675, allocations: 122.5 kB / 0.4885 GB, free: 1.086 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008243/0.1683, allocations: 0.608 MB / 0.4891 GB, free: 448 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.38e-05/0.1684, allocations: 49.31 kB / 0.4892 GB, free: 400 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.1685, allocations: 68 kB / 0.4892 GB, free: 332 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2581/0.4266, allocations: 0.75 MB / 0.49 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.594e-05/0.4267, allocations: 5.625 kB / 0.49 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.097e-05/0.4268, allocations: 28.83 kB / 0.49 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.4268, allocations: 13.69 kB / 0.49 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001389/0.4282, allocations: 0.5943 MB / 0.4906 GB, free: 42.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003903/0.4321, allocations: 2.751 MB / 0.4933 GB, free: 41.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.4337, allocations: 0.7211 MB / 0.494 GB, free: 41.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006263/0.4343, allocations: 308.2 kB / 0.4943 GB, free: 41.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.759e-05/0.4344, allocations: 7.953 kB / 0.4943 GB, free: 41.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.4344, allocations: 38.03 kB / 0.4943 GB, free: 41.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 3.036e-06/0.4345, allocations: 8.75 kB / 0.4943 GB, free: 41.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.002064/0.4365, allocations: 0.8682 MB / 0.4952 GB, free: 41.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.679e-05/0.4366, allocations: 238.3 kB / 0.4954 GB, free: 40.95 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008854/0.4375, allocations: 0.7074 MB / 0.4961 GB, free: 40.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.532e-05/0.4376, allocations: 45.09 kB / 0.4961 GB, free: 40.78 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.4379, allocations: 441.7 kB / 0.4965 GB, free: 40.62 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.4381, allocations: 185 kB / 0.4967 GB, free: 40.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.685e-05/0.4381, allocations: 10.12 kB / 0.4967 GB, free: 40.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.187e-05/0.4382, allocations: 331.1 kB / 0.497 GB, free: 40.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006079/0.4388, allocations: 244.2 kB / 0.4973 GB, free: 40.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007007/0.4395, allocations: 390.6 kB / 0.4977 GB, free: 39.99 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006107/0.4401, allocations: 274.5 kB / 0.4979 GB, free: 39.89 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.4402, allocations: 0 / 0.4979 GB, free: 39.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00277/0.4429, allocations: 1.159 MB / 0.499 GB, free: 39.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.971e-05/0.443, allocations: 173.5 kB / 0.4992 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.221e-05/0.4431, allocations: 6.906 kB / 0.4992 GB, free: 39.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001223/0.4443, allocations: 364 kB / 0.4996 GB, free: 39.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.4449, allocations: 128.2 kB / 0.4997 GB, free: 39.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00718/0.452, allocations: 7.068 MB / 0.5066 GB, free: 33.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006108/0.4527, allocations: 94.23 kB / 0.5067 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-05/0.4527, allocations: 23.03 kB / 0.5067 GB, free: 33.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.105e-06/0.4527, allocations: 5.719 kB / 0.5067 GB, free: 33.34 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001472/0.4542, allocations: 0.6662 MB / 0.5074 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.216e-06/0.4542, allocations: 6.344 kB / 0.5074 GB, free: 33.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005099/0.4548, allocations: 158.4 kB / 0.5075 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007683/0.4555, allocations: 167.8 kB / 0.5077 GB, free: 33.03 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002779/0.4583, allocations: 3.258 MB / 0.5109 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005208/0.4589, allocations: 73.72 kB / 0.5109 GB, free: 30.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.142e-05/0.4589, allocations: 16.56 kB / 0.5109 GB, free: 30.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 4 (PID4.I.local_reset,PID3.I.local_reset,PID2.I.local_reset,PID1.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 49 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0004063/0.4593, allocations: 307.3 kB / 0.5112 GB, free: 29.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.4595, allocations: 91.44 kB / 0.5113 GB, free: 29.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000132/0.4596, allocations: 95.2 kB / 0.5114 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.4596, allocations: 6.562 kB / 0.5114 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/0.4597, allocations: 3.312 kB / 0.5114 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/0.4597, allocations: 7.125 kB / 0.5114 GB, free: 29.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009134/0.4606, allocations: 0.742 MB / 0.5122 GB, free: 29.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.4606, allocations: 3.062 kB / 0.5122 GB, free: 29.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005279/0.4611, allocations: 119.9 kB / 0.5123 GB, free: 29.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-06/0.4611, allocations: 7.031 kB / 0.5123 GB, free: 29.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/0.4612, allocations: 17.98 kB / 0.5123 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.4612, allocations: 3.219 kB / 0.5123 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4612, allocations: 0 / 0.5123 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.4629, allocations: 1.282 MB / 0.5136 GB, free: 28.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002062/0.4631, allocations: 211.5 kB / 0.5138 GB, free: 28.44 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.884e-05/0.4632, allocations: 15.84 kB / 0.5138 GB, free: 28.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004743/0.4637, allocations: 53.64 kB / 0.5138 GB, free: 28.42 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001001/0.4638, allocations: 34.09 kB / 0.5139 GB, free: 28.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.4638, allocations: 20.22 kB / 0.5139 GB, free: 28.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004518/0.4643, allocations: 488.2 kB / 0.5143 GB, free: 28.2 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4643, allocations: 0 / 0.5143 GB, free: 28.2 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009419/0.4652, allocations: 284.7 kB / 0.5146 GB, free: 28.13 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 8 (PID1.I.y,firstOrder1.y,PID2.I.y,firstOrder2.y,PID3.I.y,firstOrder3.y,PID4.I.y,firstOrder4.y) * 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 (52): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001256/0.4653, allocations: 111 kB / 0.5147 GB, free: 28.03 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003746/0.4691, allocations: 2.011 MB / 0.5167 GB, free: 27.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.4691, allocations: 0 / 0.5167 GB, free: 27.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005228/0.4696, allocations: 305 kB / 0.517 GB, free: 26.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.4709, allocations: 227.1 kB / 0.5172 GB, free: 26.88 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002329/0.4733, allocations: 1.83 MB / 0.519 GB, free: 25.76 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003964/0.4737, allocations: 0.9848 MB / 0.5199 GB, free: 25.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.4739, allocations: 49.59 kB / 0.52 GB, free: 25.04 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.4739, allocations: 1.688 kB / 0.52 GB, free: 25.04 MB / 378.7 MB Notification: Performance of Templates: time 0.02026/0.4941, allocations: 17.32 MB / 0.5369 GB, free: 21.18 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches