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.006018/0.006018, allocations: 99.55 kB / 15.73 MB, free: 6.008 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.001312/0.001312, allocations: 199.1 kB / 16.68 MB, free: 5.93 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.242/1.242, allocations: 205.1 MB / 222.5 MB, free: 4.398 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05912/0.05912, allocations: 14.17 MB / 284.1 MB, free: 6.852 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.001471/0.001471, allocations: 63.91 kB / 398 MB, free: 14.49 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2705/0.272, allocations: 50.14 MB / 448.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002423/0.2745, allocations: 1.432 MB / 449.5 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000926/0.2754, allocations: 0.5229 MB / 450.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.081e-05/0.2755, allocations: 1.375 kB / 450.1 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.885e-05/0.2755, allocations: 7.922 kB / 450.1 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.256e-05/0.2756, allocations: 21.23 kB / 450.1 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002024/0.2759, allocations: 73.58 kB / 450.2 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.276, allocations: 194.4 kB / 450.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.314e-05/0.2761, allocations: 2.75 kB / 450.4 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001987/0.2763, allocations: 99.91 kB / 450.5 MB, free: 0.7852 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001439/0.2765, allocations: 92.28 kB / 450.5 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.748e-05/0.2765, allocations: 17.03 kB / 450.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.041e-05/0.2766, allocations: 11.97 kB / 450.6 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.276e-05/0.2766, allocations: 56.19 kB / 450.6 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.2767, allocations: 73.27 kB / 450.7 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.2769, allocations: 133.9 kB / 450.8 MB, free: 0.5312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.2769, allocations: 4 kB / 450.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.704e-06/0.2769, allocations: 1.406 kB / 450.8 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.75e-06/0.2769, allocations: 0 / 450.8 MB, free: 0.5273 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.0008404/0.2778, allocations: 0.5457 MB / 451.4 MB, free: 36 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.2778, allocations: 10.84 kB / 451.4 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.72e-05/0.2779, allocations: 23.17 kB / 451.4 MB, free: 28 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001822/0.2781, allocations: 191.8 kB / 451.6 MB, free: 15.81 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.2781, allocations: 15.45 kB / 451.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.629e-05/0.2782, allocations: 27.58 kB / 451.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006088/0.2788, allocations: 379.8 kB / 452 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.2788, allocations: 1.406 kB / 452 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.794e-05/0.2789, allocations: 12.27 kB / 452 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.2789, allocations: 1.281 kB / 452 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001911/0.2791, allocations: 66.97 kB / 452.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004117/0.2795, allocations: 371.9 kB / 452.5 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002709/0.2798, allocations: 176.2 kB / 452.6 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.28, allocations: 160.7 kB / 452.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.384e-05/0.2801, allocations: 1.406 kB / 452.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007605/0.2808, allocations: 0.5211 MB / 453.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 2.365e-06/0.2808, allocations: 0 / 453.3 MB, free: 14.58 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009974/0.2818, allocations: 0.6583 MB / 454 MB, free: 14.23 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.2819, allocations: 60.59 kB / 454 MB, free: 14.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.282, allocations: 127.1 kB / 454.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.148e-05/0.2821, allocations: 41.77 kB / 454.2 MB, free: 14 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.2821, allocations: 91.25 kB / 454.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.901e-05/0.2822, allocations: 81.28 kB / 454.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.537e-05/0.2823, allocations: 56 kB / 454.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001269/0.2824, allocations: 329.5 kB / 454.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.2826, allocations: 88.45 kB / 454.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.2828, allocations: 151 kB / 455 MB, free: 13.31 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003573/0.2832, allocations: 237.5 kB / 455.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.574e-06/0.2832, allocations: 1.312 kB / 455.2 MB, free: 13.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003767/0.2836, allocations: 238.1 kB / 455.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.2836, allocations: 9.531 kB / 455.4 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.625e-06/0.2836, allocations: 5.516 kB / 455.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.66e-05/0.2836, allocations: 3.156 kB / 455.5 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.345e-05/0.2837, allocations: 25.48 kB / 455.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.2837, allocations: 6.906 kB / 455.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001999/0.2839, allocations: 34.47 kB / 455.5 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.542e-05/0.284, allocations: 12.09 kB / 455.5 MB, free: 13 MB / 334.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.0001977/0.2842, allocations: 160.6 kB / 455.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.2843, allocations: 26.89 kB / 455.7 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.862e-05/0.2844, allocations: 30.97 kB / 455.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.2844, allocations: 2.5 kB / 455.7 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.2844, allocations: 1.188 kB / 455.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.2844, allocations: 3.984 kB / 455.8 MB, free: 12.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002513/0.2846, allocations: 282.2 kB / 456 MB, free: 12.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2847, allocations: 4 kB / 456 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.722e-05/0.2847, allocations: 8.344 kB / 456 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2847, allocations: 1.188 kB / 456 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.2848, allocations: 31.94 kB / 456.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.2848, allocations: 0.9688 kB / 456.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.2848, allocations: 1.344 kB / 456.1 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007527/0.2855, allocations: 0.5618 MB / 456.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.2857, allocations: 116.8 kB / 456.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.334e-05/0.2858, allocations: 30.2 kB / 456.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001971/0.286, allocations: 37.55 kB / 456.8 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.2862, allocations: 86.42 kB / 456.9 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.926e-05/0.2862, allocations: 45.58 kB / 456.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.112e-05/0.2863, allocations: 102.7 kB / 457 MB, free: 11.84 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.2863, allocations: 0 / 457 MB, free: 11.84 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002955/0.2866, allocations: 73.58 kB / 457.1 MB, free: 11.83 MB / 334.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.0001537/0.2868, allocations: 137.6 kB / 457.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005098/0.2873, allocations: 296.1 kB / 457.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.2873, allocations: 0 / 457.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006211/0.2879, allocations: 0.7283 MB / 458.3 MB, free: 11.07 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002977/0.2883, allocations: 49.64 kB / 458.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009751/0.2892, allocations: 439.4 kB / 458.7 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.2895, allocations: 0.7146 MB / 459.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.2896, allocations: 35.88 kB / 459.5 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001698/0.2898, allocations: 36.16 kB / 459.5 MB, free: 9.996 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2898, allocations: 3.938 kB / 459.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of Templates: time 0.008169/0.298, allocations: 3.666 MB / 463.2 MB, free: 7.359 MB / 334.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches