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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001403/0.001403, allocations: 74.98 kB / 19.94 MB, free: 1.762 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001837/0.001837, allocations: 170.9 kB / 23.23 MB, free: 4.875 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.404/1.404, allocations: 158.6 MB / 185 MB, free: 6.395 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06547/0.06547, allocations: 10.65 MB / 247.9 MB, free: 10.42 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PowerGrids.Controls.Test.TestLeadLag,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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=500,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 371.7 MB, free: 18.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.44e-05/2.602e-05, allocations: 2.281 kB / 371.7 MB, free: 18.58 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.00242/0.002446, allocations: 1.752 MB / 373.5 MB, free: 16.82 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003445/0.00279, allocations: 147.5 kB / 373.6 MB, free: 16.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.002892, allocations: 11.94 kB / 373.6 MB, free: 16.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.003027, allocations: 19.8 kB / 373.7 MB, free: 16.64 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001564/0.003183, allocations: 31.72 kB / 373.7 MB, free: 16.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.836e-05/0.003262, allocations: 35.95 kB / 373.7 MB, free: 16.58 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001431/0.003405, allocations: 131.6 kB / 373.8 MB, free: 16.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.003535, allocations: 45.48 kB / 373.9 MB, free: 16.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.764e-05/0.003613, allocations: 67.83 kB / 374 MB, free: 16.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.593e-05/0.003708, allocations: 31.89 kB / 374 MB, free: 16.31 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.126e-05/0.00374, allocations: 19.94 kB / 374 MB, free: 16.29 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.721e-05/0.003757, allocations: 8 kB / 374 MB, free: 16.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.94e-05/0.003786, allocations: 27.84 kB / 374 MB, free: 16.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.615e-05/0.003832, allocations: 31.92 kB / 374.1 MB, free: 16.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001384/0.003971, allocations: 107.6 kB / 374.2 MB, free: 16.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.985e-06/0.003974, allocations: 4 kB / 374.2 MB, free: 16.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.003975, allocations: 0 / 374.2 MB, free: 16.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.127e-06/0.003979, allocations: 4 kB / 374.2 MB, free: 16.11 MB / 302.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.0005112/0.00449, allocations: 353.7 kB / 374.5 MB, free: 15.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.004522, allocations: 8.031 kB / 374.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.908e-05/0.004571, allocations: 20.83 kB / 374.6 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002253/0.004796, allocations: 154.2 kB / 374.7 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.004814, allocations: 12.31 kB / 374.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.9e-05/0.004843, allocations: 4.375 kB / 374.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.005055, allocations: 120.7 kB / 374.8 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.005065, allocations: 4.172 kB / 374.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.005079, allocations: 8.125 kB / 374.9 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.005084, allocations: 8 kB / 374.9 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001713/0.005255, allocations: 59.89 kB / 374.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004849/0.00574, allocations: 369.1 kB / 375.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003491/0.006089, allocations: 115.8 kB / 375.4 MB, free: 14.76 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.135e-05/0.006181, allocations: 50.61 kB / 375.4 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.988e-05/0.0062, allocations: 7.938 kB / 375.5 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.484e-05/0.006215, allocations: 34.56 kB / 375.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.006217, allocations: 0 / 375.5 MB, free: 14.65 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.000352/0.006569, allocations: 117.5 kB / 375.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/0.006602, allocations: 110.8 kB / 375.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.935e-05/0.006701, allocations: 153.9 kB / 375.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.335e-05/0.006714, allocations: 29.7 kB / 375.9 MB, free: 14.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.052e-05/0.006765, allocations: 124.2 kB / 376 MB, free: 14.07 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.006787, allocations: 27.73 kB / 376 MB, free: 14.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.868e-05/0.006826, allocations: 21.72 kB / 376.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.63e-05/0.006882, allocations: 322.8 kB / 376.4 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.221e-05/0.006964, allocations: 19.98 kB / 376.4 MB, free: 13.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001004/0.007065, allocations: 124.5 kB / 376.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000161/0.007226, allocations: 75.7 kB / 376.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.007227, allocations: 0 / 376.6 MB, free: 13.44 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0003212/0.007548, allocations: 142.2 kB / 376.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.007562, allocations: 4 kB / 376.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.007567, allocations: 0 / 376.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002091/0.007776, allocations: 40.94 kB / 376.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.366e-05/0.00787, allocations: 15.92 kB / 376.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007843/0.008654, allocations: 1.323 MB / 378.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.15e-05/0.008745, allocations: 15.91 kB / 378.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.08e-05/0.008756, allocations: 4 kB / 378.1 MB, free: 11.79 MB / 302.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.801e-05/0.008824, allocations: 127.8 kB / 378.3 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.233e-05/0.008857, allocations: 11.95 kB / 378.3 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.264e-05/0.008879, allocations: 8.469 kB / 378.3 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.008881, allocations: 4.188 kB / 378.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.252e-06/0.008882, allocations: 0 / 378.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.927e-06/0.008886, allocations: 7.922 kB / 378.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.009015, allocations: 145.2 kB / 378.4 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.009016, allocations: 4 kB / 378.4 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.00914, allocations: 15.98 kB / 378.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.009142, allocations: 0 / 378.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.067e-05/0.009153, allocations: 8.062 kB / 378.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.009155, allocations: 8 kB / 378.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.009157, allocations: 3.938 kB / 378.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000983/0.01014, allocations: 1.265 MB / 379.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.662e-05/0.01016, allocations: 19.97 kB / 379.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.492e-05/0.01017, allocations: 0 / 379.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001007/0.01027, allocations: 11.97 kB / 379.8 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.43e-05/0.01032, allocations: 15.97 kB / 379.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.46e-06/0.01032, allocations: 0 / 379.8 MB, free: 9.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.98e-05/0.01038, allocations: 115.3 kB / 379.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01038, allocations: 0 / 379.9 MB, free: 9.875 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003392/0.01072, allocations: 24 kB / 379.9 MB, free: 9.852 MB / 302.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.873e-05/0.01081, allocations: 95.23 kB / 380 MB, free: 9.746 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004297/0.01124, allocations: 194.6 kB / 380.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.01124, allocations: 0 / 380.2 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.227e-05/0.01133, allocations: 31.92 kB / 380.2 MB, free: 9.512 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003228/0.01166, allocations: 27.97 kB / 380.3 MB, free: 9.488 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005196/0.01218, allocations: 380.8 kB / 380.6 MB, free: 9.074 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.183e-05/0.01224, allocations: 93.3 kB / 380.7 MB, free: 8.961 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.618e-05/0.01229, allocations: 8.5 kB / 380.7 MB, free: 8.953 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.798e-05/0.01233, allocations: 16.5 kB / 380.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.01233, allocations: 0 / 380.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of Templates: time 0.004139/0.01647, allocations: 1.432 MB / 382.2 MB, free: 7.516 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.makefile [Timeout 660] (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 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLeadLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.367799956351519]