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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001125/0.001125, allocations: 196.7 kB / 18.1 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 226.5 MB / 245.4 MB, free: 6.465 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007823/0.0007829, allocations: 89.16 kB / 297.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3555/0.3555, allocations: 44.82 MB / 394.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002931/0.0002932, allocations: 8 kB / 467.9 MB, free: 12.04 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3995/0.3998, allocations: 62.96 MB / 0.5184 GB, free: 37.68 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1294/0.5293, allocations: 91 MB / 0.6073 GB, free: 14.3 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.5295, allocations: 79.95 kB / 0.6074 GB, free: 14.22 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03942/0.569, allocations: 15.42 MB / 0.6224 GB, free: 14.76 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.569, allocations: 0 / 0.6224 GB, free: 14.76 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000121/0.5692, allocations: 24 kB / 0.6224 GB, free: 14.73 MB / 442.7 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.002649/0.5718, allocations: 1.175 MB / 0.6236 GB, free: 13.5 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/0.5719, allocations: 8.875 kB / 0.6236 GB, free: 13.49 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003924/0.5723, allocations: 115.5 kB / 0.6237 GB, free: 13.38 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00125/0.5735, allocations: 0.6528 MB / 0.6243 GB, free: 12.69 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.813e-05/0.5736, allocations: 45.69 kB / 0.6244 GB, free: 12.64 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.5738, allocations: 72.38 kB / 0.6244 GB, free: 12.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001448/0.5752, allocations: 0.7588 MB / 0.6252 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.5753, allocations: 8.109 kB / 0.6252 GB, free: 11.75 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/0.5753, allocations: 31.94 kB / 0.6252 GB, free: 11.71 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.638e-05/0.5754, allocations: 16 kB / 0.6252 GB, free: 11.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001233/0.5766, allocations: 0.5898 MB / 0.6258 GB, free: 11.11 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003958/0.5806, allocations: 2.773 MB / 0.6285 GB, free: 8.238 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001351/0.5819, allocations: 0.7156 MB / 0.6292 GB, free: 7.488 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000535/0.5825, allocations: 307.3 kB / 0.6295 GB, free: 7.176 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.988e-05/0.5825, allocations: 11.88 kB / 0.6295 GB, free: 7.164 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.757e-05/0.5826, allocations: 46.55 kB / 0.6296 GB, free: 7.109 MB / 442.7 MB Notification: Performance of pre-optimization done (n=52): time 2.956e-06/0.5826, allocations: 0 / 0.6296 GB, free: 7.109 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.001915/0.5845, allocations: 0.8695 MB / 0.6304 GB, free: 6.238 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.5847, allocations: 239.3 kB / 0.6307 GB, free: 5.949 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008859/0.5856, allocations: 0.7007 MB / 0.6313 GB, free: 5.234 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.551e-05/0.5856, allocations: 33.7 kB / 0.6314 GB, free: 5.195 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003149/0.586, allocations: 428.4 kB / 0.6318 GB, free: 4.773 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001562/0.5861, allocations: 181.3 kB / 0.632 GB, free: 4.594 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-05/0.5862, allocations: 12 kB / 0.632 GB, free: 4.582 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.5863, allocations: 330 kB / 0.6323 GB, free: 4.254 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000492/0.5868, allocations: 241 kB / 0.6325 GB, free: 4.02 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005989/0.5874, allocations: 388 kB / 0.6329 GB, free: 3.586 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/0.5885, allocations: 0.6019 MB / 0.6335 GB, free: 2.949 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.5885, allocations: 3.984 kB / 0.6335 GB, free: 2.945 MB / 442.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002644/0.5912, allocations: 1.15 MB / 0.6346 GB, free: 1.777 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001337/0.5913, allocations: 163.6 kB / 0.6347 GB, free: 1.574 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.145e-05/0.5914, allocations: 7.938 kB / 0.6348 GB, free: 1.566 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.5926, allocations: 367.2 kB / 0.6351 GB, free: 1.195 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005338/0.5931, allocations: 139.7 kB / 0.6352 GB, free: 1.059 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008652/0.6018, allocations: 7.064 MB / 0.6421 GB, free: 9.461 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007187/0.6026, allocations: 99.52 kB / 0.6422 GB, free: 9.363 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.112e-05/0.6027, allocations: 20 kB / 0.6423 GB, free: 9.344 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.467e-05/0.6027, allocations: 6.969 kB / 0.6423 GB, free: 9.34 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001488/0.6042, allocations: 0.6636 MB / 0.6429 GB, free: 8.672 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.6042, allocations: 4 kB / 0.6429 GB, free: 8.668 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005029/0.6047, allocations: 149.9 kB / 0.6431 GB, free: 8.516 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007039/0.6054, allocations: 175.8 kB / 0.6432 GB, free: 8.344 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003292/0.6087, allocations: 3.28 MB / 0.6464 GB, free: 4.797 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005482/0.6093, allocations: 59.58 kB / 0.6465 GB, free: 4.738 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.794e-05/0.6094, allocations: 23.94 kB / 0.6465 GB, free: 4.715 MB / 458.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005243/0.6099, allocations: 297 kB / 0.6468 GB, free: 4.414 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002637/0.6102, allocations: 90.88 kB / 0.6469 GB, free: 4.324 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002237/0.6104, allocations: 95.16 kB / 0.647 GB, free: 4.227 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.6104, allocations: 7.938 kB / 0.647 GB, free: 4.219 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.6104, allocations: 4 kB / 0.647 GB, free: 4.215 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.6104, allocations: 3.984 kB / 0.647 GB, free: 4.211 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001185/0.6116, allocations: 0.7311 MB / 0.6477 GB, free: 3.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.091e-06/0.6117, allocations: 0 / 0.6477 GB, free: 3.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000551/0.6122, allocations: 123.9 kB / 0.6478 GB, free: 3.309 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.6122, allocations: 4.188 kB / 0.6478 GB, free: 3.305 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.245e-05/0.6123, allocations: 16 kB / 0.6478 GB, free: 3.289 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.652e-06/0.6123, allocations: 7.938 kB / 0.6478 GB, free: 3.281 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6123, allocations: 0 / 0.6478 GB, free: 3.281 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00186/0.6142, allocations: 1.283 MB / 0.6491 GB, free: 1.977 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002766/0.6144, allocations: 211.9 kB / 0.6493 GB, free: 1.75 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.837e-05/0.6146, allocations: 15.94 kB / 0.6493 GB, free: 1.734 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004699/0.615, allocations: 59.95 kB / 0.6494 GB, free: 1.676 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.588e-05/0.6151, allocations: 27.95 kB / 0.6494 GB, free: 1.648 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.28e-05/0.6152, allocations: 16 kB / 0.6494 GB, free: 1.633 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0005868/0.6158, allocations: 487 kB / 0.6499 GB, free: 1.16 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.6158, allocations: 0 / 0.6499 GB, free: 1.16 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.001073/0.6168, allocations: 283 kB / 0.6501 GB, free: 0.8828 MB / 458.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001753/0.617, allocations: 111.1 kB / 0.6502 GB, free: 0.7656 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.003925/0.621, allocations: 2.03 MB / 0.6522 GB, free: 14.66 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.621, allocations: 0 / 0.6522 GB, free: 14.66 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005483/0.6216, allocations: 311.2 kB / 0.6525 GB, free: 14.36 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0014/0.623, allocations: 216.1 kB / 0.6527 GB, free: 14.15 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002927/0.6259, allocations: 1.748 MB / 0.6544 GB, free: 12.36 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005497/0.6265, allocations: 0.9884 MB / 0.6554 GB, free: 11.35 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.0004475/0.6269, allocations: 93.09 kB / 0.6555 GB, free: 11.25 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001612/0.6271, allocations: 47.44 kB / 0.6555 GB, free: 11.21 MB / 474.7 MB Notification: Performance of SimCode: time 6.51e-07/0.6271, allocations: 0 / 0.6555 GB, free: 11.21 MB / 474.7 MB Notification: Performance of Templates: time 0.02234/0.6495, allocations: 11.08 MB / 0.6664 GB, free: 196 kB / 474.7 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","../files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches