Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_symb_jac_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_symb_jac_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_symb_jac_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.001346/0.001346, allocations: 107.8 kB / 16.27 MB, free: 6.051 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.00133/0.00133, allocations: 187.4 kB / 17.2 MB, free: 5.684 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.484/1.484, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06621/0.06621, allocations: 14.17 MB / 284.6 MB, free: 13.94 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.001647/0.001648, allocations: 63.91 kB / 347.1 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2664, allocations: 50.12 MB / 397.3 MB, free: 48.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.00371/0.2701, allocations: 1.428 MB / 398.7 MB, free: 47.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.2715, allocations: 0.5263 MB / 399.2 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.549e-05/0.2716, allocations: 5.062 kB / 399.2 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.629e-05/0.2717, allocations: 7.875 kB / 399.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001306/0.2719, allocations: 8.984 kB / 399.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000293/0.2722, allocations: 82.05 kB / 399.3 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002851/0.2725, allocations: 184.4 kB / 399.5 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.797e-05/0.2725, allocations: 3.156 kB / 399.5 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.2727, allocations: 100.3 kB / 399.6 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.2728, allocations: 88.64 kB / 399.7 MB, free: 46.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.616e-05/0.2729, allocations: 11.44 kB / 399.7 MB, free: 46.52 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.548e-05/0.273, allocations: 16.97 kB / 399.7 MB, free: 46.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.069e-05/0.2731, allocations: 64.02 kB / 399.8 MB, free: 46.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.2732, allocations: 80.91 kB / 399.9 MB, free: 46.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001982/0.2734, allocations: 136.1 kB / 400 MB, free: 46.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2734, allocations: 1.156 kB / 400 MB, free: 46.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.2734, allocations: 0 / 400 MB, free: 46.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.54e-06/0.2734, allocations: 0 / 400 MB, free: 46.31 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0009794/0.2744, allocations: 0.5444 MB / 400.5 MB, free: 45.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.2745, allocations: 12.94 kB / 400.5 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.2746, allocations: 28.33 kB / 400.6 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001177/0.2747, allocations: 176 kB / 400.7 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.484e-05/0.2748, allocations: 15.23 kB / 400.8 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.425e-05/0.2749, allocations: 27.73 kB / 400.8 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006191/0.2755, allocations: 384.6 kB / 401.2 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.2755, allocations: 0 / 401.2 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.007e-05/0.2756, allocations: 12.84 kB / 401.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.2756, allocations: 1.188 kB / 401.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002072/0.2758, allocations: 66.72 kB / 401.2 MB, free: 45.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004462/0.2763, allocations: 371.4 kB / 401.6 MB, free: 44.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002517/0.2765, allocations: 177 kB / 401.8 MB, free: 44.78 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002598/0.2768, allocations: 161.2 kB / 401.9 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.287e-05/0.2768, allocations: 1.844 kB / 401.9 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008684/0.2777, allocations: 0.522 MB / 402.5 MB, free: 44.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.613e-06/0.2777, allocations: 0 / 402.5 MB, free: 44.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.001042/0.2787, allocations: 0.647 MB / 403.1 MB, free: 44.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.621e-05/0.2788, allocations: 60.27 kB / 403.2 MB, free: 43.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001086/0.2789, allocations: 123 kB / 403.3 MB, free: 43.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.111e-05/0.279, allocations: 53.56 kB / 403.3 MB, free: 43.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.019e-05/0.279, allocations: 94.91 kB / 403.4 MB, free: 43.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.312e-05/0.2791, allocations: 70.75 kB / 403.5 MB, free: 43.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.992e-05/0.2792, allocations: 53.86 kB / 403.6 MB, free: 43.6 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.583e-05/0.2793, allocations: 338.9 kB / 403.9 MB, free: 43.26 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001472/0.2795, allocations: 92.64 kB / 404 MB, free: 43.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.2797, allocations: 154.1 kB / 404.1 MB, free: 43.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003783/0.28, allocations: 234.8 kB / 404.4 MB, free: 42.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.716e-06/0.2801, allocations: 0 / 404.4 MB, free: 42.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003725/0.2804, allocations: 246.3 kB / 404.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.2805, allocations: 5.625 kB / 404.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.767e-06/0.2805, allocations: 1.484 kB / 404.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.442e-05/0.2805, allocations: 6.234 kB / 404.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.2806, allocations: 21.95 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.2806, allocations: 2.094 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.2809, allocations: 35.53 kB / 404.7 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.2809, allocations: 16.53 kB / 404.7 MB, free: 42.78 MB / 318.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.0002107/0.2811, allocations: 155.5 kB / 404.8 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.197e-05/0.2812, allocations: 29.92 kB / 404.9 MB, free: 42.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.091e-05/0.2813, allocations: 30.97 kB / 404.9 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.111e-06/0.2813, allocations: 3.875 kB / 404.9 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.2813, allocations: 0 / 404.9 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.2813, allocations: 7.984 kB / 404.9 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003/0.2816, allocations: 282.3 kB / 405.2 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.2816, allocations: 0 / 405.2 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.189e-05/0.2817, allocations: 12.31 kB / 405.2 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.2817, allocations: 1.031 kB / 405.2 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.532e-05/0.2818, allocations: 27.8 kB / 405.2 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.2818, allocations: 1.156 kB / 405.2 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2818, allocations: 1.125 kB / 405.2 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.2832, allocations: 1.51 MB / 406.7 MB, free: 41.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001343/0.2834, allocations: 117.2 kB / 406.8 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.86e-05/0.2835, allocations: 27.28 kB / 406.9 MB, free: 40.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.2837, allocations: 45.09 kB / 406.9 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002104/0.2839, allocations: 86.52 kB / 407 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.479e-05/0.284, allocations: 45.64 kB / 407 MB, free: 40.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.313e-05/0.284, allocations: 97.98 kB / 407.1 MB, free: 40.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.2841, allocations: 3.938 kB / 407.1 MB, free: 40.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004733/0.2845, allocations: 78.73 kB / 407.2 MB, free: 40.69 MB / 318.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.0001623/0.2847, allocations: 129.9 kB / 407.4 MB, free: 40.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000618/0.2853, allocations: 312.2 kB / 407.7 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2853, allocations: 1.312 kB / 407.7 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000633/0.286, allocations: 0.7313 MB / 408.4 MB, free: 39.92 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2863, allocations: 47 kB / 408.4 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/0.2874, allocations: 0.6064 MB / 409 MB, free: 39.3 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001859/0.2877, allocations: 0.7255 MB / 409.8 MB, free: 38.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001167/0.2878, allocations: 33.92 kB / 409.8 MB, free: 38.52 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001103/0.2879, allocations: 43.41 kB / 409.8 MB, free: 38.48 MB / 318.1 MB Notification: Performance of SimCode: time 1.192e-06/0.2879, allocations: 0 / 409.8 MB, free: 38.48 MB / 318.1 MB Notification: Performance of Templates: time 0.006783/0.2947, allocations: 3.662 MB / 413.5 MB, free: 34.84 MB / 318.1 MB make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches