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.001345/0.001345, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001452/0.001452, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.379/1.379, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0649/0.0649, allocations: 14.19 MB / 284.7 MB, free: 13.86 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.001483/0.001483, allocations: 68.45 kB / 348.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2343, allocations: 50.12 MB / 398.7 MB, free: 48.74 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002826/0.2371, allocations: 1.802 MB / 400.6 MB, free: 47.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003643/0.2375, allocations: 155.9 kB / 400.7 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001087/0.2376, allocations: 6.25 kB / 400.7 MB, free: 47.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001321/0.2378, allocations: 20.95 kB / 400.7 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001568/0.2379, allocations: 31.25 kB / 400.8 MB, free: 47.15 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.05e-05/0.238, allocations: 44.42 kB / 400.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001978/0.2382, allocations: 125.4 kB / 400.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.2384, allocations: 54.98 kB / 401 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.803e-05/0.2385, allocations: 44.27 kB / 401 MB, free: 46.98 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001081/0.2386, allocations: 58.72 kB / 401.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.046e-05/0.2386, allocations: 13.59 kB / 401.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.195e-05/0.2387, allocations: 10.97 kB / 401.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.226e-05/0.2387, allocations: 18.3 kB / 401.1 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.793e-05/0.2388, allocations: 58.41 kB / 401.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001413/0.2389, allocations: 105 kB / 401.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2389, allocations: 0 / 401.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.2389, allocations: 0 / 401.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.2389, allocations: 1.312 kB / 401.3 MB, free: 46.79 MB / 318.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.0005577/0.2395, allocations: 431.4 kB / 401.7 MB, free: 46.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.2396, allocations: 8.781 kB / 401.7 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.2396, allocations: 16.41 kB / 401.7 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000256/0.2399, allocations: 222 kB / 401.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.459e-05/0.2399, allocations: 3.844 kB / 401.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.2399, allocations: 11.88 kB / 402 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002328/0.2402, allocations: 126.5 kB / 402.1 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.2402, allocations: 3.938 kB / 402.1 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.427e-05/0.2402, allocations: 1.25 kB / 402.1 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/0.2402, allocations: 2.625 kB / 402.1 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.2404, allocations: 56.94 kB / 402.1 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005835/0.241, allocations: 449.3 kB / 402.6 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003813/0.2414, allocations: 117.7 kB / 402.7 MB, free: 45.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2415, allocations: 55.59 kB / 402.8 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.094e-05/0.2415, allocations: 1.219 kB / 402.8 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.28e-05/0.2416, allocations: 36.91 kB / 402.8 MB, free: 45.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2416, allocations: 0 / 402.8 MB, free: 45.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003447/0.2419, allocations: 129.6 kB / 402.9 MB, free: 45.27 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.876e-05/0.2419, allocations: 106.8 kB / 403 MB, free: 45.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.2421, allocations: 151.2 kB / 403.2 MB, free: 45.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.305e-05/0.2421, allocations: 31.08 kB / 403.2 MB, free: 44.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.98e-05/0.2421, allocations: 118.1 kB / 403.3 MB, free: 44.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.918e-05/0.2422, allocations: 26.39 kB / 403.3 MB, free: 44.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.933e-05/0.2422, allocations: 24.3 kB / 403.4 MB, free: 44.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.501e-05/0.2423, allocations: 325.7 kB / 403.7 MB, free: 44.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.334e-05/0.2424, allocations: 24.73 kB / 403.7 MB, free: 44.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.937e-05/0.2424, allocations: 62.95 kB / 403.8 MB, free: 44.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.2426, allocations: 81.53 kB / 403.8 MB, free: 44.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.2426, allocations: 0 / 403.8 MB, free: 44.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003246/0.243, allocations: 143.8 kB / 404 MB, free: 44.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.243, allocations: 5.781 kB / 404 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.243, allocations: 5.406 kB / 404 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001957/0.2432, allocations: 32.92 kB / 404 MB, free: 44.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.743e-05/0.2433, allocations: 18.95 kB / 404.1 MB, free: 44.22 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008595/0.2442, allocations: 1.457 MB / 405.5 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.419e-05/0.2443, allocations: 4.844 kB / 405.5 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.2443, allocations: 2.312 kB / 405.5 MB, free: 42.73 MB / 318.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 7.972e-05/0.2444, allocations: 136.8 kB / 405.6 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.45e-05/0.2444, allocations: 8.344 kB / 405.7 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.842e-05/0.2445, allocations: 19.69 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.2445, allocations: 1.406 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.2445, allocations: 1.219 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.2445, allocations: 1.219 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001888/0.2447, allocations: 212.2 kB / 405.9 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.2447, allocations: 1.062 kB / 405.9 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001289/0.2448, allocations: 17.33 kB / 405.9 MB, free: 42.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2448, allocations: 4 kB / 405.9 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.2448, allocations: 9.484 kB / 405.9 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.027e-06/0.2449, allocations: 1.906 kB / 405.9 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.2449, allocations: 0 / 405.9 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003506/0.2452, allocations: 231.2 kB / 406.1 MB, free: 42.13 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.313e-05/0.2453, allocations: 95.66 kB / 406.2 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.787e-05/0.2453, allocations: 5.375 kB / 406.2 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001087/0.2454, allocations: 3.781 kB / 406.2 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.653e-05/0.2455, allocations: 10.52 kB / 406.3 MB, free: 42.01 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.903e-06/0.2455, allocations: 2.406 kB / 406.3 MB, free: 42.01 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.771e-05/0.2456, allocations: 121 kB / 406.4 MB, free: 41.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2456, allocations: 0 / 406.4 MB, free: 41.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002653/0.2459, allocations: 16.94 kB / 406.4 MB, free: 41.91 MB / 318.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 0.0001098/0.246, allocations: 99.75 kB / 406.5 MB, free: 41.81 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004496/0.2464, allocations: 201.2 kB / 406.7 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2464, allocations: 0 / 406.7 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.969e-05/0.2465, allocations: 34.59 kB / 406.7 MB, free: 41.64 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003341/0.2469, allocations: 40.56 kB / 406.8 MB, free: 41.61 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005007/0.2474, allocations: 241.6 kB / 407 MB, free: 41.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001295/0.2475, allocations: 0.7133 MB / 407.7 MB, free: 40.7 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.627e-05/0.2476, allocations: 5.062 kB / 407.7 MB, free: 40.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.233e-05/0.2476, allocations: 12.91 kB / 407.7 MB, free: 40.69 MB / 318.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2477, allocations: 0 / 407.7 MB, free: 40.69 MB / 318.1 MB Notification: Performance of Templates: time 0.003557/0.2512, allocations: 1.247 MB / 409 MB, free: 40.07 MB / 318.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 -s gbode -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