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.001059/0.001059, allocations: 93.91 kB / 18 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 197.5 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.7 MB / 247.5 MB, free: 11.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1905/0.1905, allocations: 46.19 MB / 345.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002521/0.0002521, allocations: 8 kB / 420.2 MB, free: 19.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09458/0.09485, allocations: 63.56 MB / 483.7 MB, free: 4.148 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004066/0.09895, allocations: 3.9 MB / 487.6 MB, free: 232 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002827/0.1018, allocations: 1.539 MB / 489.2 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006928/0.1025, allocations: 35.81 kB / 489.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003703/0.1029, allocations: 114.9 kB / 489.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005243/0.1035, allocations: 118.9 kB / 489.4 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001217/0.1047, allocations: 0.5408 MB / 490 MB, free: 13.88 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001077/0.1058, allocations: 0.9451 MB / 490.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006328/0.1064, allocations: 411.1 kB / 491.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003553/0.1068, allocations: 270.2 kB / 491.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003172/0.1071, allocations: 301.8 kB / 491.9 MB, free: 11.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.281e-05/0.1072, allocations: 20 kB / 491.9 MB, free: 11.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.473e-05/0.1073, allocations: 27.94 kB / 491.9 MB, free: 11.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.1074, allocations: 119.2 kB / 492 MB, free: 11.78 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002749/0.1077, allocations: 371 kB / 492.4 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005734/0.1082, allocations: 0.7017 MB / 493.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.1082, allocations: 0 / 493.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1083, allocations: 0 / 493.1 MB, free: 10.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.599e-05/0.1083, allocations: 0 / 493.1 MB, free: 10.71 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.001818/0.1101, allocations: 1.145 MB / 494.2 MB, free: 9.508 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.1102, allocations: 8.031 kB / 494.3 MB, free: 9.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001926/0.1104, allocations: 119.5 kB / 494.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007954/0.1112, allocations: 0.6126 MB / 495 MB, free: 8.73 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.78e-05/0.1112, allocations: 45.69 kB / 495 MB, free: 8.688 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.683e-05/0.1113, allocations: 72.31 kB / 495.1 MB, free: 8.617 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001315/0.1126, allocations: 0.7973 MB / 495.9 MB, free: 7.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.676e-05/0.1127, allocations: 3.938 kB / 495.9 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.156e-05/0.1127, allocations: 28 kB / 495.9 MB, free: 7.719 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.1127, allocations: 24 kB / 495.9 MB, free: 7.695 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001239/0.114, allocations: 0.5853 MB / 496.5 MB, free: 7.109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.1174, allocations: 2.745 MB / 499.3 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001448/0.1188, allocations: 0.7335 MB / 0.4883 GB, free: 3.496 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005963/0.1194, allocations: 311.3 kB / 0.4886 GB, free: 3.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.978e-05/0.1195, allocations: 4 kB / 0.4886 GB, free: 3.176 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.177e-05/0.1195, allocations: 46.5 kB / 0.4886 GB, free: 3.121 MB / 366.1 MB Notification: Performance of pre-optimization done (n=52): time 2.003e-06/0.1195, allocations: 0 / 0.4886 GB, free: 3.121 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.001903/0.1215, allocations: 0.8703 MB / 0.4895 GB, free: 2.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001366/0.1216, allocations: 350.1 kB / 0.4898 GB, free: 1.828 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007662/0.1224, allocations: 0.6967 MB / 0.4905 GB, free: 1.117 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.1224, allocations: 37.7 kB / 0.4905 GB, free: 1.074 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003207/0.1228, allocations: 428.5 kB / 0.4909 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.1229, allocations: 185.3 kB / 0.4911 GB, free: 480 kB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.545e-05/0.123, allocations: 53.69 kB / 0.4912 GB, free: 420 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.1231, allocations: 337.9 kB / 0.4915 GB, free: 76 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005612/0.1237, allocations: 248.9 kB / 0.4917 GB, free: 15.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006559/0.1243, allocations: 415.5 kB / 0.4921 GB, free: 15.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/0.1255, allocations: 0.6135 MB / 0.4927 GB, free: 14.71 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1255, allocations: 0 / 0.4927 GB, free: 14.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002884/0.1284, allocations: 1.164 MB / 0.4939 GB, free: 13.54 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001027/0.1285, allocations: 169.5 kB / 0.494 GB, free: 13.33 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.201e-05/0.1285, allocations: 4 kB / 0.494 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001238/0.1298, allocations: 359 kB / 0.4944 GB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005602/0.1304, allocations: 127.9 kB / 0.4945 GB, free: 12.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008611/0.139, allocations: 7.076 MB / 0.5014 GB, free: 5.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006024/0.1396, allocations: 99.36 kB / 0.5015 GB, free: 5.129 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.749e-05/0.1397, allocations: 28.05 kB / 0.5015 GB, free: 5.102 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.276e-06/0.1397, allocations: 4 kB / 0.5015 GB, free: 5.098 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001452/0.1412, allocations: 0.6721 MB / 0.5022 GB, free: 4.422 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1412, allocations: 4 kB / 0.5022 GB, free: 4.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004977/0.1417, allocations: 146.1 kB / 0.5023 GB, free: 4.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007253/0.1424, allocations: 187.8 kB / 0.5025 GB, free: 4.086 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003298/0.1457, allocations: 3.256 MB / 0.5057 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005026/0.1462, allocations: 75.58 kB / 0.5058 GB, free: 496 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.868e-05/0.1463, allocations: 20 kB / 0.5058 GB, free: 476 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.0003925/0.1467, allocations: 300.9 kB / 0.5061 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002048/0.1469, allocations: 90.88 kB / 0.5062 GB, free: 72 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1809/0.3278, allocations: 91.83 kB / 0.5062 GB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.138e-05/0.3278, allocations: 5.438 kB / 0.5062 GB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.3278, allocations: 1.562 kB / 0.5062 GB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.3279, allocations: 2.844 kB / 0.5063 GB, free: 38.99 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001483/0.3294, allocations: 0.7376 MB / 0.507 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.3294, allocations: 2.562 kB / 0.507 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006732/0.3301, allocations: 122 kB / 0.5071 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.028e-05/0.3301, allocations: 4.5 kB / 0.5071 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.732e-05/0.3301, allocations: 11.55 kB / 0.5071 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.262e-06/0.3302, allocations: 2.688 kB / 0.5071 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.3302, allocations: 1.844 kB / 0.5071 GB, free: 38.8 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002111/0.3323, allocations: 1.283 MB / 0.5084 GB, free: 38.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002769/0.3326, allocations: 208.7 kB / 0.5086 GB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001085/0.3327, allocations: 14.14 kB / 0.5086 GB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005614/0.3333, allocations: 57.3 kB / 0.5086 GB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.85e-05/0.3334, allocations: 34.58 kB / 0.5087 GB, free: 38.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.238e-05/0.3334, allocations: 20.83 kB / 0.5087 GB, free: 38.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006887/0.3341, allocations: 490.1 kB / 0.5092 GB, free: 38.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.01e-07/0.3341, allocations: 0 / 0.5092 GB, free: 38.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001044/0.3352, allocations: 285.3 kB / 0.5094 GB, free: 38.25 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.000132/0.3353, allocations: 110.1 kB / 0.5095 GB, free: 38.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004129/0.3394, allocations: 2.027 MB / 0.5115 GB, free: 37.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.988e-06/0.3395, allocations: 0 / 0.5115 GB, free: 37.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000615/0.3401, allocations: 306.8 kB / 0.5118 GB, free: 37.5 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001583/0.3417, allocations: 212.6 kB / 0.512 GB, free: 37.49 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002654/0.3443, allocations: 1.888 MB / 0.5138 GB, free: 36.48 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004892/0.3448, allocations: 0.9815 MB / 0.5148 GB, free: 35.78 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001899/0.345, allocations: 48.25 kB / 0.5149 GB, free: 35.77 MB / 382.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3451, allocations: 0 / 0.5149 GB, free: 35.77 MB / 382.1 MB Notification: Performance of Templates: time 0.02132/0.3664, allocations: 16.99 MB / 0.5314 GB, free: 28.96 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/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