Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.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: 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_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 108.3 kB / 18.4 MB, free: 4.699 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.001555/0.001555, allocations: 191 kB / 19.34 MB, free: 3.766 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.44/1.44, allocations: 222.9 MB / 243 MB, free: 15.14 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.2191/0.2191, allocations: 44.17 MB / 337.4 MB, free: 2.715 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001163/0.001163, allocations: 61.75 kB / 409.9 MB, free: 26.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.109, allocations: 60.83 MB / 470.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005171/0.1142, allocations: 4.363 MB / 475.1 MB, free: 9.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002795/0.117, allocations: 1.543 MB / 476.6 MB, free: 7.715 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004035/0.1174, allocations: 35.81 kB / 476.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004258/0.1179, allocations: 162.2 kB / 476.8 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003293/0.1182, allocations: 170.2 kB / 477 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001101/0.1193, allocations: 0.5925 MB / 477.6 MB, free: 6.766 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009914/0.1203, allocations: 1.031 MB / 478.6 MB, free: 5.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005636/0.1209, allocations: 447 kB / 479 MB, free: 5.277 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00032/0.1212, allocations: 362.3 kB / 479.4 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003318/0.1216, allocations: 389.7 kB / 479.8 MB, free: 4.539 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.1217, allocations: 84 kB / 479.8 MB, free: 4.457 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.358e-05/0.1218, allocations: 88 kB / 479.9 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.1219, allocations: 195.2 kB / 480.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003009/0.1223, allocations: 437.2 kB / 480.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007983/0.1231, allocations: 1.023 MB / 481.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.1231, allocations: 0 / 481.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.1231, allocations: 7.984 kB / 481.6 MB, free: 2.715 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.08e-05/0.1231, allocations: 0 / 481.6 MB, free: 2.715 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: 156 * Number of variables: 156 Notification: Performance of Generate backend data structure: time 0.00173/0.1248, allocations: 1.284 MB / 482.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.1249, allocations: 19.97 kB / 482.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001414/0.125, allocations: 115.5 kB / 483 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009059/0.1259, allocations: 0.6515 MB / 483.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.644e-05/0.126, allocations: 49.69 kB / 483.7 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.872e-05/0.1261, allocations: 60.38 kB / 483.8 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001107/0.1272, allocations: 0.7508 MB / 484.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.432e-05/0.1272, allocations: 0 / 484.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.263e-05/0.1273, allocations: 28 kB / 484.5 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.971e-05/0.1273, allocations: 16 kB / 484.6 MB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.1283, allocations: 0.5392 MB / 485.1 MB, free: 15.05 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00291/0.1313, allocations: 2.702 MB / 487.8 MB, free: 12.25 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/0.1325, allocations: 0.6749 MB / 488.5 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004858/0.133, allocations: 287.3 kB / 488.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.504e-05/0.133, allocations: 4 kB / 488.8 MB, free: 11.25 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.446e-05/0.1331, allocations: 42.56 kB / 488.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 1.824e-06/0.1331, allocations: 0 / 488.8 MB, free: 11.2 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001566/0.1346, allocations: 0.7952 MB / 489.6 MB, free: 10.4 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001061/0.1348, allocations: 239.3 kB / 489.8 MB, free: 10.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000695/0.1355, allocations: 0.7006 MB / 490.5 MB, free: 9.398 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.737e-05/0.1355, allocations: 37.7 kB / 490.6 MB, free: 9.355 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.1358, allocations: 436.5 kB / 491 MB, free: 8.926 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001257/0.1359, allocations: 181.3 kB / 491.2 MB, free: 8.746 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.1361, allocations: 110.1 kB / 491.3 MB, free: 8.633 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.986e-05/0.1362, allocations: 326 kB / 491.6 MB, free: 8.309 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004548/0.1367, allocations: 231 kB / 491.8 MB, free: 8.082 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005284/0.1372, allocations: 364 kB / 492.2 MB, free: 7.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009302/0.1381, allocations: 0.5587 MB / 492.7 MB, free: 7.078 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.1382, allocations: 3.938 kB / 492.7 MB, free: 7.074 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002361/0.1405, allocations: 1.047 MB / 493.8 MB, free: 6.012 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.1406, allocations: 4 kB / 493.8 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.1406, allocations: 8 kB / 493.8 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.1417, allocations: 323.4 kB / 494.1 MB, free: 5.672 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005193/0.1422, allocations: 127.8 kB / 494.2 MB, free: 5.547 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007886/0.1501, allocations: 7.24 MB / 0.4897 GB, free: 13.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005658/0.1507, allocations: 91.39 kB / 0.4898 GB, free: 13.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.077e-05/0.1508, allocations: 20 kB / 0.4898 GB, free: 13.63 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005995/0.1514, allocations: 349.1 kB / 0.4902 GB, free: 13.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004357/0.1518, allocations: 324.1 kB / 0.4905 GB, free: 12.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007634/0.1526, allocations: 0.501 MB / 0.491 GB, free: 12.39 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.325e-06/0.1526, allocations: 0 / 0.491 GB, free: 12.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001422/0.154, allocations: 0.7389 MB / 0.4917 GB, free: 11.64 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.038e-05/0.1541, allocations: 4.281 kB / 0.4917 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.1541, allocations: 11.98 kB / 0.4917 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004489/0.1545, allocations: 137.5 kB / 0.4918 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007076/0.1552, allocations: 171.8 kB / 0.492 GB, free: 11.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00323/0.1585, allocations: 3.43 MB / 0.4953 GB, free: 7.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004062/0.1589, allocations: 63.5 kB / 0.4954 GB, free: 7.535 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.934e-05/0.159, allocations: 16.06 kB / 0.4954 GB, free: 7.52 MB / 382.1 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 (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(1,4), (1,4), (1,4), (1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001885/0.1592, allocations: 224.1 kB / 0.4956 GB, free: 7.293 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.1593, allocations: 90.88 kB / 0.4957 GB, free: 7.203 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001859/0.1595, allocations: 95.16 kB / 0.4958 GB, free: 7.109 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.1595, allocations: 4 kB / 0.4958 GB, free: 7.105 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.1595, allocations: 4 kB / 0.4958 GB, free: 7.102 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.1595, allocations: 3.984 kB / 0.4958 GB, free: 7.098 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009699/0.1605, allocations: 0.735 MB / 0.4965 GB, free: 6.312 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.1605, allocations: 4 kB / 0.4965 GB, free: 6.309 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005307/0.1611, allocations: 115.8 kB / 0.4966 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1611, allocations: 0 / 0.4966 GB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.572e-05/0.1611, allocations: 12 kB / 0.4967 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.1611, allocations: 4 kB / 0.4967 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.1611, allocations: 0 / 0.4967 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001705/0.1628, allocations: 1.209 MB / 0.4978 GB, free: 4.957 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.1631, allocations: 211.9 kB / 0.498 GB, free: 4.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.603e-05/0.1632, allocations: 23.88 kB / 0.4981 GB, free: 4.707 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004487/0.1637, allocations: 39.95 kB / 0.4981 GB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.791e-05/0.1638, allocations: 43.89 kB / 0.4981 GB, free: 4.625 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.132e-05/0.1638, allocations: 19.98 kB / 0.4982 GB, free: 4.605 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005093/0.1643, allocations: 483 kB / 0.4986 GB, free: 4.137 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1643, allocations: 0 / 0.4986 GB, free: 4.137 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008408/0.1652, allocations: 275.1 kB / 0.4989 GB, free: 3.867 MB / 382.1 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 (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.0001183/0.1653, allocations: 115.1 kB / 0.499 GB, free: 3.742 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003568/0.1689, allocations: 1.877 MB / 0.5008 GB, free: 1.789 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.1689, allocations: 4 kB / 0.5008 GB, free: 1.785 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004982/0.1694, allocations: 278.8 kB / 0.5011 GB, free: 1.516 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001155/0.1706, allocations: 242.4 kB / 0.5013 GB, free: 1.293 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2083/0.3789, allocations: 1.48 MB / 0.5028 GB, free: 48.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006924/0.3797, allocations: 0.9817 MB / 0.5037 GB, free: 48 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006124/0.3803, allocations: 88.62 kB / 0.5038 GB, free: 47.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002141/0.3805, allocations: 51 kB / 0.5039 GB, free: 47.99 MB / 382.1 MB Notification: Performance of SimCode: time 1.462e-06/0.3805, allocations: 0 / 0.5039 GB, free: 47.99 MB / 382.1 MB Notification: Performance of Templates: time 0.02678/0.4073, allocations: 12.21 MB / 0.5158 GB, free: 45.14 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches