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.001133/0.001132, allocations: 118.2 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001243/0.001243, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 46.11 MB / 344.3 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002582/0.002582, allocations: 83.86 kB / 481.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.367, allocations: 62.43 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005721/0.3728, allocations: 4.357 MB / 0.5352 GB, free: 10.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003421/0.3762, allocations: 1.581 MB / 0.5368 GB, free: 8.824 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009054/0.3772, allocations: 32.38 kB / 0.5368 GB, free: 8.816 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004811/0.3777, allocations: 159.2 kB / 0.537 GB, free: 8.668 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000539/0.3783, allocations: 170.8 kB / 0.5371 GB, free: 8.516 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001414/0.3797, allocations: 0.5908 MB / 0.5377 GB, free: 8.051 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.3808, allocations: 1.033 MB / 0.5387 GB, free: 7.387 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006494/0.3814, allocations: 438.1 kB / 0.5391 GB, free: 7.121 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003712/0.3818, allocations: 362.6 kB / 0.5395 GB, free: 6.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004417/0.3823, allocations: 392.1 kB / 0.5398 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001384/0.3824, allocations: 85.69 kB / 0.5399 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001264/0.3826, allocations: 86.16 kB / 0.54 GB, free: 6.566 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001797/0.3827, allocations: 200.7 kB / 0.5402 GB, free: 6.395 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003662/0.3831, allocations: 436.5 kB / 0.5406 GB, free: 6.043 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001031/0.3841, allocations: 1.026 MB / 0.5416 GB, free: 5.238 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.3842, allocations: 5.438 kB / 0.5416 GB, free: 5.234 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3842, allocations: 0 / 0.5416 GB, free: 5.234 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.3842, allocations: 0 / 0.5416 GB, free: 5.234 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.002203/0.3864, allocations: 1.293 MB / 0.5429 GB, free: 4.219 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.554e-05/0.3865, allocations: 9 kB / 0.5429 GB, free: 4.219 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002253/0.3867, allocations: 116.4 kB / 0.543 GB, free: 4.16 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001063/0.3878, allocations: 0.6501 MB / 0.5436 GB, free: 3.613 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.358e-05/0.3878, allocations: 54.5 kB / 0.5437 GB, free: 3.586 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.388, allocations: 63.53 kB / 0.5438 GB, free: 3.566 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.3894, allocations: 0.7715 MB / 0.5445 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.188e-05/0.3894, allocations: 9.141 kB / 0.5445 GB, free: 3.004 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.114e-05/0.3895, allocations: 28 kB / 0.5445 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.078e-05/0.3895, allocations: 15.09 kB / 0.5446 GB, free: 2.984 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001204/0.3907, allocations: 0.5385 MB / 0.5451 GB, free: 2.73 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003452/0.3942, allocations: 2.712 MB / 0.5477 GB, free: 272 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.3955, allocations: 0.6671 MB / 0.5484 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005272/0.396, allocations: 275.3 kB / 0.5486 GB, free: 15.28 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.347e-05/0.3961, allocations: 11.98 kB / 0.5487 GB, free: 15.27 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.688e-05/0.3961, allocations: 50.5 kB / 0.5487 GB, free: 15.21 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.435e-06/0.3961, allocations: 0 / 0.5487 GB, free: 15.21 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.001797/0.398, allocations: 0.7961 MB / 0.5495 GB, free: 14.41 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001618/0.3981, allocations: 346.1 kB / 0.5498 GB, free: 14 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007914/0.3989, allocations: 0.7006 MB / 0.5505 GB, free: 13.29 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.399, allocations: 41.64 kB / 0.5505 GB, free: 13.24 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003129/0.3993, allocations: 436.5 kB / 0.551 GB, free: 12.8 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001389/0.3995, allocations: 181.3 kB / 0.5511 GB, free: 12.62 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002025/0.3997, allocations: 110.1 kB / 0.5512 GB, free: 12.51 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.3998, allocations: 337.8 kB / 0.5516 GB, free: 12.17 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004881/0.4003, allocations: 231 kB / 0.5518 GB, free: 11.95 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006227/0.4009, allocations: 390.5 kB / 0.5521 GB, free: 11.5 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.402, allocations: 0.5619 MB / 0.5527 GB, free: 10.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.4021, allocations: 0 / 0.5527 GB, free: 10.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002636/0.4047, allocations: 1.036 MB / 0.5537 GB, free: 9.852 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.4047, allocations: 8 kB / 0.5537 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.4048, allocations: 4 kB / 0.5537 GB, free: 9.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001322/0.4061, allocations: 323.4 kB / 0.554 GB, free: 9.512 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005953/0.4067, allocations: 123.9 kB / 0.5541 GB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009348/0.4161, allocations: 7.276 MB / 0.5613 GB, free: 1.551 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007141/0.4168, allocations: 83.33 kB / 0.5613 GB, free: 1.469 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.205e-05/0.4169, allocations: 20 kB / 0.5614 GB, free: 1.449 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006494/0.4175, allocations: 341.2 kB / 0.5617 GB, free: 1.109 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004983/0.4181, allocations: 363.5 kB / 0.562 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008127/0.4189, allocations: 494.1 kB / 0.5625 GB, free: 180 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.97e-06/0.4189, allocations: 11.94 kB / 0.5625 GB, free: 168 kB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001565/0.4205, allocations: 0.7391 MB / 0.5632 GB, free: 15.41 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.43e-05/0.4205, allocations: 8 kB / 0.5632 GB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.4205, allocations: 4 kB / 0.5632 GB, free: 15.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004823/0.421, allocations: 141.8 kB / 0.5634 GB, free: 15.26 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006896/0.4217, allocations: 171.8 kB / 0.5635 GB, free: 15.09 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003295/0.425, allocations: 3.43 MB / 0.5669 GB, free: 11.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005109/0.4255, allocations: 59.66 kB / 0.5669 GB, free: 11.33 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.387e-05/0.4256, allocations: 20 kB / 0.567 GB, free: 11.31 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.0002294/0.4258, allocations: 224.2 kB / 0.5672 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/0.426, allocations: 94.88 kB / 0.5673 GB, free: 10.99 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001987/0.4262, allocations: 99.16 kB / 0.5674 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.4262, allocations: 8 kB / 0.5674 GB, free: 10.88 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.93e-06/0.4262, allocations: 4 kB / 0.5674 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.4262, allocations: 3.984 kB / 0.5674 GB, free: 10.87 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009582/0.4272, allocations: 0.7273 MB / 0.5681 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4272, allocations: 0 / 0.5681 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005344/0.4278, allocations: 107.9 kB / 0.5682 GB, free: 9.984 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.234e-06/0.4278, allocations: 11.88 kB / 0.5682 GB, free: 9.973 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.005e-05/0.4278, allocations: 19.98 kB / 0.5682 GB, free: 9.953 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4278, allocations: 3.938 kB / 0.5682 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.4278, allocations: 7.938 kB / 0.5682 GB, free: 9.941 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.4296, allocations: 1.201 MB / 0.5694 GB, free: 8.727 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002589/0.4299, allocations: 215.8 kB / 0.5696 GB, free: 8.496 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.231e-05/0.43, allocations: 15.98 kB / 0.5696 GB, free: 8.48 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004983/0.4305, allocations: 35.97 kB / 0.5697 GB, free: 8.445 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.4306, allocations: 31.95 kB / 0.5697 GB, free: 8.414 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.015e-05/0.4307, allocations: 16 kB / 0.5697 GB, free: 8.398 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0005243/0.4312, allocations: 487 kB / 0.5702 GB, free: 7.93 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.593e-06/0.4312, allocations: 4 kB / 0.5702 GB, free: 7.926 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001011/0.4322, allocations: 290.9 kB / 0.5705 GB, free: 7.641 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.0001627/0.4324, allocations: 107.2 kB / 0.5706 GB, free: 7.527 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003943/0.4363, allocations: 1.873 MB / 0.5724 GB, free: 5.578 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4364, allocations: 3.984 kB / 0.5724 GB, free: 5.574 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005662/0.4369, allocations: 279.7 kB / 0.5727 GB, free: 5.301 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001403/0.4384, allocations: 255.5 kB / 0.5729 GB, free: 5.07 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.441, allocations: 1.473 MB / 0.5743 GB, free: 3.559 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005076/0.4415, allocations: 0.9809 MB / 0.5753 GB, free: 2.551 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004101/0.4419, allocations: 89.12 kB / 0.5754 GB, free: 2.465 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001564/0.4421, allocations: 47.44 kB / 0.5754 GB, free: 2.418 MB / 430.1 MB Notification: Performance of SimCode: time 9.71e-07/0.4421, allocations: 0 / 0.5754 GB, free: 2.418 MB / 430.1 MB Notification: Performance of Templates: time 0.02089/0.463, allocations: 12.3 MB / 0.5874 GB, free: 6.172 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/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_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches