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.001293/0.001293, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00131/0.00131, allocations: 199.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2037/0.2037, allocations: 46.09 MB / 344.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 71.88 kB / 419 MB, free: 19.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1135/0.1148, allocations: 62.46 MB / 481.5 MB, free: 4.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.005374/0.1203, allocations: 4.362 MB / 485.8 MB, free: 128 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00284/0.1231, allocations: 1.566 MB / 487.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005501/0.1237, allocations: 35.81 kB / 487.4 MB, free: 14.52 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004008/0.1241, allocations: 162.2 kB / 487.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000367/0.1245, allocations: 158.3 kB / 487.7 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001218/0.1258, allocations: 0.5996 MB / 488.3 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009938/0.1268, allocations: 1.023 MB / 489.4 MB, free: 12.58 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000625/0.1274, allocations: 443.1 kB / 489.8 MB, free: 12.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003534/0.1278, allocations: 354.3 kB / 490.1 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003472/0.1281, allocations: 389.7 kB / 490.5 MB, free: 11.4 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001052/0.1282, allocations: 84 kB / 490.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.866e-05/0.1283, allocations: 88 kB / 490.7 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001511/0.1285, allocations: 199.2 kB / 490.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002943/0.1288, allocations: 441.2 kB / 491.3 MB, free: 10.6 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007972/0.1296, allocations: 1.023 MB / 492.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1296, allocations: 0 / 492.3 MB, free: 9.574 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1296, allocations: 4 kB / 492.3 MB, free: 9.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.353e-05/0.1296, allocations: 0 / 492.3 MB, free: 9.57 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.001889/0.1315, allocations: 1.288 MB / 493.6 MB, free: 8.227 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.269e-05/0.1316, allocations: 16.03 kB / 493.6 MB, free: 8.211 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001545/0.1317, allocations: 111.6 kB / 493.8 MB, free: 8.102 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000929/0.1327, allocations: 0.6514 MB / 494.4 MB, free: 7.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.32e-05/0.1327, allocations: 49.69 kB / 494.5 MB, free: 7.363 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.939e-05/0.1328, allocations: 68.31 kB / 494.5 MB, free: 7.297 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001152/0.134, allocations: 0.7734 MB / 495.3 MB, free: 6.457 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.48e-05/0.134, allocations: 4 kB / 495.3 MB, free: 6.453 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.407e-05/0.1341, allocations: 28 kB / 495.3 MB, free: 6.426 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.919e-05/0.1341, allocations: 16 kB / 495.3 MB, free: 6.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001073/0.1352, allocations: 0.5431 MB / 495.9 MB, free: 5.867 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003053/0.1382, allocations: 2.706 MB / 498.6 MB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001229/0.1395, allocations: 0.6671 MB / 499.3 MB, free: 2.359 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004999/0.14, allocations: 278.9 kB / 499.5 MB, free: 2.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.75e-05/0.1401, allocations: 15.98 kB / 499.5 MB, free: 2.062 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.1401, allocations: 50.48 kB / 499.6 MB, free: 2.004 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.284e-06/0.1401, allocations: 0 / 499.6 MB, free: 2.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001617/0.1417, allocations: 0.7851 MB / 0.4887 GB, free: 1.215 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001591/0.1419, allocations: 366 kB / 0.489 GB, free: 0.7773 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007114/0.1426, allocations: 0.6929 MB / 0.4897 GB, free: 72 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.315e-05/0.1427, allocations: 37.7 kB / 0.4897 GB, free: 28 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003294/0.143, allocations: 432.4 kB / 0.4901 GB, free: 15.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.1431, allocations: 185.3 kB / 0.4903 GB, free: 15.42 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001725/0.1433, allocations: 110.1 kB / 0.4904 GB, free: 15.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1434, allocations: 333.9 kB / 0.4907 GB, free: 14.97 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.1439, allocations: 231 kB / 0.4909 GB, free: 14.74 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/0.1445, allocations: 383.5 kB / 0.4913 GB, free: 14.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009655/0.1455, allocations: 0.5581 MB / 0.4919 GB, free: 13.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.1455, allocations: 0 / 0.4919 GB, free: 13.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002435/0.1479, allocations: 1.045 MB / 0.4929 GB, free: 12.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.1479, allocations: 8 kB / 0.4929 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.148, allocations: 4 kB / 0.4929 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001121/0.1491, allocations: 315.2 kB / 0.4932 GB, free: 12.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000528/0.1496, allocations: 131.8 kB / 0.4933 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008053/0.1577, allocations: 7.268 MB / 0.5004 GB, free: 4.355 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006212/0.1583, allocations: 83.39 kB / 0.5005 GB, free: 4.273 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.204e-05/0.1584, allocations: 20 kB / 0.5005 GB, free: 4.254 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006116/0.159, allocations: 349.2 kB / 0.5008 GB, free: 3.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004797/0.1595, allocations: 347.5 kB / 0.5012 GB, free: 3.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007817/0.1603, allocations: 0.4969 MB / 0.5017 GB, free: 2.977 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.697e-06/0.1603, allocations: 4 kB / 0.5017 GB, free: 2.973 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001432/0.1617, allocations: 0.7408 MB / 0.5024 GB, free: 2.223 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.1618, allocations: 8 kB / 0.5024 GB, free: 2.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.1618, allocations: 7.938 kB / 0.5024 GB, free: 2.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004697/0.1623, allocations: 145.8 kB / 0.5025 GB, free: 2.059 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006976/0.163, allocations: 175.8 kB / 0.5027 GB, free: 1.887 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1973/0.3603, allocations: 3.413 MB / 0.506 GB, free: 38.2 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006246/0.3609, allocations: 68.44 kB / 0.5061 GB, free: 38.2 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.15e-05/0.361, allocations: 18.56 kB / 0.5061 GB, free: 38.2 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.0001755/0.3612, allocations: 217.1 kB / 0.5063 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.3613, allocations: 94.34 kB / 0.5064 GB, free: 38.02 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001877/0.3615, allocations: 96.31 kB / 0.5065 GB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.082e-06/0.3615, allocations: 6.781 kB / 0.5065 GB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.3616, allocations: 2.188 kB / 0.5065 GB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.107e-06/0.3616, allocations: 7.906 kB / 0.5065 GB, free: 38.01 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001027/0.3626, allocations: 0.7357 MB / 0.5072 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/0.3626, allocations: 1.781 kB / 0.5073 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005597/0.3632, allocations: 111.7 kB / 0.5074 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.492e-06/0.3632, allocations: 2.688 kB / 0.5074 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.3632, allocations: 9.219 kB / 0.5074 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.703e-06/0.3632, allocations: 11.97 kB / 0.5074 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.3633, allocations: 0.8438 kB / 0.5074 GB, free: 37.82 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001651/0.3649, allocations: 1.205 MB / 0.5086 GB, free: 37.46 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.3652, allocations: 207 kB / 0.5088 GB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.599e-05/0.3652, allocations: 17.72 kB / 0.5088 GB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004827/0.3657, allocations: 41.33 kB / 0.5088 GB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.14e-05/0.3658, allocations: 34.58 kB / 0.5088 GB, free: 37.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.148e-05/0.3659, allocations: 18 kB / 0.5089 GB, free: 37.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005724/0.3664, allocations: 489.6 kB / 0.5093 GB, free: 37.26 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3665, allocations: 0 / 0.5093 GB, free: 37.26 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009628/0.3674, allocations: 279.7 kB / 0.5096 GB, free: 37.23 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.0001272/0.3676, allocations: 114.1 kB / 0.5097 GB, free: 37.14 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003658/0.3712, allocations: 1.873 MB / 0.5115 GB, free: 36.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.3712, allocations: 0 / 0.5115 GB, free: 36.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005147/0.3718, allocations: 284.6 kB / 0.5118 GB, free: 36.23 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001205/0.373, allocations: 241.1 kB / 0.512 GB, free: 36.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.3752, allocations: 1.494 MB / 0.5135 GB, free: 35.38 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004118/0.3757, allocations: 0.9802 MB / 0.5145 GB, free: 34.68 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003744/0.3761, allocations: 87.7 kB / 0.5145 GB, free: 34.67 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001617/0.3762, allocations: 50.17 kB / 0.5146 GB, free: 34.66 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3762, allocations: 0.8438 kB / 0.5146 GB, free: 34.66 MB / 382.1 MB Notification: Performance of Templates: time 0.02277/0.399, allocations: 12.19 MB / 0.5265 GB, free: 30.99 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 -s cvode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches