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.001106/0.001106, allocations: 108.7 kB / 16.41 MB, free: 6.492 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.001161/0.001162, allocations: 185.5 kB / 17.34 MB, free: 5.762 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.2/1.2, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.07363/0.07363, allocations: 16.77 MB / 308 MB, free: 14.43 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001134, allocations: 67.89 kB / 428.7 MB, free: 9.094 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07769/0.07883, allocations: 53.55 MB / 482.3 MB, free: 3.484 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002023/0.08089, allocations: 1.447 MB / 483.7 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007859/0.08168, allocations: 494.8 kB / 484.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.628e-05/0.08173, allocations: 0 / 484.2 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.936e-05/0.08176, allocations: 3.938 kB / 484.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.996e-05/0.08184, allocations: 19.86 kB / 484.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001752/0.08202, allocations: 83.77 kB / 484.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001563/0.08218, allocations: 187.6 kB / 484.5 MB, free: 1.25 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.907e-05/0.08223, allocations: 4 kB / 484.5 MB, free: 1.246 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.08234, allocations: 103.8 kB / 484.6 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.825e-05/0.08244, allocations: 83.73 kB / 484.7 MB, free: 1.062 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.642e-05/0.08248, allocations: 12 kB / 484.7 MB, free: 1.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.973e-05/0.08252, allocations: 12 kB / 484.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.999e-05/0.08258, allocations: 59.84 kB / 484.8 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.118e-05/0.08268, allocations: 75.78 kB / 484.9 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001405/0.08283, allocations: 131.6 kB / 485 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.08284, allocations: 0 / 485 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.08284, allocations: 3.938 kB / 485 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.08285, allocations: 0 / 485 MB, free: 0.7734 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.0008407/0.08369, allocations: 0.5574 MB / 485.5 MB, free: 172 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.953e-05/0.08373, allocations: 8.031 kB / 485.6 MB, free: 164 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.758e-05/0.08382, allocations: 24.83 kB / 485.6 MB, free: 140 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001213/0.08395, allocations: 179.8 kB / 485.8 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.08398, allocations: 20.34 kB / 485.8 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.863e-05/0.08404, allocations: 20.36 kB / 485.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/0.0846, allocations: 377.4 kB / 486.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.175e-06/0.08462, allocations: 3.938 kB / 486.2 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.917e-05/0.08467, allocations: 19.97 kB / 486.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.08468, allocations: 0 / 486.2 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.08485, allocations: 63.95 kB / 486.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003515/0.08521, allocations: 376.5 kB / 486.6 MB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.08546, allocations: 178.5 kB / 486.8 MB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.08568, allocations: 160.8 kB / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.08569, allocations: 0 / 486.9 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006277/0.08633, allocations: 0.5287 MB / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of pre-optimization done (n=30): time 1.322e-06/0.08634, allocations: 0 / 487.5 MB, free: 14.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008751/0.08722, allocations: 0.6457 MB / 488.1 MB, free: 13.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.08e-05/0.08727, allocations: 55.41 kB / 488.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.839e-05/0.08736, allocations: 125.8 kB / 488.3 MB, free: 13.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.201e-05/0.08741, allocations: 41.69 kB / 488.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.063e-05/0.08746, allocations: 104.6 kB / 488.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.796e-05/0.08753, allocations: 75.22 kB / 488.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.813e-05/0.08761, allocations: 53.7 kB / 488.6 MB, free: 12.99 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.483e-05/0.08771, allocations: 330.8 kB / 488.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.08785, allocations: 92.14 kB / 489 MB, free: 12.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.08803, allocations: 155.4 kB / 489.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003044/0.08834, allocations: 229.8 kB / 489.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.08835, allocations: 0 / 489.4 MB, free: 12.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003387/0.08869, allocations: 249.1 kB / 489.6 MB, free: 11.9 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.194e-05/0.08871, allocations: 8 kB / 489.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.08872, allocations: 0 / 489.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.292e-05/0.08874, allocations: 4 kB / 489.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.194e-05/0.08881, allocations: 11.94 kB / 489.6 MB, free: 11.88 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.073e-06/0.08883, allocations: 4 kB / 489.6 MB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001977/0.08903, allocations: 43.86 kB / 489.7 MB, free: 11.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/0.08905, allocations: 8 kB / 489.7 MB, free: 11.82 MB / 366.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.0001726/0.08923, allocations: 165.6 kB / 489.8 MB, free: 11.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.929e-05/0.08929, allocations: 27.8 kB / 489.9 MB, free: 11.62 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.542e-05/0.08936, allocations: 29.62 kB / 489.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.08937, allocations: 4 kB / 489.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.08937, allocations: 0 / 489.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.08938, allocations: 48 / 489.9 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.08961, allocations: 289.4 kB / 490.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.08962, allocations: 4 kB / 490.2 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.465e-05/0.08965, allocations: 7.938 kB / 490.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.08965, allocations: 0 / 490.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.636e-05/0.08969, allocations: 27.95 kB / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.0897, allocations: 0 / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.0897, allocations: 0 / 490.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006354/0.09034, allocations: 0.5642 MB / 490.8 MB, free: 10.63 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001264/0.09048, allocations: 124.8 kB / 490.9 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.044e-05/0.09056, allocations: 31.97 kB / 490.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001986/0.09076, allocations: 39.94 kB / 491 MB, free: 10.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001785/0.09095, allocations: 87.78 kB / 491.1 MB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.292e-05/0.091, allocations: 39.95 kB / 491.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.922e-05/0.09105, allocations: 98.64 kB / 491.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09106, allocations: 0 / 491.2 MB, free: 10.2 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000284/0.09134, allocations: 83.97 kB / 491.3 MB, free: 10.12 MB / 366.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.000126/0.09148, allocations: 137.4 kB / 491.4 MB, free: 9.977 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004276/0.09191, allocations: 291.8 kB / 491.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.09192, allocations: 0 / 491.7 MB, free: 9.691 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000544/0.09247, allocations: 0.7263 MB / 492.4 MB, free: 8.965 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.09274, allocations: 58.39 kB / 492.5 MB, free: 8.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008243/0.09358, allocations: 466.4 kB / 492.9 MB, free: 8.426 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002215/0.09381, allocations: 0.7178 MB / 493.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.09393, allocations: 39.41 kB / 493.7 MB, free: 7.641 MB / 366.1 MB Notification: Performance of SimCode: time 3.7e-07/0.09393, allocations: 0 / 493.7 MB, free: 7.641 MB / 366.1 MB Notification: Performance of Templates: time 0.003732/0.09767, allocations: 2.617 MB / 496.3 MB, free: 5.031 MB / 366.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/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