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.001034/0.001034, allocations: 96.14 kB / 15.87 MB, free: 12 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.001239/0.001239, allocations: 196.8 kB / 16.79 MB, free: 6.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.616/1.616, allocations: 205.1 MB / 222.6 MB, free: 4.793 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.436/0.436, allocations: 43.49 MB / 313.5 MB, free: 8.477 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.001828/0.001829, allocations: 67.91 kB / 382 MB, free: 8.758 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1818/0.1837, allocations: 57.79 MB / 439.8 MB, free: 14.87 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.007234/0.191, allocations: 4.389 MB / 444.2 MB, free: 10.45 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00415/0.1952, allocations: 1.575 MB / 445.8 MB, free: 8.867 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006527/0.1959, allocations: 35.81 kB / 445.8 MB, free: 8.832 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003989/0.1963, allocations: 118.9 kB / 445.9 MB, free: 8.715 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004417/0.1968, allocations: 134.8 kB / 446.1 MB, free: 8.582 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.198, allocations: 0.5344 MB / 446.6 MB, free: 8.047 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009971/0.199, allocations: 0.9684 MB / 447.6 MB, free: 7.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006458/0.1997, allocations: 431.4 kB / 448 MB, free: 6.633 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000369/0.2001, allocations: 318.2 kB / 448.3 MB, free: 6.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003588/0.2004, allocations: 369.6 kB / 448.7 MB, free: 5.957 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.53e-05/0.2005, allocations: 44 kB / 448.7 MB, free: 5.914 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.2006, allocations: 40 kB / 448.7 MB, free: 5.875 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001331/0.2008, allocations: 155.1 kB / 448.9 MB, free: 5.723 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003188/0.2011, allocations: 393.2 kB / 449.3 MB, free: 5.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009062/0.202, allocations: 0.9456 MB / 450.2 MB, free: 4.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.202, allocations: 0 / 450.2 MB, free: 4.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.202, allocations: 0 / 450.2 MB, free: 4.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.2021, allocations: 4 kB / 450.2 MB, free: 4.383 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.002301/0.2044, allocations: 1.304 MB / 451.5 MB, free: 3.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.545e-05/0.2045, allocations: 8.031 kB / 451.5 MB, free: 3.02 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002343/0.2047, allocations: 119.4 kB / 451.7 MB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001005/0.2057, allocations: 0.6475 MB / 452.3 MB, free: 2.211 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.476e-05/0.2058, allocations: 45.69 kB / 452.3 MB, free: 2.168 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001251/0.2059, allocations: 72.36 kB / 452.4 MB, free: 2.098 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001492/0.2074, allocations: 0.7353 MB / 453.1 MB, free: 1.301 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.095e-05/0.2074, allocations: 8 kB / 453.2 MB, free: 1.293 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.296e-05/0.2075, allocations: 24 kB / 453.2 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.641e-05/0.2075, allocations: 16 kB / 453.2 MB, free: 1.254 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.2087, allocations: 0.5537 MB / 453.7 MB, free: 0.6992 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3386/0.5473, allocations: 2.718 MB / 456.5 MB, free: 47.39 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001198/0.5486, allocations: 0.6601 MB / 457.1 MB, free: 47.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005144/0.5491, allocations: 282.2 kB / 457.4 MB, free: 47.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.681e-05/0.5492, allocations: 7.844 kB / 457.4 MB, free: 47.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.5492, allocations: 49.12 kB / 457.5 MB, free: 47.23 MB / 382.1 MB Notification: Performance of pre-optimization done (n=52): time 3.256e-06/0.5492, allocations: 0 / 457.5 MB, free: 47.23 MB / 382.1 MB Notification: Performance of matching and sorting (n=52): time 0.001698/0.5509, allocations: 0.8018 MB / 458.3 MB, free: 47.2 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.047e-05/0.551, allocations: 240.7 kB / 458.5 MB, free: 46.91 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007091/0.5517, allocations: 0.7152 MB / 459.2 MB, free: 46.79 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.722e-05/0.5518, allocations: 34.61 kB / 459.2 MB, free: 46.76 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002665/0.5521, allocations: 445.9 kB / 459.7 MB, free: 46.62 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001159/0.5522, allocations: 181.2 kB / 459.9 MB, free: 46.52 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.5524, allocations: 108.4 kB / 460 MB, free: 46.47 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.911e-05/0.5525, allocations: 330.5 kB / 460.3 MB, free: 46.16 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004772/0.553, allocations: 228.3 kB / 460.5 MB, free: 46.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005197/0.5535, allocations: 372 kB / 460.9 MB, free: 45.84 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009589/0.5545, allocations: 0.5546 MB / 461.4 MB, free: 45.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.5545, allocations: 3.438 kB / 461.4 MB, free: 45.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002378/0.5569, allocations: 1.037 MB / 462.5 MB, free: 45.2 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.854e-05/0.5569, allocations: 6.031 kB / 462.5 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.5569, allocations: 9.688 kB / 462.5 MB, free: 45.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.5581, allocations: 322.4 kB / 462.8 MB, free: 45.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000545/0.5587, allocations: 124.7 kB / 462.9 MB, free: 45.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007253/0.5659, allocations: 6.772 MB / 469.7 MB, free: 39.38 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006295/0.5666, allocations: 86.36 kB / 469.8 MB, free: 39.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.836e-05/0.5666, allocations: 19.12 kB / 469.8 MB, free: 39.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006419/0.5673, allocations: 347.5 kB / 470.1 MB, free: 39.13 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004067/0.5677, allocations: 323.2 kB / 470.4 MB, free: 38.92 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007289/0.5684, allocations: 0.495 MB / 470.9 MB, free: 38.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.708e-06/0.5685, allocations: 0 / 470.9 MB, free: 38.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001444/0.5699, allocations: 0.7471 MB / 471.7 MB, free: 38.34 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.5699, allocations: 10.28 kB / 471.7 MB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.5699, allocations: 3.062 kB / 471.7 MB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004617/0.5704, allocations: 144.2 kB / 471.8 MB, free: 38.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000684/0.5711, allocations: 171 kB / 472 MB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002627/0.5737, allocations: 3.18 MB / 475.2 MB, free: 35.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000433/0.5742, allocations: 75.84 kB / 475.3 MB, free: 35.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.016e-05/0.5742, allocations: 17.28 kB / 475.3 MB, free: 35.41 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.0002079/0.5744, allocations: 215.4 kB / 475.5 MB, free: 35.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.5746, allocations: 89.34 kB / 475.6 MB, free: 35.17 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001865/0.5748, allocations: 103.3 kB / 475.7 MB, free: 35.1 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.5748, allocations: 6.531 kB / 475.7 MB, free: 35.1 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/0.5748, allocations: 9.062 kB / 475.7 MB, free: 35.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.5748, allocations: 0 / 475.7 MB, free: 35.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009836/0.5758, allocations: 0.7428 MB / 476.4 MB, free: 34.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.5759, allocations: 0 / 476.4 MB, free: 34.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005157/0.5764, allocations: 108.6 kB / 476.5 MB, free: 34.69 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.428e-06/0.5764, allocations: 2.969 kB / 476.5 MB, free: 34.69 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.5764, allocations: 14.34 kB / 476.6 MB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.112e-06/0.5764, allocations: 7.062 kB / 476.6 MB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.5765, allocations: 7.688 kB / 476.6 MB, free: 34.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001634/0.5781, allocations: 1.207 MB / 477.8 MB, free: 33.99 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002101/0.5783, allocations: 219.8 kB / 478 MB, free: 33.8 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.527e-05/0.5784, allocations: 7.25 kB / 478 MB, free: 33.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/0.5789, allocations: 51.59 kB / 478.1 MB, free: 33.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.579, allocations: 30.48 kB / 478.1 MB, free: 33.78 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.026e-05/0.579, allocations: 17.53 kB / 478.1 MB, free: 33.78 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000594/0.5796, allocations: 497.1 kB / 478.6 MB, free: 33.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 9.51e-07/0.5797, allocations: 0 / 478.6 MB, free: 33.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001204/0.5809, allocations: 279.8 kB / 478.9 MB, free: 33.5 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.0001746/0.581, allocations: 125.1 kB / 479 MB, free: 33.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003835/0.5849, allocations: 1.863 MB / 480.8 MB, free: 32.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.5849, allocations: 0 / 480.8 MB, free: 32.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.5854, allocations: 287.2 kB / 481.1 MB, free: 32.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001461/0.5869, allocations: 220.1 kB / 481.3 MB, free: 32.28 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002952/0.5899, allocations: 1.846 MB / 483.2 MB, free: 31.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005493/0.5904, allocations: 0.9894 MB / 484.2 MB, free: 30.41 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000448/0.5909, allocations: 94.91 kB / 484.3 MB, free: 30.39 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001787/0.5911, allocations: 46.44 kB / 484.3 MB, free: 30.38 MB / 382.1 MB Notification: Performance of SimCode: time 7.52e-07/0.5911, allocations: 0 / 484.3 MB, free: 30.38 MB / 382.1 MB Notification: Performance of Templates: time 0.03237/0.6235, allocations: 11.46 MB / 495.8 MB, free: 29.62 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