Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001451/0.001451, allocations: 113 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0014/0.0014, allocations: 212.9 kB / 19.41 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 227.4 MB / 247.6 MB, free: 10.59 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.231/0.231, allocations: 46.1 MB / 344.9 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001664, allocations: 83.8 kB / 482 MB, free: 4.145 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4165/0.4182, allocations: 62.43 MB / 0.5316 GB, free: 13.66 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005328/0.4235, allocations: 4.36 MB / 0.5359 GB, free: 10.19 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003423/0.427, allocations: 1.579 MB / 0.5374 GB, free: 8.883 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000742/0.4278, allocations: 35.44 kB / 0.5375 GB, free: 8.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004356/0.4282, allocations: 155.2 kB / 0.5376 GB, free: 8.727 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004798/0.4288, allocations: 171.9 kB / 0.5378 GB, free: 8.574 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.4301, allocations: 0.5983 MB / 0.5384 GB, free: 8.098 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001145/0.4313, allocations: 1.026 MB / 0.5394 GB, free: 7.441 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006285/0.4319, allocations: 434.2 kB / 0.5398 GB, free: 7.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004125/0.4323, allocations: 369.9 kB / 0.5401 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003688/0.4327, allocations: 393.1 kB / 0.5405 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001307/0.4329, allocations: 86.25 kB / 0.5406 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.433, allocations: 85.34 kB / 0.5407 GB, free: 6.617 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.4331, allocations: 196.7 kB / 0.5409 GB, free: 6.449 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003256/0.4335, allocations: 440.2 kB / 0.5413 GB, free: 6.094 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009591/0.4344, allocations: 1.027 MB / 0.5423 GB, free: 5.289 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.4345, allocations: 0 / 0.5423 GB, free: 5.289 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.4345, allocations: 0 / 0.5423 GB, free: 5.289 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.4345, allocations: 3.938 kB / 0.5423 GB, free: 5.285 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.001954/0.4364, allocations: 1.285 MB / 0.5436 GB, free: 4.277 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.4365, allocations: 13.69 kB / 0.5436 GB, free: 4.273 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001901/0.4367, allocations: 116.2 kB / 0.5437 GB, free: 4.215 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009828/0.4377, allocations: 0.6582 MB / 0.5443 GB, free: 3.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.4377, allocations: 46.94 kB / 0.5444 GB, free: 3.641 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001059/0.4379, allocations: 66 kB / 0.5444 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001321/0.4392, allocations: 0.7719 MB / 0.5452 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.4392, allocations: 1.25 kB / 0.5452 GB, free: 3.066 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.725e-05/0.4393, allocations: 26.72 kB / 0.5452 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.849e-05/0.4393, allocations: 15.69 kB / 0.5452 GB, free: 3.047 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.4405, allocations: 0.5458 MB / 0.5458 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003376/0.4439, allocations: 2.714 MB / 0.5484 GB, free: 364 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001304/0.4452, allocations: 0.6642 MB / 0.5491 GB, free: 15.66 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005078/0.4457, allocations: 275.3 kB / 0.5493 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.657e-05/0.4458, allocations: 11.98 kB / 0.5493 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.008e-05/0.4459, allocations: 46.56 kB / 0.5494 GB, free: 15.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.635e-06/0.4459, allocations: 0 / 0.5494 GB, free: 15.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.001731/0.4476, allocations: 0.7965 MB / 0.5502 GB, free: 14.51 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000178/0.4478, allocations: 350.1 kB / 0.5505 GB, free: 14.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007675/0.4486, allocations: 0.7006 MB / 0.5512 GB, free: 13.38 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.668e-05/0.4486, allocations: 41.64 kB / 0.5512 GB, free: 13.33 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.449, allocations: 436.5 kB / 0.5516 GB, free: 12.9 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001399/0.4491, allocations: 185.3 kB / 0.5518 GB, free: 12.71 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001826/0.4493, allocations: 110.1 kB / 0.5519 GB, free: 12.6 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4494, allocations: 329.9 kB / 0.5522 GB, free: 12.27 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004819/0.4499, allocations: 231 kB / 0.5524 GB, free: 12.04 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005885/0.4505, allocations: 391.4 kB / 0.5528 GB, free: 11.59 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00104/0.4516, allocations: 0.5585 MB / 0.5534 GB, free: 11 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.4516, allocations: 4 kB / 0.5534 GB, free: 11 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002528/0.4541, allocations: 1.04 MB / 0.5544 GB, free: 9.941 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.4541, allocations: 8 kB / 0.5544 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.4542, allocations: 0 / 0.5544 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001186/0.4554, allocations: 323.4 kB / 0.5547 GB, free: 9.605 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005396/0.4559, allocations: 123.8 kB / 0.5548 GB, free: 9.484 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008217/0.4641, allocations: 7.26 MB / 0.5619 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00073/0.4649, allocations: 91.27 kB / 0.562 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.11e-05/0.465, allocations: 20 kB / 0.562 GB, free: 1.551 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006277/0.4656, allocations: 349.2 kB / 0.5623 GB, free: 1.203 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004741/0.4661, allocations: 347.6 kB / 0.5627 GB, free: 0.8047 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000786/0.4669, allocations: 0.4982 MB / 0.5632 GB, free: 276 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.214e-06/0.4669, allocations: 0 / 0.5632 GB, free: 276 kB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001497/0.4684, allocations: 0.743 MB / 0.5639 GB, free: 15.52 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.423e-05/0.4684, allocations: 4 kB / 0.5639 GB, free: 15.51 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4684, allocations: 8.094 kB / 0.5639 GB, free: 15.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005003/0.4689, allocations: 149.8 kB / 0.564 GB, free: 15.35 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007042/0.4696, allocations: 168 kB / 0.5642 GB, free: 15.19 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003405/0.4731, allocations: 3.442 MB / 0.5676 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005736/0.4737, allocations: 63.66 kB / 0.5676 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.4737, allocations: 16 kB / 0.5676 GB, free: 11.39 MB / 430.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.0002609/0.474, allocations: 220.1 kB / 0.5679 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/0.4742, allocations: 90.81 kB / 0.5679 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002089/0.4744, allocations: 107.2 kB / 0.568 GB, free: 10.97 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.52e-06/0.4744, allocations: 4 kB / 0.568 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.4744, allocations: 0 / 0.568 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.927e-06/0.4744, allocations: 7.984 kB / 0.5681 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00101/0.4754, allocations: 0.7273 MB / 0.5688 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.4755, allocations: 0 / 0.5688 GB, free: 10.18 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/0.476, allocations: 111.8 kB / 0.5689 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.476, allocations: 7.938 kB / 0.5689 GB, free: 10.06 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.829e-05/0.4761, allocations: 16 kB / 0.5689 GB, free: 10.05 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.4761, allocations: 4 kB / 0.5689 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4761, allocations: 0 / 0.5689 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001757/0.4779, allocations: 1.209 MB / 0.5701 GB, free: 8.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002382/0.4781, allocations: 219.8 kB / 0.5703 GB, free: 8.586 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.357e-05/0.4782, allocations: 12 kB / 0.5703 GB, free: 8.574 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004878/0.4787, allocations: 43.95 kB / 0.5703 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.541e-05/0.4788, allocations: 31.95 kB / 0.5704 GB, free: 8.5 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.894e-05/0.4788, allocations: 12 kB / 0.5704 GB, free: 8.488 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000544/0.4794, allocations: 487 kB / 0.5708 GB, free: 8.02 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4794, allocations: 4 kB / 0.5708 GB, free: 8.016 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0009939/0.4804, allocations: 283 kB / 0.5711 GB, free: 7.738 MB / 430.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.0001571/0.4805, allocations: 107.2 kB / 0.5712 GB, free: 7.625 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003772/0.4843, allocations: 1.877 MB / 0.5731 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.088e-06/0.4843, allocations: 0 / 0.5731 GB, free: 5.672 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005709/0.4849, allocations: 271.7 kB / 0.5733 GB, free: 5.406 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001277/0.4862, allocations: 250.2 kB / 0.5736 GB, free: 5.176 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.4887, allocations: 1.517 MB / 0.575 GB, free: 3.613 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005509/0.4892, allocations: 0.9809 MB / 0.576 GB, free: 2.605 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.4894, allocations: 51.44 kB / 0.576 GB, free: 2.555 MB / 430.1 MB Notification: Performance of SimCode: time 5.31e-07/0.4894, allocations: 0 / 0.576 GB, free: 2.555 MB / 430.1 MB Notification: Performance of Templates: time 0.01999/0.5094, allocations: 17.15 MB / 0.5928 GB, free: 1.414 MB / 446.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches