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.0011/0.0011, allocations: 114.4 kB / 17.78 MB, free: 5.258 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.0009368/0.0009368, allocations: 183 kB / 18.72 MB, free: 4.332 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.246/1.246, allocations: 222.9 MB / 242.4 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.1882/0.1882, allocations: 44.2 MB / 336.8 MB, free: 2.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00114/0.00114, allocations: 63.91 kB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3215, allocations: 60.82 MB / 0.5189 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.00497/0.3265, allocations: 4.377 MB / 0.5232 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003304/0.3299, allocations: 1.549 MB / 0.5247 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001011/0.3309, allocations: 37.5 kB / 0.5247 GB, free: 15.55 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005771/0.3315, allocations: 157.7 kB / 0.5249 GB, free: 15.44 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008094/0.3324, allocations: 172.8 kB / 0.525 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001535/0.3339, allocations: 0.5758 MB / 0.5256 GB, free: 14.97 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001597/0.3355, allocations: 1.031 MB / 0.5266 GB, free: 14.44 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006519/0.3362, allocations: 438.1 kB / 0.527 GB, free: 14.2 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004121/0.3366, allocations: 361.6 kB / 0.5274 GB, free: 14 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003536/0.337, allocations: 390.3 kB / 0.5277 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001187/0.3371, allocations: 85.25 kB / 0.5278 GB, free: 13.73 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.3372, allocations: 91.69 kB / 0.5279 GB, free: 13.72 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000149/0.3374, allocations: 203.3 kB / 0.5281 GB, free: 13.55 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003068/0.3377, allocations: 439.1 kB / 0.5285 GB, free: 13.2 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009351/0.3386, allocations: 1.033 MB / 0.5295 GB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.3386, allocations: 4 kB / 0.5295 GB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3386, allocations: 0 / 0.5295 GB, free: 12.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.2e-05/0.3387, allocations: 0 / 0.5295 GB, free: 12.38 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.001838/0.3405, allocations: 1.319 MB / 0.5308 GB, free: 11.34 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3406, allocations: 10.06 kB / 0.5308 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000163/0.3407, allocations: 119.3 kB / 0.5309 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008673/0.3416, allocations: 0.6654 MB / 0.5316 GB, free: 10.71 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.905e-05/0.3416, allocations: 52.19 kB / 0.5316 GB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.47e-05/0.3417, allocations: 70.2 kB / 0.5317 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.3429, allocations: 0.7305 MB / 0.5324 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.3429, allocations: 3.938 kB / 0.5324 GB, free: 10.15 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.431e-05/0.343, allocations: 27.78 kB / 0.5324 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.985e-05/0.343, allocations: 15.19 kB / 0.5325 GB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.3441, allocations: 0.5504 MB / 0.533 GB, free: 9.867 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003004/0.3471, allocations: 2.71 MB / 0.5356 GB, free: 7.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001311/0.3485, allocations: 0.6732 MB / 0.5363 GB, free: 7.203 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005295/0.349, allocations: 276.2 kB / 0.5366 GB, free: 7.055 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.335e-05/0.3491, allocations: 9.625 kB / 0.5366 GB, free: 7.051 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.3491, allocations: 42.44 kB / 0.5366 GB, free: 7.004 MB / 398.1 MB Notification: Performance of pre-optimization done (n=52): time 2.535e-06/0.3491, allocations: 0 / 0.5366 GB, free: 7.004 MB / 398.1 MB Notification: Performance of matching and sorting (n=52): time 0.001767/0.3509, allocations: 0.8001 MB / 0.5374 GB, free: 6.609 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001216/0.351, allocations: 246.3 kB / 0.5376 GB, free: 6.32 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008038/0.3518, allocations: 0.6961 MB / 0.5383 GB, free: 5.926 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.053e-05/0.3519, allocations: 41.2 kB / 0.5384 GB, free: 5.883 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003053/0.3522, allocations: 432 kB / 0.5388 GB, free: 5.504 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001382/0.3523, allocations: 191.7 kB / 0.5389 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001693/0.3525, allocations: 112.3 kB / 0.5391 GB, free: 5.262 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3526, allocations: 327.7 kB / 0.5394 GB, free: 4.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005044/0.3531, allocations: 230.4 kB / 0.5396 GB, free: 4.828 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005605/0.3537, allocations: 365.2 kB / 0.5399 GB, free: 4.555 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.3547, allocations: 0.5582 MB / 0.5405 GB, free: 4.211 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3547, allocations: 0.9688 kB / 0.5405 GB, free: 4.211 MB / 398.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002551/0.3573, allocations: 1.051 MB / 0.5415 GB, free: 3.656 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3573, allocations: 5.719 kB / 0.5415 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.3573, allocations: 7.312 kB / 0.5415 GB, free: 3.652 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001149/0.3585, allocations: 320.2 kB / 0.5418 GB, free: 3.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/0.359, allocations: 122.5 kB / 0.5419 GB, free: 3.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008161/0.3672, allocations: 7.272 MB / 0.549 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005173/0.3678, allocations: 79.59 kB / 0.5491 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.871e-05/0.3678, allocations: 23.98 kB / 0.5491 GB, free: 12.13 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006283/0.3685, allocations: 345.1 kB / 0.5495 GB, free: 11.79 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004615/0.3689, allocations: 328.1 kB / 0.5498 GB, free: 11.42 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007821/0.3697, allocations: 0.4932 MB / 0.5503 GB, free: 10.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.224e-06/0.3697, allocations: 0 / 0.5503 GB, free: 10.89 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001452/0.3712, allocations: 0.7544 MB / 0.551 GB, free: 10.13 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.3712, allocations: 8 kB / 0.551 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.3712, allocations: 0 / 0.551 GB, free: 10.12 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004497/0.3717, allocations: 141.6 kB / 0.5511 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006756/0.3724, allocations: 171.8 kB / 0.5513 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003193/0.3756, allocations: 3.419 MB / 0.5546 GB, free: 6.113 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005121/0.3761, allocations: 63.77 kB / 0.5547 GB, free: 6.051 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.997e-05/0.3762, allocations: 20 kB / 0.5547 GB, free: 6.031 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.0002211/0.3764, allocations: 220 kB / 0.5549 GB, free: 5.809 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002211/0.3766, allocations: 95.39 kB / 0.555 GB, free: 5.715 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000203/0.3768, allocations: 99.14 kB / 0.5551 GB, free: 5.613 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.3768, allocations: 8 kB / 0.5551 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.396e-06/0.3768, allocations: 48 / 0.5551 GB, free: 5.605 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.3769, allocations: 7.984 kB / 0.5551 GB, free: 5.598 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.3779, allocations: 0.7391 MB / 0.5559 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.378, allocations: 4 kB / 0.5559 GB, free: 4.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005109/0.3785, allocations: 111.9 kB / 0.556 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.726e-05/0.3786, allocations: 4 kB / 0.556 GB, free: 4.691 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.586e-05/0.3786, allocations: 12 kB / 0.556 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.3786, allocations: 0 / 0.556 GB, free: 4.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.3786, allocations: 4 kB / 0.556 GB, free: 4.676 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001837/0.3805, allocations: 1.225 MB / 0.5572 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002509/0.3807, allocations: 216.3 kB / 0.5574 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.976e-05/0.3808, allocations: 12 kB / 0.5574 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004697/0.3813, allocations: 47.95 kB / 0.5574 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.633e-05/0.3814, allocations: 31.89 kB / 0.5575 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.3814, allocations: 16 kB / 0.5575 GB, free: 3.105 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005404/0.382, allocations: 487 kB / 0.558 GB, free: 2.637 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.382, allocations: 3.938 kB / 0.558 GB, free: 2.633 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009625/0.3829, allocations: 279.4 kB / 0.5582 GB, free: 2.359 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.0001267/0.3831, allocations: 119.1 kB / 0.5583 GB, free: 2.234 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003811/0.3869, allocations: 1.884 MB / 0.5602 GB, free: 284 kB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3869, allocations: 0 / 0.5602 GB, free: 284 kB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005407/0.3875, allocations: 279.7 kB / 0.5604 GB, free: 4 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.3887, allocations: 249.5 kB / 0.5607 GB, free: 15.77 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3912, allocations: 1.507 MB / 0.5622 GB, free: 14.21 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005752/0.3918, allocations: 0.9887 MB / 0.5631 GB, free: 13.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003409/0.3921, allocations: 85.2 kB / 0.5632 GB, free: 13.12 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001619/0.3923, allocations: 47.44 kB / 0.5633 GB, free: 13.07 MB / 430.1 MB Notification: Performance of SimCode: time 1.092e-06/0.3923, allocations: 0 / 0.5633 GB, free: 13.07 MB / 430.1 MB Notification: Performance of Templates: time 0.01902/0.4113, allocations: 12.33 MB / 0.5753 GB, free: 0.8281 MB / 430.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches