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.001169/0.001169, allocations: 102 kB / 16.35 MB, free: 5.875 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.001102/0.001102, allocations: 196 kB / 17.3 MB, free: 5.516 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.704/1.704, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06257/0.06257, allocations: 14.18 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.001955/0.001956, allocations: 67.91 kB / 348.6 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.341, 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.00285/0.3439, allocations: 1.802 MB / 400.6 MB, free: 47.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003323/0.3442, allocations: 159.4 kB / 400.7 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.596e-05/0.3443, allocations: 2.781 kB / 400.7 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.3445, allocations: 21.14 kB / 400.7 MB, free: 47.17 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001376/0.3446, allocations: 30.33 kB / 400.8 MB, free: 47.14 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.012e-05/0.3447, allocations: 37.58 kB / 400.8 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001921/0.3449, allocations: 128.3 kB / 400.9 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.3451, allocations: 55.06 kB / 401 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.817e-05/0.3452, allocations: 52.3 kB / 401 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001119/0.3453, allocations: 52.27 kB / 401.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.782e-05/0.3453, allocations: 9.062 kB / 401.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.333e-05/0.3454, allocations: 10.25 kB / 401.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.181e-05/0.3454, allocations: 26.33 kB / 401.1 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.938e-05/0.3454, allocations: 50.11 kB / 401.2 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001286/0.3456, allocations: 112.8 kB / 401.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3456, allocations: 1.375 kB / 401.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3456, allocations: 0 / 401.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.3456, allocations: 4 kB / 401.3 MB, free: 46.78 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.0005153/0.3461, allocations: 424.2 kB / 401.7 MB, free: 46.36 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3462, allocations: 8.75 kB / 401.7 MB, free: 46.36 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.057e-05/0.3462, allocations: 16.38 kB / 401.7 MB, free: 46.35 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.3465, allocations: 217.6 kB / 401.9 MB, free: 46.12 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.485e-05/0.3465, allocations: 8.25 kB / 401.9 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.3465, allocations: 15.94 kB / 402 MB, free: 46.11 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002106/0.3467, allocations: 121.2 kB / 402.1 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.3467, allocations: 1.344 kB / 402.1 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.296e-05/0.3468, allocations: 5.344 kB / 402.1 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3468, allocations: 1.156 kB / 402.1 MB, free: 46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001688/0.347, allocations: 61.95 kB / 402.1 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005199/0.3475, allocations: 452.9 kB / 402.6 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003379/0.3478, allocations: 126.1 kB / 402.7 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.462e-05/0.3479, allocations: 43.62 kB / 402.8 MB, free: 45.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.791e-05/0.348, allocations: 4.922 kB / 402.8 MB, free: 45.38 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.478e-05/0.348, allocations: 44.47 kB / 402.8 MB, free: 45.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.192e-06/0.348, allocations: 0 / 402.8 MB, free: 45.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003398/0.3483, allocations: 120.4 kB / 402.9 MB, free: 45.26 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.3484, allocations: 108 kB / 403 MB, free: 45.13 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.3485, allocations: 148.2 kB / 403.2 MB, free: 45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.3485, allocations: 26.92 kB / 403.2 MB, free: 44.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.616e-05/0.3485, allocations: 122.2 kB / 403.3 MB, free: 44.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.823e-05/0.3486, allocations: 26.08 kB / 403.3 MB, free: 44.83 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.3486, allocations: 25.38 kB / 403.4 MB, free: 44.81 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.961e-05/0.3487, allocations: 325.5 kB / 403.7 MB, free: 44.48 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.77e-05/0.3488, allocations: 19.64 kB / 403.7 MB, free: 44.48 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001002/0.3489, allocations: 70.38 kB / 403.8 MB, free: 44.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.349, allocations: 77.56 kB / 403.8 MB, free: 44.35 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.349, allocations: 1.094 kB / 403.9 MB, free: 44.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003233/0.3494, allocations: 143.8 kB / 404 MB, free: 44.25 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.3494, allocations: 5.438 kB / 404 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.507e-06/0.3494, allocations: 1.5 kB / 404 MB, free: 44.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001573/0.3496, allocations: 42.36 kB / 404 MB, free: 44.22 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.25e-05/0.3497, allocations: 17.3 kB / 404.1 MB, free: 44.21 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008414/0.3505, allocations: 1.453 MB / 405.5 MB, free: 42.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.454e-05/0.3506, allocations: 12.66 kB / 405.5 MB, free: 42.72 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.179e-05/0.3506, allocations: 2.469 kB / 405.5 MB, free: 42.72 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 6.928e-05/0.3507, allocations: 120.4 kB / 405.6 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.604e-05/0.3508, allocations: 13.73 kB / 405.7 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.65e-05/0.3508, allocations: 22.53 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.746e-06/0.3508, allocations: 2.188 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.3508, allocations: 1 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3508, allocations: 1.062 kB / 405.7 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.351, allocations: 216.1 kB / 405.9 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.351, allocations: 1.062 kB / 405.9 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001186/0.3511, allocations: 16.83 kB / 405.9 MB, free: 42.33 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.3511, allocations: 5.094 kB / 405.9 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.224e-05/0.3512, allocations: 9.094 kB / 405.9 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3512, allocations: 1.031 kB / 405.9 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3512, allocations: 1.062 kB / 405.9 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002916/0.3515, allocations: 230.1 kB / 406.1 MB, free: 42.12 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.461e-05/0.3515, allocations: 84.3 kB / 406.2 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.3515, allocations: 6 kB / 406.2 MB, free: 42.02 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.3516, allocations: 10.95 kB / 406.2 MB, free: 42.01 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.555e-05/0.3517, allocations: 11.73 kB / 406.3 MB, free: 42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.3517, allocations: 5.375 kB / 406.3 MB, free: 42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.012e-05/0.3518, allocations: 117.8 kB / 406.4 MB, free: 41.91 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3518, allocations: 0 / 406.4 MB, free: 41.91 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002575/0.3521, allocations: 19.59 kB / 406.4 MB, free: 41.9 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 8.608e-05/0.3521, allocations: 99.92 kB / 406.5 MB, free: 41.8 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004162/0.3526, allocations: 205.2 kB / 406.7 MB, free: 41.64 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.3526, allocations: 1.25 kB / 406.7 MB, free: 41.64 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.802e-05/0.3527, allocations: 34.08 kB / 406.7 MB, free: 41.63 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003315/0.353, allocations: 23.23 kB / 406.8 MB, free: 41.62 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004833/0.3535, allocations: 240.6 kB / 407 MB, free: 41.42 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001453/0.3537, allocations: 0.7102 MB / 407.7 MB, free: 40.71 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 6.102e-05/0.3537, allocations: 12.83 kB / 407.7 MB, free: 40.7 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.726e-05/0.3538, allocations: 12.25 kB / 407.7 MB, free: 40.69 MB / 318.1 MB Notification: Performance of SimCode: time 2.71e-07/0.3538, allocations: 3.938 kB / 407.7 MB, free: 40.69 MB / 318.1 MB Notification: Performance of Templates: time 0.003796/0.3576, allocations: 1.245 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 cvode -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