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.001874/0.001874, allocations: 115.5 kB / 18.45 MB, free: 4.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002189/0.002189, allocations: 206.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.446/1.446, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2253/0.2253, allocations: 46.12 MB / 345 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003118/0.003118, allocations: 75.88 kB / 482 MB, free: 4.035 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.3143, allocations: 62.44 MB / 0.5317 GB, free: 13.6 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005509/0.3198, allocations: 4.37 MB / 0.536 GB, free: 10.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.002596/0.3224, allocations: 1.583 MB / 0.5375 GB, free: 8.812 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00032/0.3228, allocations: 30.59 kB / 0.5376 GB, free: 8.805 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003445/0.3231, allocations: 162.2 kB / 0.5377 GB, free: 8.652 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000355/0.3235, allocations: 168.2 kB / 0.5379 GB, free: 8.504 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001107/0.3246, allocations: 0.5987 MB / 0.5385 GB, free: 8.031 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3256, allocations: 1.025 MB / 0.5395 GB, free: 7.371 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004771/0.3261, allocations: 304.2 kB / 0.5398 GB, free: 7.145 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003619/0.3264, allocations: 369.5 kB / 0.5401 GB, free: 6.895 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003704/0.3268, allocations: 385 kB / 0.5405 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001236/0.3269, allocations: 85.84 kB / 0.5406 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001003/0.327, allocations: 87 kB / 0.5406 GB, free: 6.59 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001733/0.3272, allocations: 204.9 kB / 0.5408 GB, free: 6.414 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003584/0.3275, allocations: 435.5 kB / 0.5412 GB, free: 6.062 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.3286, allocations: 1.029 MB / 0.5423 GB, free: 5.254 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.3286, allocations: 0 / 0.5423 GB, free: 5.254 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.3286, allocations: 7.938 kB / 0.5423 GB, free: 5.246 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.3286, allocations: 0.9688 kB / 0.5423 GB, free: 5.246 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.002088/0.3307, allocations: 1.324 MB / 0.5436 GB, free: 4.199 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.291e-05/0.3307, allocations: 13.06 kB / 0.5436 GB, free: 4.195 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001683/0.3309, allocations: 121 kB / 0.5437 GB, free: 4.133 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009641/0.3318, allocations: 0.6614 MB / 0.5443 GB, free: 3.574 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.453e-05/0.3319, allocations: 47.94 kB / 0.5444 GB, free: 3.555 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.333e-05/0.332, allocations: 62.41 kB / 0.5444 GB, free: 3.535 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.3333, allocations: 0.7767 MB / 0.5452 GB, free: 2.977 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3333, allocations: 5.125 kB / 0.5452 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.127e-05/0.3334, allocations: 30.84 kB / 0.5452 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.555e-05/0.3334, allocations: 15.16 kB / 0.5452 GB, free: 2.949 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00124/0.3346, allocations: 0.5434 MB / 0.5458 GB, free: 2.691 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.3381, allocations: 2.715 MB / 0.5484 GB, free: 324 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.3395, allocations: 0.6436 MB / 0.549 GB, free: 15.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005651/0.3401, allocations: 275.4 kB / 0.5493 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.3401, allocations: 8 kB / 0.5493 GB, free: 15.35 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.3402, allocations: 46.5 kB / 0.5494 GB, free: 15.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=52): time 2.525e-06/0.3402, allocations: 0 / 0.5494 GB, free: 15.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=52): time 0.001873/0.3421, allocations: 0.7933 MB / 0.5501 GB, free: 14.5 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001915/0.3422, allocations: 346.1 kB / 0.5505 GB, free: 14.08 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008153/0.3431, allocations: 0.7045 MB / 0.5512 GB, free: 13.36 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 5.354e-05/0.3431, allocations: 37.7 kB / 0.5512 GB, free: 13.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.3435, allocations: 437 kB / 0.5516 GB, free: 12.89 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/0.3436, allocations: 194.3 kB / 0.5518 GB, free: 12.7 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001922/0.3438, allocations: 106.2 kB / 0.5519 GB, free: 12.58 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.344, allocations: 333.9 kB / 0.5522 GB, free: 12.25 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005424/0.3445, allocations: 238.9 kB / 0.5524 GB, free: 12.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006957/0.3452, allocations: 387.5 kB / 0.5528 GB, free: 11.57 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001145/0.3464, allocations: 0.5577 MB / 0.5534 GB, free: 10.98 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.3464, allocations: 4 kB / 0.5534 GB, free: 10.98 MB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002772/0.3492, allocations: 1.03 MB / 0.5544 GB, free: 9.93 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.3492, allocations: 14.83 kB / 0.5544 GB, free: 9.918 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.3492, allocations: 4 kB / 0.5544 GB, free: 9.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.3504, allocations: 327 kB / 0.5547 GB, free: 9.582 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00057/0.351, allocations: 127.9 kB / 0.5548 GB, free: 9.457 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009717/0.3607, allocations: 7.28 MB / 0.5619 GB, free: 1.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000659/0.3613, allocations: 75.59 kB / 0.562 GB, free: 1.539 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.064e-05/0.3614, allocations: 20 kB / 0.562 GB, free: 1.52 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006681/0.3621, allocations: 349.2 kB / 0.5623 GB, free: 1.172 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005332/0.3626, allocations: 351.5 kB / 0.5627 GB, free: 0.7695 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009013/0.3635, allocations: 0.5021 MB / 0.5632 GB, free: 236 kB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.997e-06/0.3635, allocations: 4 kB / 0.5632 GB, free: 232 kB / 414.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001678/0.3652, allocations: 0.7423 MB / 0.5639 GB, free: 15.47 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.3652, allocations: 8 kB / 0.5639 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3652, allocations: 0 / 0.5639 GB, free: 15.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000515/0.3657, allocations: 154 kB / 0.5641 GB, free: 15.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007553/0.3665, allocations: 167.8 kB / 0.5642 GB, free: 15.14 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003899/0.3704, allocations: 3.431 MB / 0.5676 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005651/0.3709, allocations: 67.7 kB / 0.5676 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.898e-05/0.371, allocations: 23.98 kB / 0.5677 GB, free: 11.35 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.0002448/0.3712, allocations: 224.1 kB / 0.5679 GB, free: 11.12 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/0.3714, allocations: 99.33 kB / 0.568 GB, free: 11.03 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002217/0.3716, allocations: 99.16 kB / 0.5681 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.28e-06/0.3716, allocations: 4 kB / 0.5681 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3716, allocations: 0 / 0.5681 GB, free: 10.92 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.206e-05/0.3716, allocations: 7.984 kB / 0.5681 GB, free: 10.91 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001132/0.3728, allocations: 0.7311 MB / 0.5688 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.3728, allocations: 0 / 0.5688 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005895/0.3734, allocations: 107.9 kB / 0.5689 GB, free: 10.03 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.3734, allocations: 7.938 kB / 0.5689 GB, free: 10.02 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.833e-05/0.3734, allocations: 12 kB / 0.5689 GB, free: 10.01 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.3734, allocations: 4 kB / 0.5689 GB, free: 10 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.3734, allocations: 11.86 kB / 0.5689 GB, free: 9.992 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.3755, allocations: 1.206 MB / 0.5701 GB, free: 8.777 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002833/0.3757, allocations: 220.2 kB / 0.5703 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.908e-05/0.3758, allocations: 12 kB / 0.5703 GB, free: 8.531 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005386/0.3764, allocations: 48.02 kB / 0.5704 GB, free: 8.484 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.149e-05/0.3765, allocations: 31.95 kB / 0.5704 GB, free: 8.453 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.936e-05/0.3765, allocations: 16 kB / 0.5704 GB, free: 8.438 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0006142/0.3771, allocations: 490.9 kB / 0.5709 GB, free: 7.965 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3771, allocations: 0 / 0.5709 GB, free: 7.965 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001013/0.3781, allocations: 283.3 kB / 0.5712 GB, free: 7.688 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.0001501/0.3783, allocations: 107.2 kB / 0.5713 GB, free: 7.574 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004303/0.3826, allocations: 1.845 MB / 0.5731 GB, free: 5.652 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3826, allocations: 0 / 0.5731 GB, free: 5.652 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000619/0.3832, allocations: 267.7 kB / 0.5733 GB, free: 5.391 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001398/0.3846, allocations: 246.2 kB / 0.5735 GB, free: 5.164 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002606/0.3872, allocations: 1.509 MB / 0.575 GB, free: 3.617 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006409/0.3878, allocations: 0.9809 MB / 0.576 GB, free: 2.609 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003581/0.3882, allocations: 93.11 kB / 0.5761 GB, free: 2.52 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001613/0.3883, allocations: 43.44 kB / 0.5761 GB, free: 2.477 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/0.3883, allocations: 0 / 0.5761 GB, free: 2.477 MB / 430.1 MB Notification: Performance of Templates: time 0.02286/0.4112, allocations: 12.35 MB / 0.5882 GB, free: 6.184 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 -s gbode -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