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.0007819/0.0007819, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008309/0.0008309, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.12/1.12, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.1611/0.1611, allocations: 16.77 MB / 307.9 MB, free: 15.59 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002417/0.0002417, allocations: 12 kB / 374.3 MB, free: 2.246 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2121, allocations: 54.56 MB / 428.8 MB, free: 38.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.000938/0.2131, allocations: 1.142 MB / 430 MB, free: 38.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006034/0.2137, allocations: 486.4 kB / 430.4 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.023e-05/0.2137, allocations: 0 / 430.4 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.549e-05/0.2137, allocations: 8.438 kB / 430.4 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.796e-05/0.2138, allocations: 8.016 kB / 430.4 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000147/0.214, allocations: 71 kB / 430.5 MB, free: 38.39 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001106/0.2141, allocations: 164.1 kB / 430.7 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.465e-05/0.2141, allocations: 4.469 kB / 430.7 MB, free: 38.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.908e-05/0.2142, allocations: 98.14 kB / 430.8 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.012e-05/0.2143, allocations: 87.61 kB / 430.9 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.776e-05/0.2143, allocations: 13.28 kB / 430.9 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.309e-05/0.2144, allocations: 12.59 kB / 430.9 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.812e-05/0.2144, allocations: 53.61 kB / 430.9 MB, free: 38.36 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.684e-05/0.2144, allocations: 63.97 kB / 431 MB, free: 38.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 7.396e-05/0.2145, allocations: 77.98 kB / 431.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2145, allocations: 2.531 kB / 431.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2145, allocations: 0 / 431.1 MB, free: 38.32 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.866e-06/0.2145, allocations: 0 / 431.1 MB, free: 38.32 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.0005651/0.2151, allocations: 495.4 kB / 431.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.613e-05/0.2151, allocations: 8.438 kB / 431.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.857e-05/0.2152, allocations: 21.5 kB / 431.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.403e-05/0.2153, allocations: 174.5 kB / 431.8 MB, free: 37.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.055e-05/0.2153, allocations: 15.88 kB / 431.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.777e-05/0.2154, allocations: 26.81 kB / 431.8 MB, free: 37.74 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004158/0.2158, allocations: 379.5 kB / 432.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.621e-06/0.2158, allocations: 0 / 432.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.909e-05/0.2158, allocations: 19 kB / 432.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.2159, allocations: 0 / 432.2 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001366/0.216, allocations: 65.22 kB / 432.3 MB, free: 37.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002592/0.2163, allocations: 370.3 kB / 432.6 MB, free: 37.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.2165, allocations: 175.5 kB / 432.8 MB, free: 37.41 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.2166, allocations: 162.9 kB / 433 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.011e-05/0.2166, allocations: 6.969 kB / 433 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005142/0.2172, allocations: 0.5316 MB / 433.5 MB, free: 37.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.303e-06/0.2172, allocations: 4 kB / 433.5 MB, free: 37.31 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.000691/0.2179, allocations: 0.6463 MB / 434.1 MB, free: 37.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.2179, allocations: 53.84 kB / 434.2 MB, free: 37.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.463e-05/0.218, allocations: 129.5 kB / 434.3 MB, free: 37.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.711e-05/0.218, allocations: 46.16 kB / 434.4 MB, free: 37.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.782e-05/0.218, allocations: 93.52 kB / 434.5 MB, free: 36.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.2181, allocations: 69.27 kB / 434.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.362e-05/0.2181, allocations: 7.219 kB / 434.5 MB, free: 36.96 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.236e-05/0.2182, allocations: 327.8 kB / 434.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.2183, allocations: 92.42 kB / 434.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001297/0.2184, allocations: 149.7 kB / 435.1 MB, free: 36.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.689e-05/0.2185, allocations: 51.27 kB / 435.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2185, allocations: 2.969 kB / 435.1 MB, free: 36.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002546/0.2188, allocations: 242.1 kB / 435.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.112e-05/0.2188, allocations: 7.891 kB / 435.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.979e-06/0.2188, allocations: 2.875 kB / 435.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-06/0.2188, allocations: 2.812 kB / 435.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.905e-05/0.2189, allocations: 19.88 kB / 435.4 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.2189, allocations: 6.812 kB / 435.4 MB, free: 36.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.219, allocations: 53.2 kB / 435.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.64e-05/0.2191, allocations: 9.781 kB / 435.5 MB, free: 36.38 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 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000117/0.2192, allocations: 153.8 kB / 435.6 MB, free: 36.24 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.322e-05/0.2192, allocations: 32.48 kB / 435.7 MB, free: 36.23 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.595e-05/0.2193, allocations: 36.2 kB / 435.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.2193, allocations: 2.656 kB / 435.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.2193, allocations: 0 / 435.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.2193, allocations: 3.188 kB / 435.7 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.2195, allocations: 269 kB / 436 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2195, allocations: 6.719 kB / 436 MB, free: 35.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.608e-05/0.2195, allocations: 10.75 kB / 436 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2195, allocations: 0 / 436 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.956e-05/0.2195, allocations: 26.97 kB / 436 MB, free: 35.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.2195, allocations: 10.64 kB / 436 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2196, allocations: 0 / 436 MB, free: 35.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000469/0.22, allocations: 0.5601 MB / 436.6 MB, free: 35.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9e-05/0.2201, allocations: 119.6 kB / 436.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.974e-05/0.2202, allocations: 24.17 kB / 436.7 MB, free: 35.6 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001641/0.2204, allocations: 48.31 kB / 436.8 MB, free: 35.59 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000148/0.2205, allocations: 117.5 kB / 436.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.565e-05/0.2206, allocations: 41.97 kB / 436.9 MB, free: 35.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.956e-05/0.2206, allocations: 100.4 kB / 437 MB, free: 35.48 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2206, allocations: 0 / 437 MB, free: 35.48 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002292/0.2208, allocations: 76.03 kB / 437.1 MB, free: 35.48 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.507e-05/0.2209, allocations: 138.9 kB / 437.2 MB, free: 35.37 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003358/0.2213, allocations: 295.4 kB / 437.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.423e-06/0.2213, allocations: 0 / 437.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003733/0.2217, allocations: 0.7292 MB / 438.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002347/0.2219, allocations: 50.34 kB / 438.3 MB, free: 34.77 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006672/0.2226, allocations: 459.9 kB / 438.7 MB, free: 34.54 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.429e-05/0.2227, allocations: 0.7132 MB / 439.5 MB, free: 33.84 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.119e-05/0.2228, allocations: 29.94 kB / 439.5 MB, free: 33.83 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.412e-05/0.2229, allocations: 35.97 kB / 439.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2229, allocations: 4 kB / 439.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of Templates: time 0.004351/0.2272, allocations: 3.111 MB / 442.6 MB, free: 33.61 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches