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.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) 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.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_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_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.001563/0.001563, allocations: 105.5 kB / 16.41 MB, free: 6.461 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.001745/0.001745, allocations: 187 kB / 17.34 MB, free: 5.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.273/1.273, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06279/0.06279, allocations: 14.17 MB / 284.7 MB, free: 13.84 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001417, allocations: 66.62 kB / 399.3 MB, free: 42.72 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0679/0.06933, allocations: 50.13 MB / 449.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002628/0.07199, allocations: 1.812 MB / 451.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003421/0.07235, allocations: 159.4 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.645e-05/0.07245, allocations: 4 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.07257, allocations: 15.8 kB / 451.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.07272, allocations: 27.8 kB / 451.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001021/0.07283, allocations: 43.89 kB / 451.4 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001841/0.07303, allocations: 123.7 kB / 451.6 MB, free: 9.367 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001674/0.0732, allocations: 61.23 kB / 451.6 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.62e-05/0.07328, allocations: 47.78 kB / 451.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.843e-05/0.07339, allocations: 51.77 kB / 451.7 MB, free: 9.211 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.767e-05/0.07342, allocations: 15.94 kB / 451.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.964e-05/0.07345, allocations: 8 kB / 451.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.719e-05/0.07348, allocations: 23.92 kB / 451.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.793e-05/0.07353, allocations: 51.72 kB / 451.8 MB, free: 9.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.07368, allocations: 111.5 kB / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.316e-06/0.07369, allocations: 0 / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.0737, allocations: 0 / 451.9 MB, free: 9.004 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.83e-06/0.07371, allocations: 0 / 451.9 MB, free: 9.004 MB / 334.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.0005767/0.07429, allocations: 427 kB / 452.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.072e-05/0.07433, allocations: 8.031 kB / 452.4 MB, free: 8.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.018e-05/0.07437, allocations: 12.84 kB / 452.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002801/0.07466, allocations: 218.7 kB / 452.6 MB, free: 8.266 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.325e-05/0.07468, allocations: 12.31 kB / 452.6 MB, free: 8.254 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.73e-05/0.07472, allocations: 12.38 kB / 452.6 MB, free: 8.242 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002433/0.07497, allocations: 124.3 kB / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.07499, allocations: 0 / 452.7 MB, free: 8.105 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.07501, allocations: 4 kB / 452.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.07502, allocations: 0 / 452.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.07522, allocations: 63.95 kB / 452.8 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005979/0.07583, allocations: 457 kB / 453.2 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/0.07622, allocations: 115.8 kB / 453.3 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.07635, allocations: 50.69 kB / 453.4 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.409e-05/0.07637, allocations: 3.938 kB / 453.4 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2e-05/0.07639, allocations: 34.56 kB / 453.4 MB, free: 7.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.0764, allocations: 0 / 453.4 MB, free: 7.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003838/0.07679, allocations: 133.5 kB / 453.6 MB, free: 7.148 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.07684, allocations: 106.8 kB / 453.7 MB, free: 7.02 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.07698, allocations: 146.4 kB / 453.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.794e-05/0.07701, allocations: 25.7 kB / 453.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.78e-05/0.07708, allocations: 119.9 kB / 454 MB, free: 6.711 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.256e-05/0.07711, allocations: 19.72 kB / 454 MB, free: 6.691 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.589e-05/0.07716, allocations: 29.95 kB / 454 MB, free: 6.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 8.889e-05/0.07726, allocations: 318.8 kB / 454.3 MB, free: 6.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.064e-05/0.07736, allocations: 23.97 kB / 454.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001094/0.07747, allocations: 61.14 kB / 454.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001812/0.07766, allocations: 83.38 kB / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.07767, allocations: 256 / 454.5 MB, free: 6.141 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003562/0.07804, allocations: 142.3 kB / 454.6 MB, free: 5.992 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.248e-05/0.07806, allocations: 8 kB / 454.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.07807, allocations: 0 / 454.6 MB, free: 5.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001947/0.07827, allocations: 36.83 kB / 454.7 MB, free: 5.945 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.07838, allocations: 15.98 kB / 454.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/0.07945, allocations: 1.457 MB / 456.1 MB, free: 4.332 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.936e-05/0.07956, allocations: 11.94 kB / 456.1 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.07958, allocations: 4 kB / 456.2 MB, free: 4.316 MB / 334.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 8.789e-05/0.07968, allocations: 130.5 kB / 456.3 MB, free: 4.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.82e-05/0.07972, allocations: 15.89 kB / 456.3 MB, free: 4.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.552e-05/0.07976, allocations: 16.19 kB / 456.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.07976, allocations: 4 kB / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.222e-06/0.07977, allocations: 0 / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.07978, allocations: 0 / 456.3 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.07999, allocations: 213.5 kB / 456.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.08, allocations: 0 / 456.5 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.08013, allocations: 23.98 kB / 456.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.08014, allocations: 0 / 456.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.26e-05/0.08016, allocations: 7.938 kB / 456.6 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.08017, allocations: 4 kB / 456.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.08017, allocations: 0 / 456.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003574/0.08053, allocations: 229.2 kB / 456.8 MB, free: 3.605 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.421e-05/0.08059, allocations: 92.94 kB / 456.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.913e-05/0.08062, allocations: 11.94 kB / 456.9 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001102/0.08073, allocations: 8 kB / 456.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.536e-05/0.08078, allocations: 7.984 kB / 456.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.08079, allocations: 0 / 456.9 MB, free: 3.469 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.906e-05/0.08088, allocations: 123.2 kB / 457 MB, free: 3.348 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.08089, allocations: 0 / 457 MB, free: 3.348 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00028/0.08117, allocations: 24.06 kB / 457 MB, free: 3.324 MB / 334.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 8.823e-05/0.08127, allocations: 95.19 kB / 457.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004519/0.08172, allocations: 190.6 kB / 457.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.08174, allocations: 0 / 457.3 MB, free: 3.023 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000101/0.08185, allocations: 32.23 kB / 457.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.08218, allocations: 32.06 kB / 457.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005082/0.0827, allocations: 290.7 kB / 457.7 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.08295, allocations: 0.7041 MB / 458.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.145e-05/0.083, allocations: 19.42 kB / 458.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of SimCode: time 2.4e-07/0.083, allocations: 0 / 458.4 MB, free: 1.887 MB / 334.1 MB Notification: Performance of Templates: time 0.003037/0.08604, allocations: 1.717 MB / 460.1 MB, free: 172 kB / 334.1 MB make -j1 -f PowerGrids_PowerGrids.Controls.Test.TestLeadLag.makefile (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=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_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_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches