Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_dev_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo", uses=false) Using package PowerGrids with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_dev_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_dev_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.001307/0.001307, allocations: 91.3 kB / 15.36 MB, free: 0.7383 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.007612/0.007612, allocations: 172.4 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.132/1.132, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1564/0.1564, allocations: 16.76 MB / 308.2 MB, free: 15.53 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002488/0.0002488, allocations: 12 kB / 374.9 MB, free: 1.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.2151, allocations: 54.56 MB / 429.5 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001054/0.2162, allocations: 1.164 MB / 430.6 MB, free: 38.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006861/0.2169, allocations: 0.4917 MB / 431.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.262e-05/0.2169, allocations: 0 / 431.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.478e-05/0.2169, allocations: 2.906 kB / 431.1 MB, free: 38.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.141e-05/0.217, allocations: 16.17 kB / 431.1 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.2172, allocations: 64.95 kB / 431.2 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.2173, allocations: 179 kB / 431.4 MB, free: 38.47 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.509e-05/0.2174, allocations: 2.875 kB / 431.4 MB, free: 38.47 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.067e-05/0.2175, allocations: 98.95 kB / 431.5 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.719e-05/0.2176, allocations: 92 kB / 431.6 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.362e-05/0.2176, allocations: 19.44 kB / 431.6 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.5e-05/0.2176, allocations: 16.47 kB / 431.6 MB, free: 38.44 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.403e-05/0.2177, allocations: 56.39 kB / 431.7 MB, free: 38.44 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.417e-05/0.2178, allocations: 109.6 kB / 431.8 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001052/0.2179, allocations: 131.4 kB / 431.9 MB, free: 38.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2179, allocations: 0 / 431.9 MB, free: 38.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.2179, allocations: 0 / 431.9 MB, free: 38.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.556e-06/0.2179, allocations: 3.938 kB / 431.9 MB, free: 38.38 MB / 350.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.0006206/0.2185, allocations: 491.3 kB / 432.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.659e-05/0.2186, allocations: 10.12 kB / 432.4 MB, free: 38.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.639e-05/0.2186, allocations: 23.34 kB / 432.4 MB, free: 38.01 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.961e-05/0.2187, allocations: 175.3 kB / 432.6 MB, free: 37.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.2187, allocations: 14.7 kB / 432.6 MB, free: 37.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.786e-05/0.2188, allocations: 31.75 kB / 432.6 MB, free: 37.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.2192, allocations: 377.2 kB / 433 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.981e-06/0.2192, allocations: 0 / 433 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.413e-05/0.2193, allocations: 14.39 kB / 433 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.2193, allocations: 2.906 kB / 433 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001548/0.2195, allocations: 60.86 kB / 433.1 MB, free: 37.77 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002654/0.2197, allocations: 378.1 kB / 433.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.2199, allocations: 178.8 kB / 433.6 MB, free: 37.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.2201, allocations: 159.2 kB / 433.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.713e-06/0.2201, allocations: 0 / 433.8 MB, free: 37.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005152/0.2206, allocations: 0.531 MB / 434.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.092e-06/0.2206, allocations: 0 / 434.3 MB, free: 37.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0007245/0.2214, allocations: 0.6535 MB / 435 MB, free: 37.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.311e-05/0.2214, allocations: 58.09 kB / 435 MB, free: 37.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.897e-05/0.2215, allocations: 131 kB / 435.1 MB, free: 37.17 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.753e-05/0.2215, allocations: 43.36 kB / 435.2 MB, free: 37.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.726e-05/0.2215, allocations: 88.55 kB / 435.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.841e-05/0.2216, allocations: 75.42 kB / 435.3 MB, free: 37.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/0.2216, allocations: 32.44 kB / 435.4 MB, free: 37.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.349e-05/0.2217, allocations: 337.7 kB / 435.7 MB, free: 36.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001128/0.2218, allocations: 85.02 kB / 435.8 MB, free: 36.66 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001311/0.2219, allocations: 147.7 kB / 435.9 MB, free: 36.56 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.2222, allocations: 242.4 kB / 436.2 MB, free: 36.43 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2222, allocations: 3.938 kB / 436.2 MB, free: 36.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002638/0.2225, allocations: 243.3 kB / 436.4 MB, free: 36.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.2225, allocations: 6.531 kB / 436.4 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.2225, allocations: 0 / 436.4 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.14e-05/0.2225, allocations: 7.469 kB / 436.4 MB, free: 36.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.827e-05/0.2226, allocations: 22.61 kB / 436.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.2226, allocations: 0 / 436.4 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001852/0.2228, allocations: 41.28 kB / 436.5 MB, free: 36.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.689e-05/0.2228, allocations: 12.12 kB / 436.5 MB, free: 36.29 MB / 350.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.000132/0.2229, allocations: 167.7 kB / 436.7 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.684e-05/0.223, allocations: 28.45 kB / 436.7 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.849e-05/0.2231, allocations: 33.05 kB / 436.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.2231, allocations: 2.969 kB / 436.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.2231, allocations: 2.938 kB / 436.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.2231, allocations: 0 / 436.7 MB, free: 36.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.2232, allocations: 277.5 kB / 437 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.332e-06/0.2232, allocations: 0 / 437 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.376e-05/0.2233, allocations: 10.94 kB / 437 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2233, allocations: 3.031 kB / 437 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.2233, allocations: 26.16 kB / 437 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2233, allocations: 0 / 437 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2233, allocations: 0 / 437 MB, free: 35.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004932/0.2238, allocations: 0.5704 MB / 437.6 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.293e-05/0.2239, allocations: 126.5 kB / 437.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.072e-05/0.224, allocations: 22.52 kB / 437.7 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001956/0.2242, allocations: 50.17 kB / 437.8 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001538/0.2243, allocations: 86.75 kB / 437.9 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.547e-05/0.2244, allocations: 42.81 kB / 437.9 MB, free: 35.47 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.224e-05/0.2244, allocations: 95.88 kB / 438 MB, free: 35.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2244, allocations: 3.938 kB / 438 MB, free: 35.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002365/0.2247, allocations: 77.89 kB / 438.1 MB, free: 35.38 MB / 350.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.0001057/0.2248, allocations: 138.4 kB / 438.2 MB, free: 35.28 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003496/0.2251, allocations: 293.3 kB / 438.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.2251, allocations: 0 / 438.5 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004027/0.2256, allocations: 0.7256 MB / 439.2 MB, free: 34.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000248/0.2258, allocations: 56.45 kB / 439.3 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006966/0.2265, allocations: 459.4 kB / 439.7 MB, free: 34.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.12e-05/0.2266, allocations: 0.7167 MB / 440.5 MB, free: 33.74 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.496e-05/0.2267, allocations: 33.05 kB / 440.5 MB, free: 33.73 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2268, allocations: 43.89 kB / 440.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of SimCode: time 1.052e-06/0.2268, allocations: 0 / 440.5 MB, free: 33.72 MB / 350.1 MB Notification: Performance of Templates: time 0.004641/0.2315, allocations: 3.263 MB / 443.8 MB, free: 33.51 MB / 350.1 MB make -j1 -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=50 -emit_protected -lv LOG_STATS > PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_dev_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_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches