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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 186.9 kB / 17.97 MB, free: 3.797 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.333/1.333, allocations: 222.9 MB / 241.6 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001087/0.001087, allocations: 111.5 kB / 291.9 MB, free: 10.94 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.475/0.475, allocations: 44.13 MB / 386.1 MB, free: 38.06 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001046/0.001046, allocations: 47.92 kB / 457.7 MB, free: 2.324 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3897/0.3907, allocations: 60.8 MB / 0.5064 GB, free: 38.31 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004927/0.3957, allocations: 4.366 MB / 0.5106 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.002676/0.3984, allocations: 1.508 MB / 0.5121 GB, free: 34.06 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005333/0.399, allocations: 35.31 kB / 0.5122 GB, free: 34.05 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003427/0.3993, allocations: 113.7 kB / 0.5123 GB, free: 33.97 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003373/0.3998, allocations: 132.1 kB / 0.5124 GB, free: 33.88 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00105/0.4008, allocations: 0.5323 MB / 0.5129 GB, free: 33.55 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007209/0.4015, allocations: 0.9775 MB / 0.5139 GB, free: 33.07 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005083/0.4021, allocations: 424.6 kB / 0.5143 GB, free: 32.83 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002514/0.4023, allocations: 314.5 kB / 0.5146 GB, free: 32.67 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000256/0.4026, allocations: 358.8 kB / 0.5149 GB, free: 32.46 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 8.594e-05/0.4027, allocations: 45.62 kB / 0.515 GB, free: 32.46 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.809e-05/0.4028, allocations: 41.03 kB / 0.515 GB, free: 32.46 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001006/0.4029, allocations: 161.7 kB / 0.5151 GB, free: 32.36 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000209/0.4031, allocations: 390.6 kB / 0.5155 GB, free: 32.08 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005833/0.4037, allocations: 0.9273 MB / 0.5164 GB, free: 31.65 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.4037, allocations: 0 / 0.5164 GB, free: 31.65 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.02e-07/0.4037, allocations: 0 / 0.5164 GB, free: 31.65 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.475e-05/0.4037, allocations: 0 / 0.5164 GB, free: 31.65 MB / 378.7 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.001943/0.4057, allocations: 1.293 MB / 0.5177 GB, free: 30.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.4057, allocations: 10.06 kB / 0.5177 GB, free: 30.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001768/0.4059, allocations: 115 kB / 0.5178 GB, free: 30.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008102/0.4067, allocations: 0.6148 MB / 0.5184 GB, free: 30.26 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.989e-05/0.4068, allocations: 47.47 kB / 0.5185 GB, free: 30.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.875e-05/0.4069, allocations: 72.78 kB / 0.5185 GB, free: 30.21 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001127/0.408, allocations: 0.7412 MB / 0.5192 GB, free: 29.81 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.741e-05/0.408, allocations: 0 / 0.5192 GB, free: 29.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.993e-05/0.4081, allocations: 28.34 kB / 0.5193 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.427e-05/0.4081, allocations: 14.62 kB / 0.5193 GB, free: 29.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.4091, allocations: 0.5424 MB / 0.5198 GB, free: 29.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002914/0.412, allocations: 2.722 MB / 0.5225 GB, free: 27.71 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001218/0.4133, allocations: 0.6732 MB / 0.5231 GB, free: 27.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000491/0.4138, allocations: 283.2 kB / 0.5234 GB, free: 27.28 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.711e-05/0.4139, allocations: 5.719 kB / 0.5234 GB, free: 27.28 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.769e-05/0.4139, allocations: 37.47 kB / 0.5234 GB, free: 27.24 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 2.696e-06/0.4139, allocations: 0 / 0.5234 GB, free: 27.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.001648/0.4155, allocations: 0.8012 MB / 0.5242 GB, free: 26.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.4156, allocations: 241.1 kB / 0.5245 GB, free: 26.65 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006475/0.4163, allocations: 0.7052 MB / 0.5251 GB, free: 26.35 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.4163, allocations: 36.39 kB / 0.5252 GB, free: 26.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002349/0.4166, allocations: 424.5 kB / 0.5256 GB, free: 25.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.4167, allocations: 197 kB / 0.5258 GB, free: 25.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001674/0.4169, allocations: 103.9 kB / 0.5259 GB, free: 25.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.417, allocations: 329.8 kB / 0.5262 GB, free: 25.45 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004601/0.4174, allocations: 229.8 kB / 0.5264 GB, free: 25.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005463/0.418, allocations: 364.3 kB / 0.5268 GB, free: 25.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009558/0.419, allocations: 0.5584 MB / 0.5273 GB, free: 24.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.419, allocations: 0 / 0.5273 GB, free: 24.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.002475/0.4215, allocations: 1.042 MB / 0.5283 GB, free: 24.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.661e-05/0.4215, allocations: 10.66 kB / 0.5283 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.4215, allocations: 6.688 kB / 0.5283 GB, free: 24.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001205/0.4227, allocations: 316.6 kB / 0.5286 GB, free: 24.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005389/0.4233, allocations: 129.8 kB / 0.5288 GB, free: 24.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007189/0.4305, allocations: 6.765 MB / 0.5354 GB, free: 18.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006703/0.4312, allocations: 76.09 kB / 0.5354 GB, free: 18.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.4312, allocations: 19.06 kB / 0.5355 GB, free: 18.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006726/0.4319, allocations: 352.5 kB / 0.5358 GB, free: 18.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004455/0.4324, allocations: 332.9 kB / 0.5361 GB, free: 18.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007505/0.4331, allocations: 0.4934 MB / 0.5366 GB, free: 17.81 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.104e-06/0.4331, allocations: 0 / 0.5366 GB, free: 17.81 MB / 378.7 MB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001403/0.4346, allocations: 0.7401 MB / 0.5373 GB, free: 17.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.4346, allocations: 8.125 kB / 0.5373 GB, free: 17.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.4346, allocations: 3.312 kB / 0.5373 GB, free: 17.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004575/0.4351, allocations: 148.3 kB / 0.5375 GB, free: 17.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006638/0.4357, allocations: 167.2 kB / 0.5376 GB, free: 17.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00269/0.4384, allocations: 3.195 MB / 0.5407 GB, free: 14.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000509/0.439, allocations: 57.88 kB / 0.5408 GB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.3e-05/0.439, allocations: 25.2 kB / 0.5408 GB, free: 14.53 MB / 378.7 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.0002017/0.4392, allocations: 220.9 kB / 0.541 GB, free: 14.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001579/0.4394, allocations: 93.25 kB / 0.5411 GB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.4396, allocations: 96.8 kB / 0.5412 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.4396, allocations: 5.812 kB / 0.5412 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.317e-06/0.4396, allocations: 2.875 kB / 0.5412 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.4396, allocations: 3.281 kB / 0.5412 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008565/0.4405, allocations: 0.7361 MB / 0.5419 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.4405, allocations: 4.188 kB / 0.542 GB, free: 13.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000529/0.441, allocations: 115.3 kB / 0.5421 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.4411, allocations: 3.125 kB / 0.5421 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.4411, allocations: 11.16 kB / 0.5421 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.07e-06/0.4411, allocations: 6.438 kB / 0.5421 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4411, allocations: 0 / 0.5421 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007988/0.4491, allocations: 5.486 MB / 0.5474 GB, free: 10.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.4493, allocations: 205.6 kB / 0.5476 GB, free: 10.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.889e-05/0.4494, allocations: 12.12 kB / 0.5476 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004674/0.4499, allocations: 43.22 kB / 0.5477 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001126/0.45, allocations: 32.91 kB / 0.5477 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.922e-05/0.4501, allocations: 13.62 kB / 0.5477 GB, free: 10.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005232/0.4506, allocations: 495.1 kB / 0.5482 GB, free: 10.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4506, allocations: 1.344 kB / 0.5482 GB, free: 10.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001369/0.452, allocations: 389.5 kB / 0.5486 GB, free: 10.16 MB / 378.7 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.0001263/0.4521, allocations: 112.8 kB / 0.5487 GB, free: 10.06 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003728/0.4558, allocations: 1.873 MB / 0.5505 GB, free: 9.059 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4559, allocations: 3.938 kB / 0.5505 GB, free: 9.055 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005785/0.4564, allocations: 277.5 kB / 0.5508 GB, free: 8.969 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00142/0.4579, allocations: 218 kB / 0.551 GB, free: 8.898 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003099/0.461, allocations: 2.152 MB / 0.5531 GB, free: 7.496 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004888/0.4615, allocations: 0.9972 MB / 0.5541 GB, free: 6.777 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005564/0.4621, allocations: 107.5 kB / 0.5542 GB, free: 6.754 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.4623, allocations: 51.5 kB / 0.5542 GB, free: 6.746 MB / 378.7 MB Notification: Performance of SimCode: time 7.22e-07/0.4623, allocations: 0 / 0.5542 GB, free: 6.746 MB / 378.7 MB Notification: Performance of Templates: time 0.02672/0.489, allocations: 13.4 MB / 0.5673 GB, free: 68 kB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/LimPID/LimPID.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches