Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001453/0.001453, allocations: 108.4 kB / 17.04 MB, free: 5.816 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.001618/0.001618, allocations: 196 kB / 17.98 MB, free: 5.023 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.347/1.347, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06116/0.06116, allocations: 14.17 MB / 285.4 MB, free: 13.87 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.002288/0.002289, allocations: 72.47 kB / 349.3 MB, free: 13.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2565/0.2588, allocations: 50.11 MB / 399.4 MB, free: 48.78 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.002745/0.2616, allocations: 1.807 MB / 401.2 MB, free: 47.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003136/0.262, allocations: 158.6 kB / 401.4 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.912e-05/0.2621, allocations: 3.375 kB / 401.4 MB, free: 47.23 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.2622, allocations: 20.95 kB / 401.4 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001344/0.2623, allocations: 30.48 kB / 401.4 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.75e-05/0.2624, allocations: 36.33 kB / 401.5 MB, free: 47.15 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.2626, allocations: 132.9 kB / 401.6 MB, free: 47.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001334/0.2627, allocations: 54.2 kB / 401.7 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.08e-05/0.2628, allocations: 49.56 kB / 401.7 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.442e-05/0.2629, allocations: 50.7 kB / 401.8 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.2629, allocations: 14.69 kB / 401.8 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.789e-05/0.2629, allocations: 9.781 kB / 401.8 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.519e-05/0.263, allocations: 22.81 kB / 401.8 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.688e-05/0.263, allocations: 57.39 kB / 401.9 MB, free: 46.9 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001247/0.2632, allocations: 101.1 kB / 402 MB, free: 46.83 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.2632, allocations: 1.281 kB / 402 MB, free: 46.83 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2632, allocations: 0 / 402 MB, free: 46.83 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.2632, allocations: 0 / 402 MB, free: 46.83 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.0005233/0.2637, allocations: 436.5 kB / 402.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.2638, allocations: 8.844 kB / 402.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.38e-05/0.2638, allocations: 15.06 kB / 402.4 MB, free: 46.39 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002318/0.264, allocations: 210.9 kB / 402.6 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.2641, allocations: 8.438 kB / 402.6 MB, free: 46.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.383e-05/0.2641, allocations: 10.34 kB / 402.6 MB, free: 46.15 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000224/0.2643, allocations: 130.9 kB / 402.8 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.2644, allocations: 3.938 kB / 402.8 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/0.2644, allocations: 1.031 kB / 402.8 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.2644, allocations: 6.578 kB / 402.8 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001724/0.2646, allocations: 61.88 kB / 402.8 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.2651, allocations: 452.8 kB / 403.3 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003449/0.2654, allocations: 118 kB / 403.4 MB, free: 45.46 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.448e-05/0.2655, allocations: 52.12 kB / 403.4 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.68e-05/0.2656, allocations: 1.344 kB / 403.4 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.2656, allocations: 39.86 kB / 403.5 MB, free: 45.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.2656, allocations: 3.938 kB / 403.5 MB, free: 45.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003495/0.2659, allocations: 123.4 kB / 403.6 MB, free: 45.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.702e-05/0.266, allocations: 104.9 kB / 403.7 MB, free: 45.17 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.2661, allocations: 152.3 kB / 403.9 MB, free: 45.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.237e-05/0.2661, allocations: 29.7 kB / 403.9 MB, free: 45 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.645e-05/0.2662, allocations: 118.4 kB / 404 MB, free: 44.89 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.2662, allocations: 27.61 kB / 404 MB, free: 44.87 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.802e-05/0.2662, allocations: 19.88 kB / 404.1 MB, free: 44.85 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.478e-05/0.2663, allocations: 325.3 kB / 404.4 MB, free: 44.52 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.303e-05/0.2664, allocations: 20.95 kB / 404.4 MB, free: 44.52 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.798e-05/0.2665, allocations: 66.23 kB / 404.5 MB, free: 44.45 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.2666, allocations: 82.03 kB / 404.5 MB, free: 44.39 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2666, allocations: 0 / 404.5 MB, free: 44.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003403/0.267, allocations: 144.1 kB / 404.7 MB, free: 44.29 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.408e-05/0.267, allocations: 6.312 kB / 404.7 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.267, allocations: 4 kB / 404.7 MB, free: 44.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/0.2672, allocations: 33.55 kB / 404.7 MB, free: 44.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.931e-05/0.2673, allocations: 19.05 kB / 404.7 MB, free: 44.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008602/0.2682, allocations: 1.456 MB / 406.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.2683, allocations: 9.172 kB / 406.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.2684, allocations: 3.219 kB / 406.2 MB, free: 42.77 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.864e-05/0.2684, allocations: 127.2 kB / 406.3 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.2685, allocations: 9.5 kB / 406.3 MB, free: 42.63 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.805e-05/0.2685, allocations: 19.75 kB / 406.4 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.2685, allocations: 1.219 kB / 406.4 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.955e-06/0.2685, allocations: 4.984 kB / 406.4 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.95e-06/0.2685, allocations: 1.25 kB / 406.4 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001728/0.2687, allocations: 212.5 kB / 406.6 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2687, allocations: 1 kB / 406.6 MB, free: 42.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001176/0.2688, allocations: 24.41 kB / 406.6 MB, free: 42.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.2688, allocations: 5.062 kB / 406.6 MB, free: 42.36 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.256e-05/0.2689, allocations: 5.125 kB / 406.6 MB, free: 42.36 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.2689, allocations: 5.156 kB / 406.6 MB, free: 42.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2689, allocations: 1.438 kB / 406.6 MB, free: 42.35 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001101/0.27, allocations: 1.396 MB / 408 MB, free: 40.98 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.079e-05/0.27, allocations: 92.78 kB / 408.1 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.624e-05/0.27, allocations: 1.281 kB / 408.1 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001082/0.2702, allocations: 7.875 kB / 408.1 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.2702, allocations: 7.203 kB / 408.1 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.114e-06/0.2702, allocations: 2.094 kB / 408.1 MB, free: 40.86 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.449e-05/0.2703, allocations: 124.7 kB / 408.2 MB, free: 40.76 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2703, allocations: 0 / 408.2 MB, free: 40.76 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000347/0.2707, allocations: 33.91 kB / 408.3 MB, free: 40.75 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 7.815e-05/0.2707, allocations: 100.5 kB / 408.4 MB, free: 40.65 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004109/0.2712, allocations: 193.2 kB / 408.6 MB, free: 40.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.2712, allocations: 0 / 408.6 MB, free: 40.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 9.432e-05/0.2713, allocations: 33.86 kB / 408.6 MB, free: 40.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003045/0.2716, allocations: 30.78 kB / 408.6 MB, free: 40.47 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004824/0.2721, allocations: 369 kB / 409 MB, free: 40.14 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000112/0.2722, allocations: 0.715 MB / 409.7 MB, free: 39.43 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 7.029e-05/0.2723, allocations: 5.906 kB / 409.7 MB, free: 39.43 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.471e-05/0.2723, allocations: 16.27 kB / 409.7 MB, free: 39.41 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2723, allocations: 4 kB / 409.7 MB, free: 39.41 MB / 318.1 MB Notification: Performance of Templates: time 0.003628/0.276, allocations: 1.303 MB / 411 MB, free: 38.77 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.sim & ./PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag -lv=LOG_STATS -s=dassl -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_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_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches