Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_PowerGrids.Controls.Test.TestLeadLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 80.94 kB / 19.94 MB, free: 4.543 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001624/0.001624, allocations: 177 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9547/0.9547, allocations: 158.6 MB / 185.2 MB, free: 2.77 MB / 170.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.03983/0.03983, allocations: 10.65 MB / 248.2 MB, free: 4.359 MB / 234.7 MB " [Timeout remaining time 180] Using package PowerGrids with version 1.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLeadLag") translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="leadLag.T1|leadLag.T2|leadLag.feedback.y|leadLag.firstOrder.T|leadLag.firstOrder.initType|leadLag.firstOrder.k|leadLag.firstOrder.u|leadLag.firstOrder.y|leadLag.firstOrder.y_start|leadLag.gain.k|leadLag.gain.u|leadLag.gain.y|leadLag.initType|leadLag.k|leadLag.noDynamics|leadLag.u|leadLag.y|leadLag.yStart|leadLagAnalyticSolution.y|leadLagNoDynamics.T1|leadLagNoDynamics.T2|leadLagNoDynamics.feedback.y|leadLagNoDynamics.gain.k|leadLagNoDynamics.gain.u|leadLagNoDynamics.gain.y|leadLagNoDynamics.initType|leadLagNoDynamics.k|leadLagNoDynamics.noDynamics|leadLagNoDynamics.u|leadLagNoDynamics.y|leadLagNoDynamics.yStart|leadLagNoDynamics.zero.y|leadLagNoDynamicsAnalyticSolution.y|step.height|step.offset|step.startTime|step.y|time",fileNamePrefix="PowerGrids_PowerGrids.Controls.Test.TestLeadLag") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.494e-06/2.494e-06, allocations: 0 / 270.9 MB, free: 13.67 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.145e-05/3.394e-05, allocations: 6.25 kB / 270.9 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003777/0.003811, allocations: 1.799 MB / 272.7 MB, free: 11.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005211/0.004332, allocations: 163.4 kB / 272.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.004459, allocations: 7.938 kB / 272.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.004631, allocations: 15.8 kB / 272.9 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.00484, allocations: 31.73 kB / 272.9 MB, free: 11.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001299/0.00497, allocations: 39.94 kB / 272.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002172/0.005187, allocations: 135.6 kB / 273.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000162/0.005349, allocations: 38.16 kB / 273.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001431/0.005492, allocations: 67.83 kB / 273.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001395/0.005631, allocations: 39.88 kB / 273.2 MB, free: 11.31 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.36e-05/0.005675, allocations: 8 kB / 273.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.392e-05/0.005699, allocations: 12 kB / 273.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.076e-05/0.00574, allocations: 23.86 kB / 273.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.162e-05/0.005791, allocations: 31.91 kB / 273.3 MB, free: 11.23 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.005974, allocations: 71.62 kB / 273.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.815e-06/0.005977, allocations: 0 / 273.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.005978, allocations: 0 / 273.4 MB, free: 11.16 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.005987, allocations: 11.98 kB / 273.4 MB, free: 11.15 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.000631/0.006618, allocations: 324.4 kB / 273.7 MB, free: 10.81 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.006668, allocations: 8.031 kB / 273.7 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.525e-05/0.006723, allocations: 20.92 kB / 273.7 MB, free: 10.78 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002191/0.006942, allocations: 146.1 kB / 273.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.409e-05/0.006956, allocations: 4.375 kB / 273.9 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.229e-05/0.006989, allocations: 12.38 kB / 273.9 MB, free: 10.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001964/0.007185, allocations: 117.3 kB / 274 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.007195, allocations: 192 / 274 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.007208, allocations: 8.125 kB / 274 MB, free: 10.46 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/0.007217, allocations: 4 kB / 274 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.675e-05/0.007274, allocations: 23.97 kB / 274 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005291/0.007803, allocations: 284.9 kB / 274.3 MB, free: 10.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002867/0.00809, allocations: 91.7 kB / 274.4 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.585e-05/0.008136, allocations: 30.58 kB / 274.4 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.679e-05/0.008152, allocations: 0 / 274.4 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.932e-05/0.008182, allocations: 34.56 kB / 274.5 MB, free: 9.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=7): time 1.373e-06/0.008183, allocations: 3.938 kB / 274.5 MB, free: 9.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=7): time 0.0001951/0.008378, allocations: 69.61 kB / 274.5 MB, free: 9.848 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.008444, allocations: 110.8 kB / 274.6 MB, free: 9.715 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000135/0.008579, allocations: 146.6 kB / 274.8 MB, free: 9.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.216e-05/0.008601, allocations: 33.95 kB / 274.8 MB, free: 9.52 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.823e-05/0.008669, allocations: 111.9 kB / 274.9 MB, free: 9.406 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.632e-05/0.008696, allocations: 27.78 kB / 275 MB, free: 9.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.697e-05/0.008743, allocations: 25.7 kB / 275 MB, free: 9.348 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.008851, allocations: 322.8 kB / 275.3 MB, free: 9.023 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.564e-05/0.008876, allocations: 4.25 kB / 275.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.848e-05/0.008955, allocations: 100.5 kB / 275.4 MB, free: 8.891 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.548e-05/0.00903, allocations: 51.36 kB / 275.4 MB, free: 8.828 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.009033, allocations: 4.031 kB / 275.4 MB, free: 8.824 MB / 266.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000224/0.009257, allocations: 86.39 kB / 275.5 MB, free: 8.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.259e-05/0.00928, allocations: 11.98 kB / 275.5 MB, free: 8.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.009287, allocations: 3.938 kB / 275.5 MB, free: 8.715 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002774/0.009565, allocations: 40.91 kB / 275.6 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.131e-05/0.009636, allocations: 11.98 kB / 275.6 MB, free: 8.66 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001098/0.01073, allocations: 1.194 MB / 276.8 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.025e-05/0.0108, allocations: 19.88 kB / 276.8 MB, free: 7.359 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.878e-06/0.01081, allocations: 4 kB / 276.8 MB, free: 7.355 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 8.866e-05/0.0109, allocations: 109.8 kB / 276.9 MB, free: 7.238 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.01094, allocations: 19.97 kB / 276.9 MB, free: 7.219 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.546e-05/0.01096, allocations: 16.45 kB / 277 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.01097, allocations: 0 / 277 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.01097, allocations: 0 / 277 MB, free: 7.203 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.01097, allocations: 4 kB / 277 MB, free: 7.199 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.01114, allocations: 93.84 kB / 277.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.01114, allocations: 0 / 277.1 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.689e-05/0.01121, allocations: 12.06 kB / 277.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.645e-06/0.01122, allocations: 11.92 kB / 277.1 MB, free: 7.066 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.01123, allocations: 4 kB / 277.1 MB, free: 7.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.01123, allocations: 4 kB / 277.1 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.01124, allocations: 0 / 277.1 MB, free: 7.059 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001807/0.01142, allocations: 181.2 kB / 277.3 MB, free: 6.859 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.012e-05/0.01144, allocations: 11.91 kB / 277.3 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.789e-05/0.01145, allocations: 11.86 kB / 277.3 MB, free: 6.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.136e-05/0.01154, allocations: 8 kB / 277.3 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.325e-05/0.01158, allocations: 7.984 kB / 277.3 MB, free: 6.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.01158, allocations: 0 / 277.3 MB, free: 6.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.223e-05/0.01163, allocations: 29.58 kB / 277.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01163, allocations: 0 / 277.3 MB, free: 6.789 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002599/0.01189, allocations: 27.97 kB / 277.4 MB, free: 6.762 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (leadLag.firstOrder.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 (7): * Single equations (assignments): 7 * 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.0001053/0.01199, allocations: 76.36 kB / 277.4 MB, free: 6.68 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003539/0.01235, allocations: 175.3 kB / 277.6 MB, free: 6.492 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/0.01235, allocations: 4 kB / 277.6 MB, free: 6.488 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.511e-05/0.0124, allocations: 20.84 kB / 277.6 MB, free: 6.465 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002604/0.01266, allocations: 31.92 kB / 277.7 MB, free: 6.434 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005089/0.01317, allocations: 242.5 kB / 277.9 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.418e-05/0.01322, allocations: 71.12 kB / 278 MB, free: 6.074 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.223e-05/0.01328, allocations: 8.5 kB / 278 MB, free: 6.066 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.426e-05/0.01338, allocations: 67.36 kB / 278 MB, free: 6 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.01338, allocations: 0 / 278 MB, free: 6 MB / 266.7 MB Notification: Performance of Templates: time 0.003559/0.01694, allocations: 1.419 MB / 279.5 MB, free: 4.578 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (rm -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 240] diffSimulationResults("PowerGrids_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.947692431975156]