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.001476/0.001483, allocations: 101.5 kB / 15.99 MB, free: 6.328 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.001859/0.001859, allocations: 190.3 kB / 16.91 MB, free: 6.18 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.5/1.5, allocations: 205.1 MB / 222.8 MB, free: 12.48 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0619/0.0619, allocations: 14.15 MB / 284.3 MB, free: 14.12 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.001547/0.001547, allocations: 63.91 kB / 346.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2521/0.2537, allocations: 50.12 MB / 396.7 MB, free: 48.36 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002466/0.2562, allocations: 1.486 MB / 398.2 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008659/0.2571, allocations: 0.545 MB / 398.8 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.959e-05/0.2571, allocations: 0 / 398.8 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.212e-05/0.2572, allocations: 3.938 kB / 398.8 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.292e-05/0.2573, allocations: 14.28 kB / 398.8 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.2575, allocations: 63.12 kB / 398.8 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001639/0.2576, allocations: 184.3 kB / 399 MB, free: 46.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.238e-05/0.2577, allocations: 7.266 kB / 399 MB, free: 46.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001168/0.2578, allocations: 100.7 kB / 399.1 MB, free: 46.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.922e-05/0.2579, allocations: 87.08 kB / 399.2 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.351e-05/0.258, allocations: 13.19 kB / 399.2 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.528e-05/0.258, allocations: 16.38 kB / 399.2 MB, free: 46.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.384e-05/0.2581, allocations: 56.06 kB / 399.3 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.2582, allocations: 88.94 kB / 399.4 MB, free: 46.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.2583, allocations: 127.7 kB / 399.5 MB, free: 46.29 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2583, allocations: 0 / 399.5 MB, free: 46.29 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2584, allocations: 1.062 kB / 399.5 MB, free: 46.29 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.2584, allocations: 0 / 399.5 MB, free: 46.29 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.0009376/0.2593, allocations: 0.5554 MB / 400.1 MB, free: 45.78 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.786e-05/0.2594, allocations: 8.812 kB / 400.1 MB, free: 45.78 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.2595, allocations: 23.98 kB / 400.1 MB, free: 45.77 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.2596, allocations: 185.2 kB / 400.3 MB, free: 45.56 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.2597, allocations: 14.03 kB / 400.3 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.83e-05/0.2597, allocations: 27.83 kB / 400.3 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005683/0.2603, allocations: 380.7 kB / 400.7 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2603, allocations: 0 / 400.7 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.168e-05/0.2604, allocations: 8.516 kB / 400.7 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.423e-06/0.2604, allocations: 1.844 kB / 400.7 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000195/0.2606, allocations: 74.12 kB / 400.8 MB, free: 45.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004528/0.2611, allocations: 372.5 kB / 401.1 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002824/0.2614, allocations: 173.1 kB / 401.3 MB, free: 44.75 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002471/0.2616, allocations: 164.2 kB / 401.5 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.32e-05/0.2616, allocations: 1.594 kB / 401.5 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008265/0.2625, allocations: 0.5251 MB / 402 MB, free: 44.33 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.502e-06/0.2625, allocations: 1.156 kB / 402 MB, free: 44.33 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.00099/0.2635, allocations: 0.6526 MB / 402.6 MB, free: 43.98 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.2635, allocations: 56.25 kB / 402.7 MB, free: 43.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001098/0.2636, allocations: 126.7 kB / 402.8 MB, free: 43.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.2637, allocations: 49.41 kB / 402.9 MB, free: 43.75 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.442e-05/0.2637, allocations: 91.3 kB / 403 MB, free: 43.66 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.834e-05/0.2638, allocations: 74.61 kB / 403 MB, free: 43.6 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.966e-05/0.2639, allocations: 55.02 kB / 403.1 MB, free: 43.56 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.072e-05/0.264, allocations: 330.9 kB / 403.4 MB, free: 43.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.2641, allocations: 91.5 kB / 403.5 MB, free: 43.19 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.2643, allocations: 155.7 kB / 403.6 MB, free: 43.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003408/0.2647, allocations: 240.9 kB / 403.9 MB, free: 42.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.2647, allocations: 4 kB / 403.9 MB, free: 42.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003348/0.265, allocations: 239.1 kB / 404.1 MB, free: 42.79 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.2651, allocations: 9.828 kB / 404.1 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2651, allocations: 1.156 kB / 404.1 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.2651, allocations: 6.312 kB / 404.1 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.97e-05/0.2652, allocations: 17.5 kB / 404.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.584e-06/0.2652, allocations: 6 kB / 404.2 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.2654, allocations: 43.89 kB / 404.2 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.759e-05/0.2655, allocations: 16.33 kB / 404.2 MB, free: 42.74 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.0001733/0.2656, allocations: 153.3 kB / 404.4 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.056e-05/0.2657, allocations: 29.08 kB / 404.4 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.771e-05/0.2658, allocations: 32.03 kB / 404.4 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.2658, allocations: 2.375 kB / 404.4 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/0.2658, allocations: 5.188 kB / 404.4 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.2658, allocations: 0 / 404.4 MB, free: 42.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001927/0.266, allocations: 282.3 kB / 404.7 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.266, allocations: 0 / 404.7 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.173e-05/0.266, allocations: 15.67 kB / 404.7 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.2661, allocations: 1.375 kB / 404.7 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.049e-05/0.2661, allocations: 23.58 kB / 404.8 MB, free: 42.24 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.165e-06/0.2661, allocations: 1.438 kB / 404.8 MB, free: 42.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2661, allocations: 1.312 kB / 404.8 MB, free: 42.24 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.2672, allocations: 1.502 MB / 406.3 MB, free: 41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.2673, allocations: 125.1 kB / 406.4 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.909e-05/0.2674, allocations: 26.44 kB / 406.4 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000209/0.2676, allocations: 45.28 kB / 406.4 MB, free: 40.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.2678, allocations: 82.5 kB / 406.5 MB, free: 40.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.998e-05/0.2679, allocations: 45.27 kB / 406.6 MB, free: 40.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.53e-05/0.268, allocations: 101.3 kB / 406.7 MB, free: 40.68 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.268, allocations: 0 / 406.7 MB, free: 40.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004643/0.2685, allocations: 83.09 kB / 406.8 MB, free: 40.66 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.0002362/0.2687, allocations: 128.7 kB / 406.9 MB, free: 40.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000671/0.2694, allocations: 311.5 kB / 407.2 MB, free: 40.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.2694, allocations: 4.062 kB / 407.2 MB, free: 40.4 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007296/0.2701, allocations: 0.7348 MB / 407.9 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.2705, allocations: 51.41 kB / 408 MB, free: 39.86 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001175/0.2717, allocations: 0.6242 MB / 408.6 MB, free: 39.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002099/0.2719, allocations: 0.7227 MB / 409.3 MB, free: 38.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001365/0.272, allocations: 37.16 kB / 409.4 MB, free: 38.64 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001157/0.2722, allocations: 39.41 kB / 409.4 MB, free: 38.6 MB / 318.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2722, allocations: 0 / 409.4 MB, free: 38.6 MB / 318.1 MB Notification: Performance of Templates: time 0.006029/0.2782, allocations: 3.599 MB / 413 MB, free: 35.02 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=50 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches