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.001308/0.001309, allocations: 110 kB / 18.45 MB, free: 4.59 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.001325/0.001325, allocations: 182.3 kB / 19.38 MB, free: 3.672 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.294/1.294, allocations: 222.9 MB / 243.1 MB, free: 15.06 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.1772/0.1772, allocations: 44.18 MB / 337.4 MB, free: 2.645 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001181/0.001181, allocations: 71.89 kB / 471.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3295, allocations: 60.81 MB / 0.5196 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004449/0.334, allocations: 4.38 MB / 0.5238 GB, free: 428 kB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00273/0.3368, allocations: 1.544 MB / 0.5253 GB, free: 15.29 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000457/0.3373, allocations: 38.03 kB / 0.5254 GB, free: 15.28 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004008/0.3377, allocations: 161 kB / 0.5255 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003645/0.3381, allocations: 163.9 kB / 0.5257 GB, free: 15.03 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001151/0.3392, allocations: 0.5857 MB / 0.5263 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009764/0.3402, allocations: 1.029 MB / 0.5273 GB, free: 14.16 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005975/0.3408, allocations: 442.8 kB / 0.5277 GB, free: 13.92 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003625/0.3412, allocations: 366.3 kB / 0.528 GB, free: 13.71 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003703/0.3416, allocations: 394 kB / 0.5284 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001219/0.3417, allocations: 85.34 kB / 0.5285 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001101/0.3418, allocations: 85.97 kB / 0.5286 GB, free: 13.47 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001461/0.342, allocations: 197.2 kB / 0.5288 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002947/0.3423, allocations: 438.4 kB / 0.5292 GB, free: 12.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008052/0.3431, allocations: 1.029 MB / 0.5302 GB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.3431, allocations: 5.281 kB / 0.5302 GB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3431, allocations: 0 / 0.5302 GB, free: 12.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.664e-05/0.3431, allocations: 0 / 0.5302 GB, free: 12.14 MB / 398.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.001815/0.3449, allocations: 1.3 MB / 0.5315 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.625e-05/0.345, allocations: 9.75 kB / 0.5315 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.3451, allocations: 111.7 kB / 0.5316 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009147/0.3461, allocations: 0.6522 MB / 0.5322 GB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.86e-05/0.3461, allocations: 48.56 kB / 0.5323 GB, free: 10.49 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.966e-05/0.3462, allocations: 65.44 kB / 0.5323 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001147/0.3474, allocations: 0.7415 MB / 0.533 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.3474, allocations: 1.062 kB / 0.533 GB, free: 9.957 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-05/0.3475, allocations: 30.42 kB / 0.5331 GB, free: 9.934 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.724e-05/0.3475, allocations: 23.5 kB / 0.5331 GB, free: 9.926 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001065/0.3486, allocations: 0.5387 MB / 0.5336 GB, free: 9.672 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003009/0.3516, allocations: 2.703 MB / 0.5363 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001239/0.3528, allocations: 0.6646 MB / 0.5369 GB, free: 7.023 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005096/0.3533, allocations: 279.5 kB / 0.5372 GB, free: 6.871 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.237e-05/0.3534, allocations: 15.08 kB / 0.5372 GB, free: 6.863 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.112e-05/0.3535, allocations: 50.03 kB / 0.5372 GB, free: 6.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 2.304e-06/0.3535, allocations: 0 / 0.5372 GB, free: 6.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.001708/0.3552, allocations: 0.7958 MB / 0.538 GB, free: 6.422 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001168/0.3553, allocations: 241 kB / 0.5382 GB, free: 6.137 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007658/0.3561, allocations: 0.7005 MB / 0.5389 GB, free: 5.738 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.352e-05/0.3561, allocations: 41.08 kB / 0.539 GB, free: 5.695 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003095/0.3564, allocations: 431.5 kB / 0.5394 GB, free: 5.316 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.3566, allocations: 190.6 kB / 0.5396 GB, free: 5.148 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.3568, allocations: 104.6 kB / 0.5397 GB, free: 5.082 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001044/0.3569, allocations: 331 kB / 0.54 GB, free: 4.758 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004763/0.3574, allocations: 231.3 kB / 0.5402 GB, free: 4.645 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005756/0.3579, allocations: 360.9 kB / 0.5405 GB, free: 4.375 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009812/0.3589, allocations: 0.5548 MB / 0.5411 GB, free: 4.035 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.518e-06/0.3589, allocations: 1.531 kB / 0.5411 GB, free: 4.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002496/0.3615, allocations: 1.042 MB / 0.5421 GB, free: 3.488 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.3615, allocations: 5.844 kB / 0.5421 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3615, allocations: 4.062 kB / 0.5421 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001133/0.3626, allocations: 315.6 kB / 0.5424 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005488/0.3632, allocations: 127.1 kB / 0.5425 GB, free: 3.289 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008344/0.3716, allocations: 7.269 MB / 0.5496 GB, free: 12.14 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005283/0.3721, allocations: 75.39 kB / 0.5497 GB, free: 12.06 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.709e-05/0.3722, allocations: 23.94 kB / 0.5497 GB, free: 12.04 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005999/0.3728, allocations: 345.2 kB / 0.5501 GB, free: 11.7 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004454/0.3732, allocations: 328.1 kB / 0.5504 GB, free: 11.33 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008228/0.374, allocations: 0.498 MB / 0.5509 GB, free: 10.79 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.713e-06/0.3741, allocations: 0 / 0.5509 GB, free: 10.79 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.00146/0.3755, allocations: 0.7468 MB / 0.5516 GB, free: 10.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.625e-05/0.3756, allocations: 8 kB / 0.5516 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.3756, allocations: 7.938 kB / 0.5516 GB, free: 10.02 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004667/0.376, allocations: 141.7 kB / 0.5517 GB, free: 9.875 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000682/0.3767, allocations: 171.8 kB / 0.5519 GB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003165/0.3799, allocations: 3.418 MB / 0.5552 GB, free: 6.012 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004353/0.3804, allocations: 59.64 kB / 0.5553 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.3804, allocations: 27.98 kB / 0.5553 GB, free: 5.926 MB / 414.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.0001918/0.3806, allocations: 216.1 kB / 0.5555 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001691/0.3808, allocations: 90.88 kB / 0.5556 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000168/0.3809, allocations: 95.16 kB / 0.5557 GB, free: 5.52 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.381, allocations: 8.031 kB / 0.5557 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.825e-06/0.381, allocations: 0 / 0.5557 GB, free: 5.512 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.855e-06/0.381, allocations: 11.98 kB / 0.5557 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009655/0.382, allocations: 0.7388 MB / 0.5564 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.382, allocations: 0 / 0.5564 GB, free: 4.715 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005118/0.3825, allocations: 108 kB / 0.5565 GB, free: 4.609 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.994e-06/0.3825, allocations: 8 kB / 0.5566 GB, free: 4.602 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.555e-05/0.3825, allocations: 12 kB / 0.5566 GB, free: 4.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.391e-06/0.3826, allocations: 7.984 kB / 0.5566 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3826, allocations: 0 / 0.5566 GB, free: 4.582 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.3842, allocations: 1.213 MB / 0.5578 GB, free: 3.355 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002366/0.3844, allocations: 215.8 kB / 0.558 GB, free: 3.125 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.057e-05/0.3845, allocations: 12 kB / 0.558 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004579/0.385, allocations: 39.95 kB / 0.558 GB, free: 3.074 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.3851, allocations: 39.89 kB / 0.5581 GB, free: 3.035 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.587e-05/0.3851, allocations: 8 kB / 0.5581 GB, free: 3.027 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005007/0.3856, allocations: 487 kB / 0.5585 GB, free: 2.559 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.3856, allocations: 0 / 0.5585 GB, free: 2.559 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0008927/0.3865, allocations: 287.1 kB / 0.5588 GB, free: 2.277 MB / 414.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.0001394/0.3866, allocations: 107.2 kB / 0.5589 GB, free: 2.164 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003591/0.3902, allocations: 1.873 MB / 0.5607 GB, free: 220 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3903, allocations: 0 / 0.5607 GB, free: 220 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/0.3908, allocations: 283.8 kB / 0.561 GB, free: 15.93 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001227/0.392, allocations: 239.1 kB / 0.5612 GB, free: 15.71 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.3943, allocations: 1.518 MB / 0.5627 GB, free: 14.14 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/0.3948, allocations: 0.9848 MB / 0.5637 GB, free: 13.13 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001537/0.395, allocations: 51.44 kB / 0.5637 GB, free: 13.08 MB / 430.1 MB Notification: Performance of SimCode: time 3.4e-07/0.395, allocations: 0 / 0.5637 GB, free: 13.08 MB / 430.1 MB Notification: Performance of Templates: time 0.01717/0.4121, allocations: 17.17 MB / 0.5805 GB, free: 11.93 MB / 446.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 -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