Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0003109/0.0003109, allocations: 0 / 0, free: 0 / 0 " [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.0003336/0.0003336, allocations: 0 / 0, free: 0 / 0 " [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 0.2234/0.2234, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 180] 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.01802/0.01802, allocations: 0 / 0, free: 0 / 0 " [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: simulate(PowerGrids.Controls.Test.TestLimiterWithLag,startTime=0,stopTime=30,tolerance=1e-06,numberOfIntervals=500,outputFormat="mat",variableFilter="HfSignal.amplitude|HfSignal.falling|HfSignal.nperiod|HfSignal.offset|HfSignal.period|HfSignal.rising|HfSignal.startTime|HfSignal.width|HfSignal.y|LfSignal.amplitude|LfSignal.falling|LfSignal.nperiod|LfSignal.offset|LfSignal.period|LfSignal.rising|LfSignal.startTime|LfSignal.width|LfSignal.y|limiterWithLag.LagMax|limiterWithLag.LagMin|limiterWithLag.stateStart|limiterWithLag.u|limiterWithLag.uMax|limiterWithLag.uMin|limiterWithLag.useLag|limiterWithLag.y|sum.k.[0-9,]+.|sum.nin|sum.u.[0-9,]+.|sum.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") simulate(PowerGrids.Controls.Test.TestLimiterWithLag,startTime=0,stopTime=30,tolerance=1e-06,numberOfIntervals=500,outputFormat="mat",variableFilter="HfSignal.amplitude|HfSignal.falling|HfSignal.nperiod|HfSignal.offset|HfSignal.period|HfSignal.rising|HfSignal.startTime|HfSignal.width|HfSignal.y|LfSignal.amplitude|LfSignal.falling|LfSignal.nperiod|LfSignal.offset|LfSignal.period|LfSignal.rising|LfSignal.startTime|LfSignal.width|LfSignal.y|limiterWithLag.LagMax|limiterWithLag.LagMin|limiterWithLag.stateStart|limiterWithLag.u|limiterWithLag.uMax|limiterWithLag.uMin|limiterWithLag.useLag|limiterWithLag.y|sum.k.[0-9,]+.|sum.nin|sum.u.[0-9,]+.|sum.y|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag",simflags="-abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS") [Timeout 900] "Notification: Performance of FrontEnd - loaded program: time 6.81e-07/6.81e-07, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.582e-05/1.65e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(PowerGrids.Controls.Test.TestLimiterWithLag): time 0.004709/0.004725, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.002168/0.006893, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0001349/0.007028, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.007137, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0002995/0.007437, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0003695/0.007806, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.0003567/0.008163, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.008263, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0003433/0.008606, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0002089/0.008815, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 8.943e-05/0.008905, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 4.566e-05/0.00895, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 7.208e-05/0.009022, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0001336/0.009156, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0004005/0.009556, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 2.764e-05/0.009584, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 2.415e-06/0.009586, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.062e-05/0.009597, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001695/0.01129, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 9.907e-05/0.01139, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002424/0.01163, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005012/0.01213, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.824e-05/0.01222, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 7.601e-05/0.0123, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.000796/0.01309, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.01311, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.932e-05/0.01317, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-06/0.01317, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004093/0.01358, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001368/0.01495, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.0004474/0.0154, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.0002477/0.01565, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/0.01568, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005636/0.01624, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=19): time 4.017e-06/0.01624, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=19): time 0.001643/0.01789, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 6.519e-05/0.01795, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003762/0.01833, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 9.14e-05/0.01842, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.01854, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0001059/0.01864, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002425/0.01888, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.000134/0.01902, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003201/0.01934, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.01967, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0005264/0.02019, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.0202, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=26) (initialization): time 0.001253/0.02145, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 5.922e-05/0.02151, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.02152, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 1.561e-05/0.02153, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/0.02183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/0.02183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002952/0.02213, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.757e-05/0.02219, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0003924/0.02259, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000281/0.02287, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004542/0.02332, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.416e-06/0.02333, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=26) (initialization_lambda0): time 0.001179/0.0245, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 5.567e-05/0.02456, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.02457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 7.004e-06/0.02457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.02483, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.59e-06/0.02484, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002907/0.02513, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.25e-05/0.02519, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 22 (HfSignal.count,$PRE.HfSignal.count,HfSignal.T_start,$PRE.HfSignal.T_start,LfSignal.count,$PRE.LfSignal.count,LfSignal.T_start,$PRE.LfSignal.T_start,limiterWithLag.satON,$PRE.limiterWithLag.satON,limiterWithLag.saturationLimitReached,$PRE.limiterWithLag.saturationLimitReached,limiterWithLag.state,$PRE.limiterWithLag.state,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 3 * 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 prepare postOptimizeDAE: time 0.0002876/0.02548, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001642/0.02564, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.585e-05/0.02572, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.02572, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.02573, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.02574, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004656/0.0262, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.02621, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002084/0.02641, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/0.02642, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.912e-05/0.0265, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.02651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.02651, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002367/0.02888, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/0.02901, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001862/0.0292, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/0.0295, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003975/0.0299, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-05/0.02997, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0002064/0.03017, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 4.378e-06/0.03018, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.002275/0.03245, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition2,$whenCondition1,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,limiterWithLag.state,limiterWithLag.saturationLimitReached,limiterWithLag.satON,LfSignal.T_start,LfSignal.count,HfSignal.T_start,HfSignal.count) * Number of discrete states: 11 (LfSignal.count,HfSignal.count,limiterWithLag.satON,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,limiterWithLag.saturationLimitReached,limiterWithLag.state,$whenCondition3) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 4 * 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.0003458/0.0328, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.001392/0.03419, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.0342, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.0005038/0.0347, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.03571, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.0374, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.03752, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.000212/0.03773, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.03797, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 2.584e-05/0.03799, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.002259/0.04025, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 900] diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Controls.Test.TestLimiterWithLag_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Controls.Test.TestLimiterWithLag_res.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 1.2509569101966918]