Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.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) Ignoring simflag -noemit -emit_protected=() since it seems broken on HelloWorld Running command: translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") translateModel(PowerGrids.Electrical.Test.TestTapChangerLogicMax,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004626/0.004626, allocations: 103 kB / 15.88 MB, free: 6.332 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.001036/0.001036, allocations: 199.3 kB / 16.79 MB, free: 6.258 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.291/1.291, allocations: 205.1 MB / 222.7 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05996/0.05996, allocations: 14.15 MB / 284.1 MB, free: 7.172 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.001346/0.001346, allocations: 67.91 kB / 346.4 MB, free: 18.47 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08138/0.08274, allocations: 50.14 MB / 396.5 MB, free: 308 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002524/0.0853, allocations: 1.484 MB / 398 MB, free: 14.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000887/0.0862, allocations: 0.5466 MB / 398.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.974e-05/0.08625, allocations: 0 / 398.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.01e-05/0.08628, allocations: 0 / 398.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.646e-05/0.08638, allocations: 23.84 kB / 398.6 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001853/0.08657, allocations: 59.88 kB / 398.7 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001666/0.08675, allocations: 179.6 kB / 398.8 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.122e-05/0.08681, allocations: 11.98 kB / 398.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.08692, allocations: 95.78 kB / 398.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.08704, allocations: 95.67 kB / 399 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.152e-05/0.08709, allocations: 12 kB / 399 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.354e-05/0.08713, allocations: 12 kB / 399 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.831e-05/0.0872, allocations: 55.84 kB / 399.1 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001063/0.08732, allocations: 83.73 kB / 399.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.08743, allocations: 88.09 kB / 399.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.08744, allocations: 0 / 399.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.08745, allocations: 0 / 399.3 MB, free: 13.55 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.08746, allocations: 0 / 399.3 MB, free: 13.55 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009646/0.08843, allocations: 0.5535 MB / 399.8 MB, free: 12.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.08847, allocations: 16.02 kB / 399.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.335e-05/0.08857, allocations: 16.84 kB / 399.9 MB, free: 12.91 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.08871, allocations: 180.2 kB / 400 MB, free: 12.7 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.102e-05/0.08873, allocations: 12.36 kB / 400 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.435e-05/0.08881, allocations: 32.33 kB / 400.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000568/0.08939, allocations: 377.4 kB / 400.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.166e-06/0.0894, allocations: 0 / 400.4 MB, free: 12.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.997e-05/0.08946, allocations: 15.98 kB / 400.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.08947, allocations: 0 / 400.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.08967, allocations: 67.94 kB / 400.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003977/0.09008, allocations: 372.6 kB / 400.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002696/0.09036, allocations: 170.5 kB / 401.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002416/0.0906, allocations: 160.8 kB / 401.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.09062, allocations: 4 kB / 401.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007472/0.09138, allocations: 0.5231 MB / 401.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.573e-06/0.09139, allocations: 0 / 401.7 MB, free: 10.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009644/0.09236, allocations: 0.6535 MB / 402.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.62e-05/0.09242, allocations: 67.41 kB / 402.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001068/0.09253, allocations: 127.2 kB / 402.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.618e-05/0.09258, allocations: 49.62 kB / 402.6 MB, free: 9.984 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.297e-05/0.09265, allocations: 92.7 kB / 402.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.334e-05/0.09272, allocations: 71.22 kB / 402.8 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.971e-05/0.09282, allocations: 61.69 kB / 402.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.09294, allocations: 326.8 kB / 403.2 MB, free: 9.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.09309, allocations: 88.3 kB / 403.3 MB, free: 9.34 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001921/0.09329, allocations: 151.4 kB / 403.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003331/0.09363, allocations: 241.7 kB / 403.6 MB, free: 8.914 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5e-06/0.09364, allocations: 4 kB / 403.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003486/0.094, allocations: 245.1 kB / 403.9 MB, free: 8.664 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.424e-05/0.09402, allocations: 4 kB / 403.9 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.09403, allocations: 4 kB / 403.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.09405, allocations: 0 / 403.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.891e-05/0.09414, allocations: 19.92 kB / 403.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.09416, allocations: 0 / 403.9 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.09438, allocations: 44.09 kB / 404 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.09441, allocations: 15.92 kB / 404 MB, free: 8.578 MB / 302.1 MB Warning: Assuming fixed start value for the following 4 variables: locked:DISCRETE(start = lockedStart fixed = true ) "whether the tap-changer/phase-shifter is locked" type: Boolean valueUnderStop:DISCRETE(start = false fixed = true protected = true ) "whether the monitored signal is under the stop limit" type: Boolean valueAboveMax:DISCRETE(start = false fixed = true protected = true ) "wheter the monitored signal is above the maximum limit" type: Boolean running:DISCRETE(start = runningStart fixed = true ) "whether the tap-changer/phase-shifter is running" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 39 ($PRE.locked,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.running,tValueAboveMaxWhileRunning,$PRE.tValueAboveMaxWhileRunning,tTapMoved,$PRE.tTapMoved,lookingToDecreaseTap,lookingToIncreaseTap,tap,$PRE.tap,state,$PRE.state,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition21,$whenCondition20,$whenCondition19,valueAboveMax,valueUnderStop,locked,running) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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 prepare postOptimizeDAE: time 0.0001835/0.0946, allocations: 157.2 kB / 404.1 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.506e-05/0.09466, allocations: 27.8 kB / 404.2 MB, free: 8.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.234e-05/0.09474, allocations: 37.62 kB / 404.2 MB, free: 8.355 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.09475, allocations: 4 kB / 404.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.09476, allocations: 3.938 kB / 404.2 MB, free: 8.348 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.661e-06/0.09477, allocations: 3.984 kB / 404.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002438/0.09502, allocations: 273.4 kB / 404.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.09503, allocations: 0 / 404.5 MB, free: 8.027 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.955e-05/0.09507, allocations: 4 kB / 404.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.487e-06/0.09507, allocations: 4 kB / 404.5 MB, free: 8.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.39e-05/0.09512, allocations: 31.94 kB / 404.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.548e-06/0.09513, allocations: 7.922 kB / 404.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.09514, allocations: 0 / 404.5 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007286/0.09587, allocations: 0.567 MB / 405.1 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001356/0.09602, allocations: 112.9 kB / 405.2 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.002e-05/0.09611, allocations: 23.95 kB / 405.2 MB, free: 7.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/0.09633, allocations: 43.95 kB / 405.3 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001972/0.09653, allocations: 83.81 kB / 405.3 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.935e-05/0.09659, allocations: 39.97 kB / 405.4 MB, free: 7.078 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.064e-05/0.09664, allocations: 99.27 kB / 405.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.09665, allocations: 0 / 405.5 MB, free: 6.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002837/0.09694, allocations: 79.97 kB / 405.6 MB, free: 6.902 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,state,locked,tap,lookingToIncreaseTap,lookingToDecreaseTap,tTapMoved,valueUnderStop,valueAboveMax,tValueAboveMaxWhileRunning) * Number of discrete states: 6 (valueAboveMax,tap,locked,state,valueUnderStop,tTapMoved) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001344/0.09708, allocations: 133.4 kB / 405.7 MB, free: 6.766 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004791/0.09756, allocations: 300.9 kB / 406 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.09757, allocations: 0 / 406 MB, free: 6.473 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006054/0.09819, allocations: 0.7186 MB / 406.7 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003019/0.0985, allocations: 62.69 kB / 406.8 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009632/0.09947, allocations: 487.3 kB / 407.2 MB, free: 5.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002645/0.09975, allocations: 0.7102 MB / 407.9 MB, free: 4.453 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001326/0.09989, allocations: 43.34 kB / 408 MB, free: 4.41 MB / 302.1 MB Notification: Performance of SimCode: time 3.5e-07/0.09989, allocations: 0 / 408 MB, free: 4.41 MB / 302.1 MB Notification: Performance of Templates: time 0.004023/0.1039, allocations: 2.582 MB / 410.6 MB, free: 1.836 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches