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.001419/0.001427, allocations: 106.3 kB / 16.42 MB, free: 6.5 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.001438/0.001438, allocations: 185.5 kB / 17.35 MB, free: 5.762 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.461/1.461, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06291/0.06291, allocations: 14.16 MB / 284.7 MB, free: 13.86 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.00145/0.00145, allocations: 69.27 kB / 398.6 MB, free: 43.09 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08068/0.08214, allocations: 50.14 MB / 448.8 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002632/0.08482, allocations: 1.43 MB / 450.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009479/0.0858, allocations: 0.527 MB / 450.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.172e-05/0.08585, allocations: 0 / 450.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.723e-05/0.0859, allocations: 3.938 kB / 450.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001014/0.08601, allocations: 11.86 kB / 450.8 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002113/0.08623, allocations: 79.83 kB / 450.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001757/0.08641, allocations: 187.6 kB / 451 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.29e-05/0.08647, allocations: 7.938 kB / 451 MB, free: 9.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001255/0.0866, allocations: 103.7 kB / 451.1 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001137/0.08672, allocations: 87.73 kB / 451.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.816e-05/0.08676, allocations: 16 kB / 451.2 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.738e-05/0.0868, allocations: 12 kB / 451.2 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.943e-05/0.08687, allocations: 59.84 kB / 451.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.755e-05/0.08697, allocations: 71.78 kB / 451.4 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001633/0.08714, allocations: 135.6 kB / 451.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.08715, allocations: 0 / 451.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.08716, allocations: 4 kB / 451.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.889e-06/0.08717, allocations: 0 / 451.5 MB, free: 9.441 MB / 334.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.0009755/0.08815, allocations: 0.5497 MB / 452.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.08819, allocations: 8.031 kB / 452.1 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.523e-05/0.0883, allocations: 28.77 kB / 452.1 MB, free: 8.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001318/0.08843, allocations: 168.3 kB / 452.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.08846, allocations: 24.36 kB / 452.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.457e-05/0.08853, allocations: 24.34 kB / 452.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005665/0.08911, allocations: 385.3 kB / 452.7 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.556e-06/0.08912, allocations: 0 / 452.7 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.946e-05/0.08918, allocations: 15.92 kB / 452.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.08919, allocations: 4 kB / 452.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001772/0.08937, allocations: 67.88 kB / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003993/0.08978, allocations: 376.5 kB / 453.1 MB, free: 7.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002853/0.09007, allocations: 178.5 kB / 453.3 MB, free: 7.488 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002389/0.09032, allocations: 161 kB / 453.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.606e-06/0.09033, allocations: 0 / 453.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007805/0.09112, allocations: 0.5219 MB / 454 MB, free: 6.793 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.743e-06/0.09113, allocations: 0 / 454 MB, free: 6.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001013/0.09215, allocations: 0.651 MB / 454.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.59e-05/0.09221, allocations: 55.41 kB / 454.7 MB, free: 6.07 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.09235, allocations: 125.2 kB / 454.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.09241, allocations: 45.69 kB / 454.9 MB, free: 5.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.247e-05/0.09248, allocations: 96.69 kB / 454.9 MB, free: 5.793 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.241e-05/0.09256, allocations: 75.19 kB / 455 MB, free: 5.719 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001077/0.09268, allocations: 57.7 kB / 455.1 MB, free: 5.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001415/0.09283, allocations: 330.8 kB / 455.4 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001786/0.09301, allocations: 84.3 kB / 455.5 MB, free: 5.238 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002208/0.09324, allocations: 163.3 kB / 455.6 MB, free: 5.055 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003571/0.0936, allocations: 233.7 kB / 455.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.09361, allocations: 0 / 455.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004129/0.09403, allocations: 237.3 kB / 456.1 MB, free: 4.57 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.09406, allocations: 7.938 kB / 456.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.09407, allocations: 12.11 kB / 456.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.0941, allocations: 4 kB / 456.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.748e-05/0.0942, allocations: 15.92 kB / 456.1 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.134e-05/0.09422, allocations: 7.938 kB / 456.2 MB, free: 4.523 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.09445, allocations: 35.95 kB / 456.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.045e-05/0.09448, allocations: 8 kB / 456.2 MB, free: 4.48 MB / 334.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.000218/0.09471, allocations: 167.6 kB / 456.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.09477, allocations: 27.84 kB / 456.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.185e-05/0.09485, allocations: 33.61 kB / 456.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.529e-06/0.09486, allocations: 4 kB / 456.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.09487, allocations: 0 / 456.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.09488, allocations: 0 / 456.4 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.09514, allocations: 273.4 kB / 456.7 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.09515, allocations: 4 kB / 456.7 MB, free: 3.922 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.059e-05/0.09518, allocations: 11.92 kB / 456.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.0952, allocations: 4 kB / 456.7 MB, free: 3.906 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.34e-05/0.09525, allocations: 27.95 kB / 456.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.09526, allocations: 4 kB / 456.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.09526, allocations: 0 / 456.7 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001383/0.09665, allocations: 1.513 MB / 458.3 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001536/0.09682, allocations: 128.8 kB / 458.4 MB, free: 2.152 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.231e-05/0.09691, allocations: 23.91 kB / 458.4 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.09715, allocations: 43.94 kB / 458.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.09736, allocations: 79.84 kB / 458.5 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.09742, allocations: 47.95 kB / 458.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.473e-05/0.09748, allocations: 91.27 kB / 458.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.09749, allocations: 8 kB / 458.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004306/0.09792, allocations: 71.98 kB / 458.7 MB, free: 1.793 MB / 334.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.0001745/0.0981, allocations: 137.4 kB / 458.9 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004564/0.09857, allocations: 291.8 kB / 459.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.09858, allocations: 0 / 459.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005688/0.09915, allocations: 0.7225 MB / 459.9 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.09948, allocations: 51.94 kB / 459.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001139/0.1006, allocations: 0.6083 MB / 460.5 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003074/0.1009, allocations: 0.7254 MB / 461.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000122/0.1011, allocations: 33.94 kB / 461.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001283/0.1012, allocations: 51.33 kB / 461.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1012, allocations: 0 / 461.3 MB, free: 15.1 MB / 350.1 MB Notification: Performance of Templates: time 0.007729/0.109, allocations: 3.673 MB / 465 MB, free: 11.44 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches