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.001766/0.001766, allocations: 101.9 kB / 20.49 MB, free: 1.359 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.00225/0.00225, allocations: 215.7 kB / 23.79 MB, free: 4.516 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.608/1.608, allocations: 207.7 MB / 234.6 MB, free: 9.797 MB / 190.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.07094/0.07094, allocations: 14.39 MB / 301.3 MB, free: 7.25 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002145/0.002145, allocations: 75.89 kB / 425 MB, free: 36.24 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1053, allocations: 52.9 MB / 477.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLeadLag): time 0.003363/0.1086, allocations: 1.748 MB / 479.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003641/0.109, allocations: 155.5 kB / 479.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.388e-05/0.1091, allocations: 7.938 kB / 479.8 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000128/0.1092, allocations: 15.8 kB / 479.8 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.1094, allocations: 31.78 kB / 479.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.064e-05/0.1095, allocations: 43.83 kB / 479.9 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000187/0.1097, allocations: 123.7 kB / 480 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.1098, allocations: 53.44 kB / 480.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.361e-05/0.1099, allocations: 51.73 kB / 480.1 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.11, allocations: 51.77 kB / 480.2 MB, free: 12.97 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.547e-05/0.11, allocations: 8 kB / 480.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.244e-05/0.11, allocations: 12 kB / 480.2 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.828e-05/0.1101, allocations: 27.84 kB / 480.2 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.995e-05/0.1101, allocations: 35.8 kB / 480.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.1103, allocations: 115.5 kB / 480.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1103, allocations: 0 / 480.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1103, allocations: 0 / 480.4 MB, free: 12.78 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.1103, allocations: 0 / 480.4 MB, free: 12.78 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.0006362/0.1109, allocations: 353.8 kB / 480.7 MB, free: 12.4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.473e-05/0.111, allocations: 8.031 kB / 480.7 MB, free: 12.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.831e-05/0.111, allocations: 16.84 kB / 480.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.1113, allocations: 162.8 kB / 480.9 MB, free: 12.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.1113, allocations: 8.375 kB / 480.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.99e-05/0.1114, allocations: 12.38 kB / 480.9 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002738/0.1117, allocations: 124.2 kB / 481 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.1117, allocations: 4 kB / 481 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.584e-05/0.1117, allocations: 4 kB / 481 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.079e-05/0.1117, allocations: 4 kB / 481 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.1119, allocations: 55.97 kB / 481.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006222/0.1125, allocations: 365 kB / 481.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004178/0.1129, allocations: 115.8 kB / 481.6 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.113, allocations: 46.56 kB / 481.6 MB, free: 11.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.1131, allocations: 7.984 kB / 481.6 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1131, allocations: 42.5 kB / 481.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.252e-06/0.1131, allocations: 0 / 481.7 MB, free: 11.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004003/0.1135, allocations: 113.5 kB / 481.8 MB, free: 11.2 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.113e-05/0.1136, allocations: 114.8 kB / 481.9 MB, free: 11.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.1137, allocations: 154.7 kB / 482 MB, free: 10.9 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.1137, allocations: 25.7 kB / 482.1 MB, free: 10.87 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.31e-05/0.1138, allocations: 112 kB / 482.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.975e-05/0.1138, allocations: 35.72 kB / 482.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.274e-05/0.1139, allocations: 25.72 kB / 482.2 MB, free: 10.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.114, allocations: 322.8 kB / 482.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000104/0.1142, allocations: 19.98 kB / 482.6 MB, free: 10.34 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001547/0.1143, allocations: 116.5 kB / 482.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.1145, allocations: 79.39 kB / 482.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.1145, allocations: 0 / 482.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000401/0.1149, allocations: 142.3 kB / 482.9 MB, free: 9.961 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.676e-05/0.1149, allocations: 4 kB / 482.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.1149, allocations: 0 / 482.9 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000228/0.1151, allocations: 40.92 kB / 482.9 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1153, allocations: 16.3 kB / 483 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001302/0.1166, allocations: 1.331 MB / 484.3 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.1167, allocations: 11.89 kB / 484.3 MB, free: 8.445 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.447e-05/0.1167, allocations: 4.062 kB / 484.3 MB, free: 8.441 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 0.0001221/0.1168, allocations: 129.8 kB / 484.4 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.734e-05/0.1168, allocations: 11.95 kB / 484.4 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.803e-05/0.1169, allocations: 12.41 kB / 484.5 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.1169, allocations: 4 kB / 484.5 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.1169, allocations: 3.938 kB / 484.5 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.856e-06/0.1169, allocations: 0 / 484.5 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000208/0.1171, allocations: 137.3 kB / 484.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1171, allocations: 0 / 484.6 MB, free: 8.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001262/0.1172, allocations: 23.98 kB / 484.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.1172, allocations: 0 / 484.6 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.1172, allocations: 4 kB / 484.6 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.268e-06/0.1172, allocations: 4 kB / 484.6 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1172, allocations: 0 / 484.6 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001525/0.1188, allocations: 1.273 MB / 485.9 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.596e-05/0.1188, allocations: 19.81 kB / 485.9 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.1188, allocations: 4 kB / 485.9 MB, free: 6.672 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.1189, allocations: 7.984 kB / 485.9 MB, free: 6.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.296e-05/0.119, allocations: 11.94 kB / 485.9 MB, free: 6.652 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.566e-06/0.119, allocations: 3.984 kB / 485.9 MB, free: 6.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.758e-05/0.1191, allocations: 120 kB / 486.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1191, allocations: 0 / 486.1 MB, free: 6.531 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003425/0.1194, allocations: 24 kB / 486.1 MB, free: 6.508 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 0.0001637/0.1196, allocations: 95.34 kB / 486.2 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005224/0.1201, allocations: 198.5 kB / 486.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.1201, allocations: 0 / 486.4 MB, free: 6.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.1202, allocations: 31.92 kB / 486.4 MB, free: 6.168 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003346/0.1205, allocations: 32.05 kB / 486.4 MB, free: 6.137 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007605/0.1213, allocations: 379.8 kB / 486.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.773e-05/0.1214, allocations: 89.19 kB / 486.9 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.733e-05/0.1215, allocations: 12.48 kB / 486.9 MB, free: 5.602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.1215, allocations: 15.44 kB / 486.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1215, allocations: 0 / 486.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of Templates: time 0.004743/0.1262, allocations: 1.502 MB / 488.4 MB, free: 4.102 MB / 350.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=50 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLeadLag.pipe 2>&1) [Timeout 50] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.023129177978262]