Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.conf.json 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/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/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_PowerGrids.Controls.Test.TestLeadLag") translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_dev_PowerGrids.Controls.Test.TestLeadLag") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001467/0.001467, allocations: 111.5 kB / 16.37 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001617/0.001617, allocations: 192 kB / 17.31 MB, free: 5.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.354/1.354, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07195/0.07195, allocations: 16.74 MB / 307.9 MB, free: 14.46 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001359, allocations: 62.62 kB / 375.2 MB, free: 48.77 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0867/0.08808, allocations: 53.56 MB / 428.8 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002639/0.09074, allocations: 1.799 MB / 430.6 MB, free: 8.066 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003072/0.09107, allocations: 155.5 kB / 430.8 MB, free: 7.914 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.051e-05/0.09117, allocations: 4 kB / 430.8 MB, free: 7.91 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.09129, allocations: 15.8 kB / 430.8 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001311/0.09143, allocations: 31.77 kB / 430.8 MB, free: 7.863 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.851e-05/0.09155, allocations: 39.89 kB / 430.8 MB, free: 7.824 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001338/0.09169, allocations: 131.7 kB / 431 MB, free: 7.695 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001375/0.09184, allocations: 57.22 kB / 431 MB, free: 7.637 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.804e-05/0.09189, allocations: 55.7 kB / 431.1 MB, free: 7.582 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.32e-05/0.09198, allocations: 47.77 kB / 431.1 MB, free: 7.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.09201, allocations: 12 kB / 431.1 MB, free: 7.523 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.566e-05/0.09203, allocations: 8 kB / 431.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.553e-05/0.09206, allocations: 23.92 kB / 431.2 MB, free: 7.492 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.09211, allocations: 47.67 kB / 431.2 MB, free: 7.445 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001112/0.09223, allocations: 123.5 kB / 431.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.09224, allocations: 0 / 431.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09224, allocations: 0 / 431.3 MB, free: 7.324 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.099e-06/0.09225, allocations: 0 / 431.3 MB, free: 7.324 MB / 302.1 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.0004514/0.09271, allocations: 419 kB / 431.8 MB, free: 6.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.84e-05/0.09274, allocations: 8.031 kB / 431.8 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.748e-05/0.09279, allocations: 20.69 kB / 431.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001924/0.09298, allocations: 221.4 kB / 432 MB, free: 6.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.102e-05/0.093, allocations: 8.375 kB / 432 MB, free: 6.574 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.09304, allocations: 8.375 kB / 432 MB, free: 6.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001956/0.09324, allocations: 122.5 kB / 432.1 MB, free: 6.434 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.09325, allocations: 4 kB / 432.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.115e-05/0.09327, allocations: 4 kB / 432.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.09328, allocations: 0 / 432.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001775/0.09346, allocations: 71.89 kB / 432.2 MB, free: 6.355 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004693/0.09394, allocations: 445.2 kB / 432.6 MB, free: 5.859 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003245/0.09428, allocations: 119.8 kB / 432.8 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.865e-05/0.09438, allocations: 50.67 kB / 432.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.836e-05/0.0944, allocations: 0 / 432.8 MB, free: 5.656 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.214e-05/0.09442, allocations: 38.56 kB / 432.9 MB, free: 5.609 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.09443, allocations: 0 / 432.9 MB, free: 5.609 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003297/0.09476, allocations: 133.5 kB / 433 MB, free: 5.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.0948, allocations: 106.8 kB / 433.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.272e-05/0.09489, allocations: 152.2 kB / 433.2 MB, free: 5.184 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.025e-05/0.09491, allocations: 25.7 kB / 433.3 MB, free: 5.152 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.345e-05/0.09496, allocations: 123.8 kB / 433.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.62e-05/0.09498, allocations: 23.66 kB / 433.4 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.687e-05/0.09502, allocations: 21.7 kB / 433.4 MB, free: 4.977 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.937e-05/0.09507, allocations: 322.8 kB / 433.7 MB, free: 4.652 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.593e-05/0.09515, allocations: 19.98 kB / 433.8 MB, free: 4.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.627e-05/0.09524, allocations: 73.06 kB / 433.8 MB, free: 4.543 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001433/0.09539, allocations: 75.34 kB / 433.9 MB, free: 4.457 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.0954, allocations: 4.031 kB / 433.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003074/0.09571, allocations: 146.1 kB / 434.1 MB, free: 4.301 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.09574, allocations: 6.031 kB / 434.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.09574, allocations: 0 / 434.1 MB, free: 4.297 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001854/0.09593, allocations: 36.92 kB / 434.1 MB, free: 4.258 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.264e-05/0.09604, allocations: 23.92 kB / 434.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007525/0.0968, allocations: 1.449 MB / 435.6 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.143e-05/0.0969, allocations: 11.97 kB / 435.6 MB, free: 2.629 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.09692, allocations: 4 kB / 435.6 MB, free: 2.625 MB / 302.1 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 6.54e-05/0.09699, allocations: 125.3 kB / 435.7 MB, free: 2.496 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.09703, allocations: 11.91 kB / 435.7 MB, free: 2.484 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.409e-05/0.09706, allocations: 16.23 kB / 435.7 MB, free: 2.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.09706, allocations: 8.203 kB / 435.7 MB, free: 2.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.09707, allocations: 4.297 kB / 435.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.09708, allocations: 0 / 435.7 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001513/0.09723, allocations: 209.5 kB / 435.9 MB, free: 2.203 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/0.09724, allocations: 4 kB / 436 MB, free: 2.199 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.09738, allocations: 15.98 kB / 436 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.09739, allocations: 4 kB / 436 MB, free: 2.18 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.116e-05/0.0974, allocations: 7.938 kB / 436 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.09741, allocations: 0 / 436 MB, free: 2.172 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.09742, allocations: 4 kB / 436 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002634/0.09768, allocations: 233 kB / 436.2 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.09772, allocations: 85.05 kB / 436.3 MB, free: 1.816 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.09774, allocations: 11.92 kB / 436.3 MB, free: 1.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.09785, allocations: 7.938 kB / 436.3 MB, free: 1.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.997e-05/0.0979, allocations: 12.05 kB / 436.3 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.57e-06/0.09791, allocations: 0 / 436.3 MB, free: 1.785 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.524e-05/0.09797, allocations: 115.3 kB / 436.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09798, allocations: 0 / 436.4 MB, free: 1.672 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002471/0.09823, allocations: 23.94 kB / 436.5 MB, free: 1.648 MB / 302.1 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 7.225e-05/0.0983, allocations: 99.17 kB / 436.6 MB, free: 1.543 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004012/0.09871, allocations: 202.5 kB / 436.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.09873, allocations: 0 / 436.8 MB, free: 1.332 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.863e-05/0.09882, allocations: 27.98 kB / 436.8 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003259/0.09915, allocations: 28.05 kB / 436.8 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004499/0.09961, allocations: 252.8 kB / 437.1 MB, free: 1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001218/0.09975, allocations: 0.7078 MB / 437.8 MB, free: 272 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.793e-05/0.09981, allocations: 12.55 kB / 437.8 MB, free: 260 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.52e-05/0.09985, allocations: 15.44 kB / 437.8 MB, free: 244 kB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.09986, allocations: 0 / 437.8 MB, free: 244 kB / 302.1 MB Notification: Performance of Templates: time 0.003675/0.1035, allocations: 1.253 MB / 439 MB, free: 15 MB / 318.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches