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.001152/0.001152, allocations: 107.1 kB / 16.53 MB, free: 6.66 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.0013/0.001301, allocations: 199.2 kB / 17.45 MB, free: 6.039 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.312/1.312, allocations: 205.1 MB / 223.3 MB, free: 12.47 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.0616/0.0616, allocations: 14.15 MB / 284.8 MB, free: 14.17 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.001393/0.001393, allocations: 67.89 kB / 347.1 MB, free: 15.79 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2163/0.2177, allocations: 50.13 MB / 397.2 MB, free: 48.37 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002184/0.2199, allocations: 1.492 MB / 398.7 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007774/0.2207, allocations: 0.545 MB / 399.2 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-05/0.2207, allocations: 0 / 399.2 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.324e-05/0.2208, allocations: 3.938 kB / 399.2 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.026e-05/0.2209, allocations: 10.08 kB / 399.2 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001658/0.221, allocations: 62.55 kB / 399.3 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001389/0.2212, allocations: 187.7 kB / 399.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.338e-05/0.2212, allocations: 3.938 kB / 399.5 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.2213, allocations: 100 kB / 399.6 MB, free: 46.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001051/0.2215, allocations: 87.67 kB / 399.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.349e-05/0.2215, allocations: 12.06 kB / 399.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.662e-05/0.2215, allocations: 16.62 kB / 399.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.727e-05/0.2216, allocations: 56.75 kB / 399.8 MB, free: 46.45 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.733e-05/0.2217, allocations: 83.31 kB / 399.8 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.242e-05/0.2218, allocations: 84.61 kB / 399.9 MB, free: 46.34 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.96e-06/0.2218, allocations: 1.156 kB / 399.9 MB, free: 46.34 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.2218, allocations: 0 / 399.9 MB, free: 46.34 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.2218, allocations: 3.938 kB / 399.9 MB, free: 46.33 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.0008645/0.2227, allocations: 0.5479 MB / 400.5 MB, free: 45.84 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2227, allocations: 8.844 kB / 400.5 MB, free: 45.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001005/0.2229, allocations: 24.45 kB / 400.5 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.715e-05/0.2229, allocations: 180.5 kB / 400.7 MB, free: 45.62 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.13e-05/0.223, allocations: 14.86 kB / 400.7 MB, free: 45.61 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.801e-05/0.223, allocations: 27.61 kB / 400.7 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.2236, allocations: 380 kB / 401.1 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.2236, allocations: 1.344 kB / 401.1 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.043e-05/0.2237, allocations: 15.64 kB / 401.1 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.686e-06/0.2237, allocations: 1.219 kB / 401.1 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.2239, allocations: 75.38 kB / 401.2 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003425/0.2242, allocations: 371.2 kB / 401.5 MB, free: 44.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.2245, allocations: 173 kB / 401.7 MB, free: 44.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002154/0.2247, allocations: 161.1 kB / 401.9 MB, free: 44.71 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.338e-05/0.2247, allocations: 1.594 kB / 401.9 MB, free: 44.71 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007725/0.2255, allocations: 0.5181 MB / 402.4 MB, free: 44.38 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.483e-06/0.2255, allocations: 0 / 402.4 MB, free: 44.38 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008856/0.2264, allocations: 0.653 MB / 403 MB, free: 44.04 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.2265, allocations: 60.2 kB / 403.1 MB, free: 43.97 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.039e-05/0.2265, allocations: 129.2 kB / 403.2 MB, free: 43.85 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.2266, allocations: 49.66 kB / 403.3 MB, free: 43.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.541e-05/0.2266, allocations: 95.66 kB / 403.4 MB, free: 43.71 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.795e-05/0.2267, allocations: 65.92 kB / 403.4 MB, free: 43.66 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.482e-05/0.2268, allocations: 54.89 kB / 403.5 MB, free: 43.62 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.2268, allocations: 334.5 kB / 403.8 MB, free: 43.29 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001428/0.227, allocations: 83.98 kB / 403.9 MB, free: 43.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001718/0.2272, allocations: 154.9 kB / 404 MB, free: 43.12 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003217/0.2275, allocations: 242.1 kB / 404.3 MB, free: 42.97 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2275, allocations: 7.938 kB / 404.3 MB, free: 42.96 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003514/0.2279, allocations: 238.9 kB / 404.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.2279, allocations: 6.094 kB / 404.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2279, allocations: 0 / 404.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.2279, allocations: 2.75 kB / 404.5 MB, free: 42.84 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.699e-05/0.228, allocations: 22.7 kB / 404.6 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.228, allocations: 9.422 kB / 404.6 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002153/0.2282, allocations: 44.56 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.2283, allocations: 10.81 kB / 404.6 MB, free: 42.8 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.0001534/0.2284, allocations: 158.2 kB / 404.8 MB, free: 42.65 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.196e-05/0.2285, allocations: 28.58 kB / 404.8 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.607e-05/0.2286, allocations: 36.59 kB / 404.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2286, allocations: 6.906 kB / 404.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.2286, allocations: 0 / 404.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2286, allocations: 3.984 kB / 404.8 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2288, allocations: 282.7 kB / 405.1 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.2288, allocations: 0 / 405.1 MB, free: 42.32 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.085e-05/0.2288, allocations: 11.91 kB / 405.1 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2288, allocations: 0.9062 kB / 405.1 MB, free: 42.31 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.746e-05/0.2289, allocations: 24.55 kB / 405.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.2289, allocations: 1.094 kB / 405.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2289, allocations: 0 / 405.2 MB, free: 42.29 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001029/0.2299, allocations: 1.282 MB / 406.4 MB, free: 41.29 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001173/0.23, allocations: 117.3 kB / 406.6 MB, free: 41.16 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.608e-05/0.2301, allocations: 23.03 kB / 406.6 MB, free: 41.15 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002177/0.2303, allocations: 40.47 kB / 406.6 MB, free: 41.13 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001849/0.2305, allocations: 87.39 kB / 406.7 MB, free: 41.08 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.911e-05/0.2306, allocations: 44.58 kB / 406.7 MB, free: 41.05 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.183e-05/0.2306, allocations: 101 kB / 406.8 MB, free: 40.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2306, allocations: 0.9688 kB / 406.8 MB, free: 40.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004027/0.2311, allocations: 74.86 kB / 406.9 MB, free: 40.96 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.0001284/0.2312, allocations: 136.7 kB / 407.1 MB, free: 40.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004498/0.2316, allocations: 300.2 kB / 407.3 MB, free: 40.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2317, allocations: 0 / 407.3 MB, free: 40.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005214/0.2322, allocations: 0.7273 MB / 408.1 MB, free: 40.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.2325, allocations: 55.09 kB / 408.1 MB, free: 40.16 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.2335, allocations: 0.6519 MB / 408.8 MB, free: 39.65 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001331/0.2337, allocations: 0.723 MB / 409.5 MB, free: 38.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.2338, allocations: 35.84 kB / 409.5 MB, free: 38.91 MB / 318.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2338, allocations: 0 / 409.5 MB, free: 38.91 MB / 318.1 MB Notification: Performance of Templates: time 0.003501/0.2373, allocations: 2.593 MB / 412.1 MB, free: 36.41 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/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