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.0008925/0.0008926, allocations: 91.14 kB / 15.36 MB, free: 0.7383 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.005048/0.005048, allocations: 173.4 kB / 16.27 MB, free: 6.613 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.24/1.24, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1736/0.1736, allocations: 16.76 MB / 308.2 MB, free: 15.57 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003157/0.0003158, allocations: 8 kB / 375.6 MB, free: 1.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.22, allocations: 54.56 MB / 430.1 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.001422/0.2215, allocations: 1.505 MB / 431.7 MB, free: 39.85 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002611/0.2218, allocations: 157.8 kB / 431.8 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.782e-05/0.2218, allocations: 5.469 kB / 431.8 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 9.574e-05/0.222, allocations: 11.16 kB / 431.8 MB, free: 39.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.2221, allocations: 22.34 kB / 431.8 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 6.954e-05/0.2222, allocations: 30.45 kB / 431.9 MB, free: 39.81 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001337/0.2223, allocations: 127 kB / 432 MB, free: 39.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.2224, allocations: 46.73 kB / 432 MB, free: 39.78 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.378e-05/0.2225, allocations: 38.09 kB / 432.1 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.544e-05/0.2226, allocations: 40.48 kB / 432.1 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.83e-05/0.2226, allocations: 6.969 kB / 432.1 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.236e-05/0.2226, allocations: 2.781 kB / 432.1 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.06e-05/0.2226, allocations: 14.94 kB / 432.1 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.945e-05/0.2227, allocations: 67.2 kB / 432.2 MB, free: 39.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.728e-05/0.2228, allocations: 96.14 kB / 432.3 MB, free: 39.67 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.426e-06/0.2228, allocations: 1.25 kB / 432.3 MB, free: 39.67 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2228, allocations: 0 / 432.3 MB, free: 39.67 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.466e-06/0.2228, allocations: 0 / 432.3 MB, free: 39.67 MB / 350.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.0003912/0.2232, allocations: 411.3 kB / 432.7 MB, free: 39.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.883e-05/0.2232, allocations: 8.969 kB / 432.7 MB, free: 39.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.826e-05/0.2233, allocations: 22.38 kB / 432.7 MB, free: 39.27 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.2234, allocations: 216.4 kB / 432.9 MB, free: 39.06 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.2235, allocations: 9.766 kB / 433 MB, free: 39.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.521e-05/0.2235, allocations: 10.56 kB / 433 MB, free: 39.05 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002059/0.2237, allocations: 125.9 kB / 433.1 MB, free: 38.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.073e-06/0.2237, allocations: 0 / 433.1 MB, free: 38.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.2237, allocations: 5.594 kB / 433.1 MB, free: 38.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2237, allocations: 4 kB / 433.1 MB, free: 38.99 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.2239, allocations: 68.97 kB / 433.2 MB, free: 38.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004836/0.2244, allocations: 459.3 kB / 433.6 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.2247, allocations: 123.8 kB / 433.7 MB, free: 38.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.715e-05/0.2249, allocations: 44.45 kB / 433.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.196e-05/0.2249, allocations: 2.969 kB / 433.8 MB, free: 38.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.079e-05/0.2249, allocations: 32.25 kB / 433.8 MB, free: 38.5 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.2249, allocations: 7.062 kB / 433.8 MB, free: 38.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003442/0.2253, allocations: 132 kB / 434 MB, free: 38.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/0.2253, allocations: 104.4 kB / 434.1 MB, free: 38.33 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.626e-05/0.2254, allocations: 150.2 kB / 434.2 MB, free: 38.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.185e-05/0.2254, allocations: 34.36 kB / 434.2 MB, free: 38.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/0.2255, allocations: 113.7 kB / 434.3 MB, free: 38.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.2255, allocations: 26.25 kB / 434.4 MB, free: 38.08 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.229e-05/0.2255, allocations: 15.03 kB / 434.4 MB, free: 38.07 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 3.578e-05/0.2255, allocations: 324.8 kB / 434.7 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.169e-05/0.2256, allocations: 21.3 kB / 434.7 MB, free: 37.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.391e-05/0.2257, allocations: 69.19 kB / 434.8 MB, free: 37.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001578/0.2259, allocations: 80.97 kB / 434.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2259, allocations: 192 / 434.9 MB, free: 37.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003125/0.2262, allocations: 154.5 kB / 435 MB, free: 37.55 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/0.2262, allocations: 6.938 kB / 435 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.2263, allocations: 2.969 kB / 435 MB, free: 37.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001694/0.2264, allocations: 38.59 kB / 435.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.226e-05/0.2265, allocations: 22.47 kB / 435.1 MB, free: 37.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006956/0.2272, allocations: 1.349 MB / 436.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.146e-05/0.2273, allocations: 13.34 kB / 436.5 MB, free: 36.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-06/0.2274, allocations: 6.812 kB / 436.5 MB, free: 36.17 MB / 350.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 5.977e-05/0.2274, allocations: 121.9 kB / 436.6 MB, free: 36.05 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.21e-05/0.2275, allocations: 17.62 kB / 436.6 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.255e-05/0.2275, allocations: 15.25 kB / 436.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2275, allocations: 0 / 436.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.2275, allocations: 2.969 kB / 436.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.2275, allocations: 7.266 kB / 436.6 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.2277, allocations: 211.6 kB / 436.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.2277, allocations: 0 / 436.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001103/0.2278, allocations: 20.05 kB / 436.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.2278, allocations: 2.688 kB / 436.8 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-06/0.2278, allocations: 4 kB / 436.9 MB, free: 35.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.2278, allocations: 7 kB / 436.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2278, allocations: 0 / 436.9 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002873/0.2281, allocations: 240.6 kB / 437.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.293e-05/0.2281, allocations: 83.95 kB / 437.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.415e-05/0.2282, allocations: 2.844 kB / 437.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000104/0.2283, allocations: 10.23 kB / 437.2 MB, free: 35.52 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.465e-05/0.2283, allocations: 17.12 kB / 437.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-06/0.2283, allocations: 0 / 437.2 MB, free: 35.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.39e-05/0.2284, allocations: 114.1 kB / 437.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2284, allocations: 2.812 kB / 437.3 MB, free: 35.43 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002485/0.2286, allocations: 18.28 kB / 437.3 MB, free: 35.42 MB / 350.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 5.738e-05/0.2287, allocations: 106.1 kB / 437.4 MB, free: 35.32 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003642/0.2291, allocations: 202.3 kB / 437.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.2291, allocations: 0 / 437.6 MB, free: 35.19 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.356e-05/0.2292, allocations: 37 kB / 437.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003321/0.2295, allocations: 24.22 kB / 437.7 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003958/0.2299, allocations: 299.3 kB / 438 MB, free: 34.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.211e-05/0.23, allocations: 0.7045 MB / 438.7 MB, free: 34.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.925e-05/0.2301, allocations: 11.2 kB / 438.7 MB, free: 34.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.119e-05/0.2301, allocations: 13.28 kB / 438.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2301, allocations: 0 / 438.7 MB, free: 34.23 MB / 350.1 MB Notification: Performance of Templates: time 0.002946/0.2331, allocations: 1.148 MB / 439.9 MB, free: 34.13 MB / 350.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=50 -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