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/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 trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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_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/ModelicaServices trunk/package.mo): time 0.000931/0.000931, allocations: 95.25 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001232/0.001232, allocations: 202 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.405/1.405, allocations: 227.8 MB / 246.8 MB, free: 11.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2175/0.2175, allocations: 46.19 MB / 345.2 MB, free: 11.47 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002876/0.0002877, allocations: 8 kB / 419.5 MB, free: 19.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1124, allocations: 63.56 MB / 483.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004509/0.117, allocations: 3.9 MB / 487 MB, free: 264 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003066/0.1201, allocations: 1.542 MB / 488.5 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006978/0.1208, allocations: 27.88 kB / 488.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003387/0.1212, allocations: 106.9 kB / 488.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004096/0.1216, allocations: 126.8 kB / 488.8 MB, free: 14.45 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001194/0.1228, allocations: 0.5452 MB / 489.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001044/0.1239, allocations: 0.9451 MB / 490.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006355/0.1245, allocations: 411.1 kB / 490.7 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003758/0.1249, allocations: 262.3 kB / 490.9 MB, free: 12.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003422/0.1252, allocations: 305.7 kB / 491.2 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.278e-05/0.1253, allocations: 24 kB / 491.2 MB, free: 11.96 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.825e-05/0.1254, allocations: 23.94 kB / 491.3 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001186/0.1255, allocations: 123.2 kB / 491.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002897/0.1258, allocations: 371 kB / 491.7 MB, free: 11.44 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007633/0.1266, allocations: 0.891 MB / 492.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1266, allocations: 0 / 492.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1266, allocations: 0 / 492.6 MB, free: 10.55 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.1266, allocations: 0 / 492.6 MB, free: 10.55 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.00191/0.1285, allocations: 1.137 MB / 493.8 MB, free: 9.355 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.1286, allocations: 12.03 kB / 493.8 MB, free: 9.344 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.1288, allocations: 115.5 kB / 493.9 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008113/0.1296, allocations: 0.6242 MB / 494.5 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.811e-05/0.1296, allocations: 45.69 kB / 494.6 MB, free: 8.523 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.736e-05/0.1297, allocations: 68.31 kB / 494.6 MB, free: 8.457 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001362/0.1311, allocations: 0.7973 MB / 495.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.1311, allocations: 0 / 495.4 MB, free: 7.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.263e-05/0.1312, allocations: 28 kB / 495.5 MB, free: 7.562 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.56e-05/0.1312, allocations: 16 kB / 495.5 MB, free: 7.547 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.1325, allocations: 0.593 MB / 496.1 MB, free: 6.953 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003552/0.1361, allocations: 2.752 MB / 498.8 MB, free: 4.102 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.1376, allocations: 0.7257 MB / 499.5 MB, free: 3.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006223/0.1382, allocations: 315.3 kB / 499.9 MB, free: 3.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.1383, allocations: 12 kB / 499.9 MB, free: 3.008 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.582e-05/0.1384, allocations: 38.56 kB / 499.9 MB, free: 2.961 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 3.086e-06/0.1384, allocations: 3.938 kB / 499.9 MB, free: 2.957 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.002058/0.1404, allocations: 0.8593 MB / 0.489 GB, free: 2.094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001532/0.1406, allocations: 354.1 kB / 0.4894 GB, free: 1.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008365/0.1414, allocations: 0.7007 MB / 0.4901 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.436e-05/0.1415, allocations: 37.7 kB / 0.4901 GB, free: 0.9102 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003108/0.1418, allocations: 432.5 kB / 0.4905 GB, free: 496 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/0.142, allocations: 181.3 kB / 0.4907 GB, free: 312 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/0.1421, allocations: 57.69 kB / 0.4907 GB, free: 248 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1422, allocations: 329.9 kB / 0.491 GB, free: 15.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005553/0.1427, allocations: 253 kB / 0.4913 GB, free: 15.67 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006799/0.1434, allocations: 411.5 kB / 0.4917 GB, free: 15.2 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.1446, allocations: 0.6122 MB / 0.4923 GB, free: 14.56 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.1447, allocations: 0 / 0.4923 GB, free: 14.56 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002958/0.1476, allocations: 1.166 MB / 0.4934 GB, free: 13.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001133/0.1478, allocations: 167.6 kB / 0.4936 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.222e-05/0.1478, allocations: 4 kB / 0.4936 GB, free: 13.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0013/0.1491, allocations: 363 kB / 0.4939 GB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005764/0.1497, allocations: 127.9 kB / 0.494 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009046/0.1587, allocations: 7.073 MB / 0.501 GB, free: 5.066 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006251/0.1594, allocations: 103.4 kB / 0.5011 GB, free: 4.965 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.164e-05/0.1595, allocations: 20 kB / 0.5011 GB, free: 4.945 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.197e-06/0.1595, allocations: 6.344 kB / 0.5011 GB, free: 4.941 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001601/0.1611, allocations: 0.6753 MB / 0.5017 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.1611, allocations: 0 / 0.5017 GB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005368/0.1617, allocations: 145.9 kB / 0.5019 GB, free: 4.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007559/0.1624, allocations: 179.8 kB / 0.502 GB, free: 3.938 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00346/0.1659, allocations: 3.276 MB / 0.5052 GB, free: 400 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005689/0.1665, allocations: 67.52 kB / 0.5053 GB, free: 332 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.1666, allocations: 16.25 kB / 0.5053 GB, free: 316 kB / 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.0004406/0.167, allocations: 304.5 kB / 0.5056 GB, free: 4 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.2101/0.3771, allocations: 88.73 kB / 0.5057 GB, free: 33.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003422/0.3775, allocations: 94.14 kB / 0.5058 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.35e-05/0.3776, allocations: 6.5 kB / 0.5058 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.3776, allocations: 1.609 kB / 0.5058 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.44e-05/0.3776, allocations: 3.406 kB / 0.5058 GB, free: 33.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.3792, allocations: 0.7344 MB / 0.5065 GB, free: 33.65 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.047e-06/0.3792, allocations: 2.031 kB / 0.5065 GB, free: 33.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006585/0.3799, allocations: 126.6 kB / 0.5066 GB, free: 33.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.3799, allocations: 3.641 kB / 0.5066 GB, free: 33.65 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.671e-05/0.38, allocations: 11.03 kB / 0.5067 GB, free: 33.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.115e-06/0.38, allocations: 3 kB / 0.5067 GB, free: 33.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.38, allocations: 3.281 kB / 0.5067 GB, free: 33.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002184/0.3822, allocations: 1.287 MB / 0.5079 GB, free: 33.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003475/0.3826, allocations: 216.2 kB / 0.5081 GB, free: 33.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001169/0.3827, allocations: 12.11 kB / 0.5081 GB, free: 33.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005902/0.3833, allocations: 58.86 kB / 0.5082 GB, free: 33.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001119/0.3834, allocations: 40.47 kB / 0.5082 GB, free: 33.19 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/0.3835, allocations: 13.92 kB / 0.5082 GB, free: 33.19 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000619/0.3841, allocations: 491.1 kB / 0.5087 GB, free: 33.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 6.42e-07/0.3841, allocations: 0 / 0.5087 GB, free: 33.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001048/0.3852, allocations: 275.8 kB / 0.509 GB, free: 33.07 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.0001368/0.3853, allocations: 111.9 kB / 0.5091 GB, free: 32.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004286/0.3896, allocations: 2.033 MB / 0.5111 GB, free: 32.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.3896, allocations: 1 kB / 0.5111 GB, free: 32.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006435/0.3903, allocations: 303 kB / 0.5114 GB, free: 32.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001618/0.3919, allocations: 221.5 kB / 0.5116 GB, free: 32.29 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002746/0.3947, allocations: 1.839 MB / 0.5134 GB, free: 31.31 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004716/0.3952, allocations: 0.9818 MB / 0.5143 GB, free: 30.61 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004608/0.3956, allocations: 88.58 kB / 0.5144 GB, free: 30.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001854/0.3958, allocations: 47 kB / 0.5145 GB, free: 30.6 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.3958, allocations: 0 / 0.5145 GB, free: 30.6 MB / 382.1 MB Notification: Performance of Templates: time 0.02126/0.4171, allocations: 11.3 MB / 0.5255 GB, free: 27.62 MB / 382.1 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches