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.001497/0.001497, allocations: 105.5 kB / 17.04 MB, free: 5.707 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.00171/0.00171, allocations: 196.1 kB / 17.98 MB, free: 5.078 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.335/1.335, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06386/0.06386, allocations: 14.17 MB / 285.4 MB, free: 13.88 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.001477/0.001477, allocations: 71.89 kB / 348.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2121, allocations: 50.13 MB / 398.7 MB, free: 48.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002352/0.2145, allocations: 1.431 MB / 400.2 MB, free: 47.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000855/0.2154, allocations: 0.5277 MB / 400.7 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.373e-05/0.2155, allocations: 7.938 kB / 400.7 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.925e-05/0.2155, allocations: 5.25 kB / 400.7 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.242e-05/0.2156, allocations: 8.75 kB / 400.7 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001822/0.2158, allocations: 76.91 kB / 400.8 MB, free: 46.87 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.216, allocations: 186.2 kB / 401 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.489e-05/0.216, allocations: 8.016 kB / 401 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.2161, allocations: 95.56 kB / 401.1 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001106/0.2163, allocations: 91.94 kB / 401.1 MB, free: 46.66 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.846e-05/0.2163, allocations: 12.06 kB / 401.2 MB, free: 46.66 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.802e-05/0.2163, allocations: 13.75 kB / 401.2 MB, free: 46.66 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.002e-05/0.2164, allocations: 58.98 kB / 401.2 MB, free: 46.62 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.13e-05/0.2165, allocations: 81.75 kB / 401.3 MB, free: 46.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001343/0.2166, allocations: 134.9 kB / 401.4 MB, free: 46.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2166, allocations: 0 / 401.4 MB, free: 46.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2167, allocations: 0 / 401.4 MB, free: 46.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.2167, allocations: 0 / 401.4 MB, free: 46.46 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.0008533/0.2175, allocations: 0.5497 MB / 402 MB, free: 45.97 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.2176, allocations: 13.28 kB / 402 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.388e-05/0.2177, allocations: 20.81 kB / 402 MB, free: 45.96 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001063/0.2178, allocations: 186.9 kB / 402.2 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.649e-05/0.2178, allocations: 15.27 kB / 402.2 MB, free: 45.74 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.961e-05/0.2179, allocations: 26.44 kB / 402.2 MB, free: 45.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004882/0.2184, allocations: 380.4 kB / 402.6 MB, free: 45.46 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.036e-06/0.2184, allocations: 1.375 kB / 402.6 MB, free: 45.46 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.267e-05/0.2184, allocations: 13.05 kB / 402.6 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.03e-06/0.2185, allocations: 0 / 402.6 MB, free: 45.45 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001702/0.2186, allocations: 63.12 kB / 402.7 MB, free: 45.42 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003192/0.219, allocations: 380.1 kB / 403.1 MB, free: 45.05 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002462/0.2192, allocations: 176.3 kB / 403.2 MB, free: 44.94 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002127/0.2194, allocations: 157.8 kB / 403.4 MB, free: 44.85 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.2195, allocations: 1.312 kB / 403.4 MB, free: 44.85 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006876/0.2202, allocations: 0.528 MB / 403.9 MB, free: 44.51 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.874e-06/0.2202, allocations: 0 / 403.9 MB, free: 44.51 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.000931/0.2211, allocations: 0.6433 MB / 404.6 MB, free: 44.18 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.2211, allocations: 59.09 kB / 404.6 MB, free: 44.11 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.44e-05/0.2212, allocations: 124 kB / 404.7 MB, free: 44 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.79e-05/0.2213, allocations: 54 kB / 404.8 MB, free: 43.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.114e-05/0.2213, allocations: 91.2 kB / 404.9 MB, free: 43.86 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.711e-05/0.2214, allocations: 81.83 kB / 405 MB, free: 43.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.46e-05/0.2215, allocations: 54.83 kB / 405 MB, free: 43.75 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.95e-05/0.2215, allocations: 330.2 kB / 405.3 MB, free: 43.42 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001412/0.2217, allocations: 88.42 kB / 405.4 MB, free: 43.37 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.2219, allocations: 159.5 kB / 405.6 MB, free: 43.25 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.2222, allocations: 225.6 kB / 405.8 MB, free: 43.11 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.2222, allocations: 0 / 405.8 MB, free: 43.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003415/0.2225, allocations: 246.2 kB / 406 MB, free: 42.98 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.2226, allocations: 5.562 kB / 406.1 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.2226, allocations: 2.156 kB / 406.1 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.2226, allocations: 2.25 kB / 406.1 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.297e-05/0.2227, allocations: 21.92 kB / 406.1 MB, free: 42.97 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.2227, allocations: 2.094 kB / 406.1 MB, free: 42.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002273/0.2229, allocations: 43.17 kB / 406.1 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.336e-05/0.223, allocations: 12.91 kB / 406.1 MB, free: 42.94 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.0001885/0.2232, allocations: 163.2 kB / 406.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.195e-05/0.2232, allocations: 25.41 kB / 406.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.359e-05/0.2233, allocations: 36.02 kB / 406.4 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2233, allocations: 2.219 kB / 406.4 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.2233, allocations: 5.031 kB / 406.4 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.798e-06/0.2233, allocations: 4 kB / 406.4 MB, free: 42.75 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001877/0.2235, allocations: 285.8 kB / 406.6 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.2235, allocations: 1.062 kB / 406.6 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.899e-05/0.2236, allocations: 11.52 kB / 406.7 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2236, allocations: 0.875 kB / 406.7 MB, free: 42.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.371e-05/0.2236, allocations: 28.58 kB / 406.7 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.2236, allocations: 1.219 kB / 406.7 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2236, allocations: 0 / 406.7 MB, free: 42.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.2247, allocations: 1.504 MB / 408.2 MB, free: 41.2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001321/0.2249, allocations: 128.6 kB / 408.3 MB, free: 41.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.627e-05/0.2249, allocations: 26.09 kB / 408.3 MB, free: 41.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002106/0.2252, allocations: 41.66 kB / 408.4 MB, free: 41.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.2254, allocations: 82.34 kB / 408.5 MB, free: 40.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.2254, allocations: 45.05 kB / 408.5 MB, free: 40.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.429e-05/0.2255, allocations: 102.6 kB / 408.6 MB, free: 40.86 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2255, allocations: 0 / 408.6 MB, free: 40.86 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000426/0.2259, allocations: 79.27 kB / 408.7 MB, free: 40.85 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.000151/0.2261, allocations: 132.4 kB / 408.8 MB, free: 40.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004938/0.2266, allocations: 303.2 kB / 409.1 MB, free: 40.59 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2266, allocations: 256 / 409.1 MB, free: 40.59 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004432/0.227, allocations: 0.7263 MB / 409.8 MB, free: 39.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003056/0.2273, allocations: 51.92 kB / 409.9 MB, free: 39.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000946/0.2283, allocations: 0.6033 MB / 410.5 MB, free: 39.17 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001162/0.2284, allocations: 0.7255 MB / 411.2 MB, free: 38.42 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001046/0.2285, allocations: 29.94 kB / 411.2 MB, free: 38.39 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001146/0.2287, allocations: 47.33 kB / 411.3 MB, free: 38.34 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.2287, allocations: 0 / 411.3 MB, free: 38.34 MB / 318.1 MB Notification: Performance of Templates: time 0.006755/0.2354, allocations: 3.653 MB / 414.9 MB, free: 34.71 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 -s cvode -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