Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008656/0.0008652, allocations: 97.25 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009975/0.0009974, allocations: 182.8 kB / 16.92 MB, free: 6.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.207/2.207, allocations: 205.4 MB / 223.1 MB, free: 5.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5242/0.5242, allocations: 43.58 MB / 315 MB, free: 8.859 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005306/0.0005307, allocations: 16.47 kB / 384.6 MB, free: 7.664 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1499/0.1505, allocations: 58.87 MB / 443.4 MB, free: 12.69 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004473/0.155, allocations: 3.946 MB / 447.4 MB, free: 8.715 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003196/0.1582, allocations: 1.551 MB / 448.9 MB, free: 7.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005483/0.1588, allocations: 35.81 kB / 449 MB, free: 7.117 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003507/0.1592, allocations: 122.8 kB / 449.1 MB, free: 6.996 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003811/0.1595, allocations: 134.8 kB / 449.2 MB, free: 6.863 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001173/0.1607, allocations: 0.5305 MB / 449.8 MB, free: 6.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009917/0.1617, allocations: 0.9683 MB / 450.7 MB, free: 5.359 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006202/0.1624, allocations: 419.4 kB / 451.1 MB, free: 4.93 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.1627, allocations: 282.2 kB / 451.4 MB, free: 4.652 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.163, allocations: 297.7 kB / 451.7 MB, free: 4.359 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.344e-05/0.1631, allocations: 20 kB / 451.7 MB, free: 4.34 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.811e-05/0.1631, allocations: 24 kB / 451.7 MB, free: 4.316 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1632, allocations: 119.2 kB / 451.9 MB, free: 4.199 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002966/0.1635, allocations: 382.9 kB / 452.2 MB, free: 3.816 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007466/0.1643, allocations: 0.9063 MB / 453.1 MB, free: 2.906 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1643, allocations: 0 / 453.1 MB, free: 2.906 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.1643, allocations: 0 / 453.1 MB, free: 2.906 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.959e-06/0.1643, allocations: 4 kB / 453.1 MB, free: 2.902 MB / 382.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.001813/0.1662, allocations: 1.148 MB / 454.3 MB, free: 1.703 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.283e-05/0.1662, allocations: 8.031 kB / 454.3 MB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.1664, allocations: 127.4 kB / 454.4 MB, free: 1.57 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008125/0.1672, allocations: 0.6436 MB / 455.1 MB, free: 0.8828 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.848e-05/0.1673, allocations: 57.62 kB / 455.1 MB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001072/0.1674, allocations: 60.38 kB / 455.2 MB, free: 0.7695 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2896/0.457, allocations: 0.7607 MB / 455.9 MB, free: 45.95 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.343e-05/0.4571, allocations: 3.844 kB / 456 MB, free: 45.95 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001949/0.4573, allocations: 28.67 kB / 456 MB, free: 45.95 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.4574, allocations: 14.5 kB / 456 MB, free: 45.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001619/0.459, allocations: 0.5961 MB / 456.6 MB, free: 45.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003668/0.4627, allocations: 2.752 MB / 459.3 MB, free: 44.62 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.464, allocations: 0.717 MB / 460.1 MB, free: 44.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005373/0.4645, allocations: 310 kB / 460.4 MB, free: 44.46 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.403e-05/0.4646, allocations: 13.36 kB / 460.4 MB, free: 44.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/0.4646, allocations: 43.06 kB / 460.4 MB, free: 44.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 4.048e-06/0.4646, allocations: 0.7031 kB / 460.4 MB, free: 44.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001858/0.4665, allocations: 0.8745 MB / 461.3 MB, free: 44.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001012/0.4666, allocations: 240.4 kB / 461.5 MB, free: 44.04 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008103/0.4674, allocations: 0.7177 MB / 462.2 MB, free: 43.91 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.559e-05/0.4675, allocations: 38.58 kB / 462.3 MB, free: 43.88 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003238/0.4678, allocations: 440.7 kB / 462.7 MB, free: 43.72 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001431/0.4679, allocations: 182.7 kB / 462.9 MB, free: 43.6 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.371e-05/0.468, allocations: 55.16 kB / 462.9 MB, free: 43.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.277e-05/0.4681, allocations: 332.3 kB / 463.3 MB, free: 43.27 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005499/0.4687, allocations: 243.1 kB / 463.5 MB, free: 43.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007093/0.4694, allocations: 397.6 kB / 463.9 MB, free: 43.12 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001148/0.4706, allocations: 0.6077 MB / 464.5 MB, free: 42.98 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.4706, allocations: 2.938 kB / 464.5 MB, free: 42.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002668/0.4733, allocations: 1.159 MB / 465.7 MB, free: 42.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001411/0.4734, allocations: 180.3 kB / 465.8 MB, free: 42.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.361e-05/0.4734, allocations: 3.594 kB / 465.8 MB, free: 42.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001254/0.4747, allocations: 352.4 kB / 466.2 MB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005199/0.4752, allocations: 127.2 kB / 466.3 MB, free: 42.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007272/0.4825, allocations: 7.083 MB / 473.4 MB, free: 36.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007012/0.4833, allocations: 95.3 kB / 473.5 MB, free: 36.93 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.598e-05/0.4833, allocations: 20.25 kB / 473.5 MB, free: 36.92 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.847e-06/0.4833, allocations: 3.406 kB / 473.5 MB, free: 36.92 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001335/0.4847, allocations: 0.6807 MB / 474.2 MB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.4847, allocations: 2.969 kB / 474.2 MB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004536/0.4851, allocations: 145.3 kB / 474.3 MB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006252/0.4858, allocations: 185.8 kB / 474.5 MB, free: 36.61 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002601/0.4884, allocations: 3.263 MB / 477.8 MB, free: 33.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005364/0.4889, allocations: 70.95 kB / 477.9 MB, free: 33.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.347e-05/0.489, allocations: 20.67 kB / 477.9 MB, free: 33.71 MB / 382.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.0004549/0.4894, allocations: 293.4 kB / 478.2 MB, free: 33.45 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.4896, allocations: 103 kB / 478.3 MB, free: 33.39 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.4898, allocations: 93.81 kB / 478.3 MB, free: 33.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.4898, allocations: 6.125 kB / 478.4 MB, free: 33.33 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.325e-05/0.4898, allocations: 6.391 kB / 478.4 MB, free: 33.33 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.4898, allocations: 0.8438 kB / 478.4 MB, free: 33.33 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009713/0.4908, allocations: 0.7466 MB / 479.1 MB, free: 32.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.4908, allocations: 11.94 kB / 479.1 MB, free: 32.92 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005187/0.4914, allocations: 118.3 kB / 479.2 MB, free: 32.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.526e-06/0.4914, allocations: 0 / 479.2 MB, free: 32.91 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.4914, allocations: 13.75 kB / 479.3 MB, free: 32.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.4914, allocations: 3.406 kB / 479.3 MB, free: 32.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4914, allocations: 4 kB / 479.3 MB, free: 32.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001629/0.4931, allocations: 1.287 MB / 480.5 MB, free: 32.2 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.4933, allocations: 205.8 kB / 480.7 MB, free: 32.02 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.042e-05/0.4933, allocations: 17.83 kB / 480.8 MB, free: 32.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004857/0.4938, allocations: 54.48 kB / 480.8 MB, free: 32 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.091e-05/0.4939, allocations: 34.2 kB / 480.8 MB, free: 32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.288e-05/0.494, allocations: 9.969 kB / 480.9 MB, free: 32 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004811/0.4944, allocations: 496.1 kB / 481.3 MB, free: 31.79 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4945, allocations: 1.406 kB / 481.3 MB, free: 31.79 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000968/0.4954, allocations: 281.7 kB / 481.6 MB, free: 31.72 MB / 382.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.0001266/0.4956, allocations: 119.2 kB / 481.7 MB, free: 31.61 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003615/0.4992, allocations: 2.031 MB / 483.8 MB, free: 30.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.189e-06/0.4992, allocations: 3.438 kB / 483.8 MB, free: 30.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005426/0.4998, allocations: 304 kB / 484.1 MB, free: 30.52 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001382/0.5011, allocations: 218.2 kB / 484.3 MB, free: 30.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00231/0.5035, allocations: 1.905 MB / 486.2 MB, free: 29.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003831/0.5039, allocations: 0.9856 MB / 487.2 MB, free: 28.56 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003545/0.5042, allocations: 91.78 kB / 487.3 MB, free: 28.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.5044, allocations: 46.09 kB / 487.3 MB, free: 28.54 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.5044, allocations: 0 / 487.3 MB, free: 28.54 MB / 382.1 MB Notification: Performance of Templates: time 0.02294/0.5273, allocations: 11.3 MB / 498.6 MB, free: 27.82 MB / 382.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches