Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/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_4.1.0-beta.om_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.1.0-beta.om_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001328, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001362/0.001362, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.482/1.482, allocations: 227.4 MB / 246.3 MB, free: 9.129 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0-beta.om/package.mo): time 0.2444/0.2444, allocations: 46.11 MB / 343.7 MB, free: 11.59 MB / 286.1 MB Warning: Requested package Modelica of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002312/0.002313, allocations: 79.64 kB / 416.9 MB, free: 20.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1585, allocations: 62.46 MB / 479.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.006061/0.1646, allocations: 4.335 MB / 483.7 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003228/0.1679, allocations: 1.55 MB / 485.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005528/0.1685, allocations: 31.81 kB / 485.3 MB, free: 15.73 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004449/0.1689, allocations: 114.9 kB / 485.4 MB, free: 15.61 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003844/0.1693, allocations: 126.8 kB / 485.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001334/0.1707, allocations: 0.5403 MB / 486.1 MB, free: 14.95 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.1718, allocations: 0.949 MB / 487 MB, free: 14 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006918/0.1725, allocations: 423.1 kB / 487.4 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004124/0.1729, allocations: 310.3 kB / 487.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004176/0.1734, allocations: 365.6 kB / 488.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.1735, allocations: 47.94 kB / 488.1 MB, free: 12.86 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.012e-05/0.1736, allocations: 40 kB / 488.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001617/0.1737, allocations: 151.2 kB / 488.3 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003523/0.1741, allocations: 393.2 kB / 488.7 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000923/0.175, allocations: 0.9226 MB / 489.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.175, allocations: 0 / 489.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of FrontEnd: time 8.11e-07/0.175, allocations: 0 / 489.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.105e-05/0.1751, allocations: 0 / 489.6 MB, free: 11.36 MB / 366.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.002193/0.1773, allocations: 1.292 MB / 490.9 MB, free: 10.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.96e-05/0.1773, allocations: 12.03 kB / 490.9 MB, free: 9.996 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002022/0.1775, allocations: 111.6 kB / 491 MB, free: 9.887 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009197/0.1785, allocations: 0.6242 MB / 491.7 MB, free: 9.223 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/0.1785, allocations: 53.61 kB / 491.7 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001007/0.1786, allocations: 68.38 kB / 491.8 MB, free: 9.105 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/0.18, allocations: 0.7699 MB / 492.6 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.856e-05/0.1801, allocations: 4 kB / 492.6 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.185e-05/0.1801, allocations: 24 kB / 492.6 MB, free: 8.238 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.1802, allocations: 16 kB / 492.6 MB, free: 8.223 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.1814, allocations: 0.5423 MB / 493.1 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003976/0.1853, allocations: 2.725 MB / 495.9 MB, free: 4.855 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001464/0.1868, allocations: 0.6668 MB / 496.5 MB, free: 4.156 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005708/0.1874, allocations: 283.2 kB / 496.8 MB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.937e-05/0.1875, allocations: 12 kB / 496.8 MB, free: 3.855 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.1875, allocations: 42.56 kB / 496.9 MB, free: 3.805 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.635e-06/0.1875, allocations: 0 / 496.9 MB, free: 3.805 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001907/0.1895, allocations: 0.7927 MB / 497.7 MB, free: 3.004 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002158/0.1897, allocations: 342.1 kB / 498 MB, free: 2.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009326/0.1906, allocations: 0.6968 MB / 498.7 MB, free: 1.879 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.644e-05/0.1907, allocations: 37.7 kB / 498.7 MB, free: 1.836 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004024/0.1911, allocations: 436.4 kB / 499.1 MB, free: 1.406 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001791/0.1913, allocations: 185.3 kB / 499.3 MB, free: 1.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002002/0.1915, allocations: 110.1 kB / 499.4 MB, free: 1.109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001771/0.1917, allocations: 337.8 kB / 499.8 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005387/0.1922, allocations: 238.9 kB / 500 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006915/0.1929, allocations: 387.5 kB / 0.4886 GB, free: 100 kB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001156/0.1941, allocations: 0.5587 MB / 0.4892 GB, free: 15.5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.1941, allocations: 4 kB / 0.4892 GB, free: 15.5 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002757/0.1969, allocations: 1.045 MB / 0.4902 GB, free: 14.44 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.1969, allocations: 8.031 kB / 0.4902 GB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.1969, allocations: 11.92 kB / 0.4902 GB, free: 14.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001218/0.1981, allocations: 311.2 kB / 0.4905 GB, free: 14.1 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005882/0.1987, allocations: 131.8 kB / 0.4907 GB, free: 13.97 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009255/0.208, allocations: 6.764 MB / 0.4973 GB, free: 6.672 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006524/0.2087, allocations: 75.48 kB / 0.4973 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.548e-05/0.2087, allocations: 20 kB / 0.4974 GB, free: 6.578 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007053/0.2095, allocations: 349.2 kB / 0.4977 GB, free: 6.234 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005491/0.21, allocations: 355.5 kB / 0.498 GB, free: 5.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008869/0.2109, allocations: 0.4928 MB / 0.4985 GB, free: 5.293 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.854e-06/0.2109, allocations: 0 / 0.4985 GB, free: 5.293 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001587/0.2125, allocations: 0.7452 MB / 0.4992 GB, free: 4.539 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.2125, allocations: 8 kB / 0.4992 GB, free: 4.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2126, allocations: 4 kB / 0.4992 GB, free: 4.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005076/0.2131, allocations: 146 kB / 0.4994 GB, free: 4.379 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007139/0.2138, allocations: 171.8 kB / 0.4996 GB, free: 4.211 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003498/0.2173, allocations: 3.194 MB / 0.5027 GB, free: 0.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005076/0.2178, allocations: 71.62 kB / 0.5027 GB, free: 0.6797 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.2179, allocations: 16 kB / 0.5028 GB, free: 0.6641 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.00025/0.2181, allocations: 224.1 kB / 0.503 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000204/0.2183, allocations: 86.88 kB / 0.503 GB, free: 360 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002007/0.2185, allocations: 99.16 kB / 0.5031 GB, free: 256 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.2186, allocations: 8 kB / 0.5032 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/0.2186, allocations: 0 / 0.5032 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.335e-06/0.2186, allocations: 7.984 kB / 0.5032 GB, free: 240 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2139/0.4325, allocations: 0.7333 MB / 0.5039 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.4326, allocations: 0 / 0.5039 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005898/0.4332, allocations: 107.6 kB / 0.504 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.317e-06/0.4332, allocations: 3.141 kB / 0.504 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.784e-05/0.4332, allocations: 11.16 kB / 0.504 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.464e-06/0.4332, allocations: 3.344 kB / 0.504 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/0.4333, allocations: 1.875 kB / 0.504 GB, free: 40.32 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.4351, allocations: 1.207 MB / 0.5052 GB, free: 39.95 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002576/0.4354, allocations: 215.6 kB / 0.5054 GB, free: 39.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.817e-05/0.4355, allocations: 13.98 kB / 0.5054 GB, free: 39.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005122/0.436, allocations: 41.75 kB / 0.5054 GB, free: 39.86 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.4361, allocations: 41.59 kB / 0.5055 GB, free: 39.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.4362, allocations: 15.38 kB / 0.5055 GB, free: 39.86 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000633/0.4368, allocations: 483.9 kB / 0.506 GB, free: 39.76 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4368, allocations: 0 / 0.506 GB, free: 39.76 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001227/0.4381, allocations: 277.3 kB / 0.5062 GB, free: 39.76 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.0001604/0.4382, allocations: 115.7 kB / 0.5063 GB, free: 39.68 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003794/0.442, allocations: 1.873 MB / 0.5082 GB, free: 38.99 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.442, allocations: 1.562 kB / 0.5082 GB, free: 38.99 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005475/0.4426, allocations: 282.9 kB / 0.5084 GB, free: 38.92 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001331/0.4439, allocations: 212.8 kB / 0.5086 GB, free: 38.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002401/0.4463, allocations: 1.809 MB / 0.5104 GB, free: 37.76 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004425/0.4468, allocations: 0.9831 MB / 0.5114 GB, free: 37.06 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003847/0.4472, allocations: 89.72 kB / 0.5114 GB, free: 37.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001624/0.4474, allocations: 47.39 kB / 0.5115 GB, free: 37.05 MB / 382.1 MB Notification: Performance of SimCode: time 9.82e-07/0.4474, allocations: 3.938 kB / 0.5115 GB, free: 37.04 MB / 382.1 MB Notification: Performance of Templates: time 0.02102/0.4684, allocations: 11.46 MB / 0.5227 GB, free: 33.82 MB / 382.1 MB make -j1 -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.makefile (rm -f ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe ; mkfifo ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe ; head -c 1048576 < ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe >> ../files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.sim & ./ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.pipe 2>&1) diffSimulationResults("ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0-beta.om_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches