Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00113/0.00113, allocations: 90.98 kB / 18 MB, free: 5.734 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 177.6 kB / 18.91 MB, free: 4.871 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.425/1.425, allocations: 223.3 MB / 243 MB, free: 14.29 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1867/0.1867, allocations: 44.25 MB / 338.3 MB, free: 2.41 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005349/0.000535, allocations: 8.688 kB / 411 MB, free: 27.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1721, allocations: 61.93 MB / 472.9 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.007873/0.18, allocations: 3.911 MB / 476.8 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004833/0.1849, allocations: 1.512 MB / 478.3 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001284/0.1862, allocations: 31.81 kB / 478.4 MB, free: 7.832 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006278/0.1869, allocations: 106.9 kB / 478.5 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001203/0.1881, allocations: 134.8 kB / 478.6 MB, free: 7.594 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002528/0.1907, allocations: 0.5365 MB / 479.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002337/0.193, allocations: 0.9566 MB / 480.1 MB, free: 6.105 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.1942, allocations: 415.1 kB / 480.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005508/0.1948, allocations: 262.3 kB / 480.8 MB, free: 5.418 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005411/0.1953, allocations: 305.8 kB / 481.1 MB, free: 5.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001848/0.1955, allocations: 23.94 kB / 481.1 MB, free: 5.094 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001387/0.1957, allocations: 23.94 kB / 481.1 MB, free: 5.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000191/0.1959, allocations: 123.2 kB / 481.2 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005866/0.1965, allocations: 375 kB / 481.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001094/0.1976, allocations: 0.7016 MB / 482.3 MB, free: 3.871 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.104e-05/0.1977, allocations: 3.984 kB / 482.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.1977, allocations: 0 / 482.3 MB, free: 3.867 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.744e-05/0.1977, allocations: 0 / 482.3 MB, free: 3.867 MB / 350.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.003336/0.2011, allocations: 1.139 MB / 483.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.105e-05/0.2012, allocations: 8.031 kB / 483.4 MB, free: 2.672 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004346/0.2016, allocations: 119.5 kB / 483.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.2035, allocations: 0.6125 MB / 484.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001002/0.2036, allocations: 53.69 kB / 484.2 MB, free: 1.848 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/0.2039, allocations: 72.3 kB / 484.3 MB, free: 1.777 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002568/0.2065, allocations: 0.7664 MB / 485.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.2065, allocations: 3.938 kB / 485.1 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.96e-05/0.2066, allocations: 24 kB / 485.1 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.894e-05/0.2067, allocations: 16 kB / 485.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002437/0.2091, allocations: 0.5933 MB / 485.7 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006642/0.2158, allocations: 2.737 MB / 488.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002914/0.2188, allocations: 0.7296 MB / 489.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/0.22, allocations: 309.9 kB / 489.5 MB, free: 12.4 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.021e-05/0.2201, allocations: 15.98 kB / 489.5 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.789e-05/0.2202, allocations: 46.5 kB / 489.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 3.907e-06/0.2202, allocations: 0 / 489.5 MB, free: 12.33 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.003346/0.2236, allocations: 0.8669 MB / 490.4 MB, free: 11.46 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.2238, allocations: 247.3 kB / 490.6 MB, free: 11.16 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001578/0.2254, allocations: 0.6929 MB / 491.3 MB, free: 10.46 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001032/0.2255, allocations: 41.69 kB / 491.4 MB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006046/0.2261, allocations: 428.4 kB / 491.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002953/0.2264, allocations: 185.3 kB / 492 MB, free: 9.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001475/0.2266, allocations: 53.69 kB / 492 MB, free: 9.75 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001955/0.2268, allocations: 326 kB / 492.3 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009406/0.2277, allocations: 253 kB / 492.6 MB, free: 9.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/0.2289, allocations: 392 kB / 493 MB, free: 8.742 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001933/0.2308, allocations: 0.6057 MB / 493.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.2308, allocations: 0 / 493.6 MB, free: 8.102 MB / 366.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.004724/0.2356, allocations: 1.17 MB / 494.7 MB, free: 6.914 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001891/0.2358, allocations: 175.6 kB / 494.9 MB, free: 6.699 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.712e-05/0.2358, allocations: 7.938 kB / 494.9 MB, free: 6.691 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002086/0.2379, allocations: 347.1 kB / 495.3 MB, free: 6.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009071/0.2388, allocations: 127.9 kB / 495.4 MB, free: 6.215 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0146/0.2535, allocations: 7.072 MB / 0.4907 GB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.2546, allocations: 95.41 kB / 0.4908 GB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.2548, allocations: 20 kB / 0.4908 GB, free: 14.49 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.311e-05/0.2548, allocations: 4 kB / 0.4908 GB, free: 14.49 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002777/0.2576, allocations: 0.6759 MB / 0.4915 GB, free: 13.81 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.2576, allocations: 4 kB / 0.4915 GB, free: 13.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008934/0.2585, allocations: 145.7 kB / 0.4916 GB, free: 13.66 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001312/0.2599, allocations: 183.8 kB / 0.4918 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005619/0.2655, allocations: 3.276 MB / 0.495 GB, free: 9.938 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009231/0.2665, allocations: 79.53 kB / 0.495 GB, free: 9.859 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/0.2666, allocations: 20 kB / 0.4951 GB, free: 9.84 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.0007492/0.2674, allocations: 277.1 kB / 0.4953 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004434/0.2678, allocations: 98.88 kB / 0.4954 GB, free: 9.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003322/0.2682, allocations: 103 kB / 0.4955 GB, free: 9.355 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.2682, allocations: 4 kB / 0.4955 GB, free: 9.352 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.2682, allocations: 4 kB / 0.4955 GB, free: 9.348 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.2682, allocations: 3.984 kB / 0.4955 GB, free: 9.344 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001988/0.2702, allocations: 0.7311 MB / 0.4962 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2703, allocations: 0 / 0.4962 GB, free: 8.562 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001187/0.2715, allocations: 123.9 kB / 0.4964 GB, free: 8.441 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.127e-05/0.2715, allocations: 4 kB / 0.4964 GB, free: 8.438 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/0.2716, allocations: 15.94 kB / 0.4964 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.207e-05/0.2716, allocations: 4 kB / 0.4964 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.2716, allocations: 0 / 0.4964 GB, free: 8.418 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003925/0.2756, allocations: 1.276 MB / 0.4976 GB, free: 7.129 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005463/0.2761, allocations: 219.7 kB / 0.4978 GB, free: 6.895 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001911/0.2764, allocations: 12 kB / 0.4979 GB, free: 6.883 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001016/0.2774, allocations: 55.95 kB / 0.4979 GB, free: 6.828 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001553/0.2776, allocations: 31.95 kB / 0.4979 GB, free: 6.797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.78e-05/0.2776, allocations: 16 kB / 0.498 GB, free: 6.781 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001233/0.2789, allocations: 487 kB / 0.4984 GB, free: 6.309 MB / 382.1 MB Notification: Performance of sort global known variables: time 5.52e-07/0.2789, allocations: 4 kB / 0.4984 GB, free: 6.305 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001908/0.2808, allocations: 275.1 kB / 0.4987 GB, free: 6.035 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.0002405/0.2811, allocations: 115.6 kB / 0.4988 GB, free: 5.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.007924/0.289, allocations: 2.014 MB / 0.5008 GB, free: 3.82 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/0.2891, allocations: 11.88 kB / 0.5008 GB, free: 3.809 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.2904, allocations: 307.6 kB / 0.5011 GB, free: 3.512 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00292/0.2933, allocations: 234.2 kB / 0.5013 GB, free: 3.289 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005541/0.2989, allocations: 1.896 MB / 0.5031 GB, free: 1.348 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001039/0.3, allocations: 0.985 MB / 0.5041 GB, free: 340 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003833/0.3004, allocations: 51.44 kB / 0.5041 GB, free: 288 kB / 382.1 MB Notification: Performance of SimCode: time 1.472e-06/0.3004, allocations: 0 / 0.5041 GB, free: 288 kB / 382.1 MB Notification: Performance of Templates: time 0.3476/0.648, allocations: 16.98 MB / 0.5207 GB, free: 40.27 MB / 382.1 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches