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.001484/0.001484, allocations: 108 kB / 16.27 MB, free: 6.047 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.001667/0.001668, allocations: 187.5 kB / 17.2 MB, free: 5.68 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.417/1.417, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0664/0.0664, allocations: 14.17 MB / 284.6 MB, free: 13.95 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.001704/0.001704, allocations: 67.91 kB / 347.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2868/0.2885, allocations: 50.12 MB / 397.3 MB, free: 48.33 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.003198/0.2917, allocations: 1.424 MB / 398.7 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001031/0.2928, allocations: 0.5272 MB / 399.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.972e-05/0.2929, allocations: 9.094 kB / 399.2 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.858e-05/0.293, allocations: 3.938 kB / 399.2 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.194e-05/0.2931, allocations: 20.91 kB / 399.3 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002265/0.2933, allocations: 69.81 kB / 399.3 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001981/0.2935, allocations: 188 kB / 399.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.706e-05/0.2936, allocations: 3.344 kB / 399.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001932/0.2938, allocations: 93.23 kB / 399.6 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001252/0.2939, allocations: 95.64 kB / 399.7 MB, free: 46.5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.18e-05/0.294, allocations: 11.97 kB / 399.7 MB, free: 46.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.114e-05/0.294, allocations: 12.28 kB / 399.7 MB, free: 46.5 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.618e-05/0.2941, allocations: 63.78 kB / 399.8 MB, free: 46.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001234/0.2942, allocations: 73.8 kB / 399.9 MB, free: 46.4 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001819/0.2944, allocations: 136 kB / 400 MB, free: 46.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.2944, allocations: 1.094 kB / 400 MB, free: 46.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2944, allocations: 0 / 400 MB, free: 46.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.2944, allocations: 0 / 400 MB, free: 46.3 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.001059/0.2955, allocations: 0.5518 MB / 400.5 MB, free: 45.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.95e-05/0.2956, allocations: 13.16 kB / 400.6 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.2957, allocations: 23.7 kB / 400.6 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001317/0.2958, allocations: 177.7 kB / 400.8 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.2959, allocations: 15.36 kB / 400.8 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.648e-05/0.2959, allocations: 22.7 kB / 400.8 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005518/0.2965, allocations: 380.9 kB / 401.2 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.2965, allocations: 0 / 401.2 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.324e-05/0.2966, allocations: 20.75 kB / 401.2 MB, free: 45.28 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.2966, allocations: 1.156 kB / 401.2 MB, free: 45.28 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001987/0.2968, allocations: 66.69 kB / 401.2 MB, free: 45.25 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004043/0.2972, allocations: 375.8 kB / 401.6 MB, free: 44.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/0.2975, allocations: 176.1 kB / 401.8 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002504/0.2978, allocations: 161.5 kB / 401.9 MB, free: 44.68 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.738e-05/0.2978, allocations: 1.312 kB / 401.9 MB, free: 44.68 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007656/0.2985, allocations: 0.5253 MB / 402.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.704e-06/0.2986, allocations: 0 / 402.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.001081/0.2996, allocations: 0.6501 MB / 403.1 MB, free: 44 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.2997, allocations: 55.97 kB / 403.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001085/0.2998, allocations: 126.6 kB / 403.3 MB, free: 43.82 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.052e-05/0.2999, allocations: 44.86 kB / 403.3 MB, free: 43.78 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.198e-05/0.2999, allocations: 100.2 kB / 403.4 MB, free: 43.68 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.173e-05/0.3, allocations: 73.72 kB / 403.5 MB, free: 43.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/0.3001, allocations: 54.86 kB / 403.6 MB, free: 43.58 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.057e-05/0.3002, allocations: 338.1 kB / 403.9 MB, free: 43.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001632/0.3004, allocations: 84.52 kB / 404 MB, free: 43.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002192/0.3006, allocations: 154.7 kB / 404.1 MB, free: 43.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/0.301, allocations: 233.6 kB / 404.4 MB, free: 42.94 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.301, allocations: 1.219 kB / 404.4 MB, free: 42.94 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004368/0.3015, allocations: 245.7 kB / 404.6 MB, free: 42.81 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.407e-05/0.3015, allocations: 9.531 kB / 404.6 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.3015, allocations: 1.062 kB / 404.6 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.275e-05/0.3015, allocations: 3.062 kB / 404.6 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.654e-05/0.3016, allocations: 16.89 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.3017, allocations: 3.062 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.3019, allocations: 39.88 kB / 404.7 MB, free: 42.78 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.589e-05/0.302, allocations: 11.66 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.0002059/0.3022, allocations: 165.3 kB / 404.8 MB, free: 42.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.027e-05/0.3022, allocations: 30.14 kB / 404.9 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.429e-05/0.3023, allocations: 30.5 kB / 404.9 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.3023, allocations: 3.844 kB / 404.9 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.284e-05/0.3024, allocations: 4 kB / 404.9 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.713e-06/0.3024, allocations: 5.172 kB / 404.9 MB, free: 42.57 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002476/0.3026, allocations: 282 kB / 405.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3026, allocations: 0 / 405.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.824e-05/0.3027, allocations: 7.75 kB / 405.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.3027, allocations: 1.469 kB / 405.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.54e-05/0.3027, allocations: 27.83 kB / 405.2 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.219e-06/0.3027, allocations: 5.297 kB / 405.2 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3027, allocations: 0 / 405.2 MB, free: 42.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.304, allocations: 1.51 MB / 406.7 MB, free: 41.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001371/0.3042, allocations: 121.8 kB / 406.9 MB, free: 40.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.408e-05/0.3043, allocations: 30.98 kB / 406.9 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002334/0.3045, allocations: 35.95 kB / 406.9 MB, free: 40.86 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.3047, allocations: 92.08 kB / 407 MB, free: 40.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.479e-05/0.3048, allocations: 44.45 kB / 407.1 MB, free: 40.78 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.768e-05/0.3048, allocations: 98.61 kB / 407.2 MB, free: 40.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3049, allocations: 0 / 407.2 MB, free: 40.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004615/0.3053, allocations: 74.39 kB / 407.2 MB, free: 40.68 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.0001548/0.3055, allocations: 130.2 kB / 407.4 MB, free: 40.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005555/0.306, allocations: 316.7 kB / 407.7 MB, free: 40.42 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.888e-06/0.3061, allocations: 4.25 kB / 407.7 MB, free: 40.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005845/0.3066, allocations: 0.7241 MB / 408.4 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003128/0.307, allocations: 53.53 kB / 408.4 MB, free: 39.88 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001097/0.3081, allocations: 0.6053 MB / 409.1 MB, free: 39.32 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000145/0.3082, allocations: 0.7254 MB / 409.8 MB, free: 38.57 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000107/0.3083, allocations: 33.92 kB / 409.8 MB, free: 38.54 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001226/0.3085, allocations: 51.39 kB / 409.9 MB, free: 38.49 MB / 318.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3085, allocations: 0 / 409.9 MB, free: 38.49 MB / 318.1 MB Notification: Performance of Templates: time 0.006424/0.3149, allocations: 3.653 MB / 413.5 MB, free: 34.86 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches