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.001388/0.001388, allocations: 104.9 kB / 17.08 MB, free: 5.938 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.001543/0.001543, allocations: 200.2 kB / 18.02 MB, free: 5.023 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.302/1.302, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06301/0.06301, allocations: 14.16 MB / 285.4 MB, free: 13.85 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.001429/0.001429, allocations: 72.61 kB / 399.3 MB, free: 43.04 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0722/0.07363, allocations: 50.13 MB / 449.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002492/0.07617, allocations: 1.43 MB / 450.9 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001023/0.07722, allocations: 0.5387 MB / 451.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.445e-05/0.07728, allocations: 0 / 451.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.604e-05/0.07732, allocations: 3.938 kB / 451.4 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.792e-05/0.07743, allocations: 15.86 kB / 451.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.07767, allocations: 75.83 kB / 451.5 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002189/0.07789, allocations: 187.6 kB / 451.7 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.948e-05/0.07796, allocations: 11.94 kB / 451.7 MB, free: 9.918 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001326/0.0781, allocations: 99.78 kB / 451.8 MB, free: 9.82 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001275/0.07823, allocations: 91.72 kB / 451.9 MB, free: 9.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.156e-05/0.07828, allocations: 12 kB / 451.9 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.176e-05/0.07833, allocations: 12 kB / 451.9 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.549e-05/0.0784, allocations: 59.78 kB / 452 MB, free: 9.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.0785, allocations: 71.8 kB / 452.1 MB, free: 9.578 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001772/0.07869, allocations: 131.6 kB / 452.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.0787, allocations: 0 / 452.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.07871, allocations: 0 / 452.2 MB, free: 9.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.07872, allocations: 0 / 452.2 MB, free: 9.449 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.0009911/0.07971, allocations: 0.5575 MB / 452.7 MB, free: 8.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.07976, allocations: 8.031 kB / 452.7 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.07987, allocations: 20.84 kB / 452.8 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000153/0.08003, allocations: 172.3 kB / 452.9 MB, free: 8.609 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.08006, allocations: 16.36 kB / 453 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.019e-05/0.08013, allocations: 36.22 kB / 453 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.08073, allocations: 377.4 kB / 453.4 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.08075, allocations: 0 / 453.4 MB, free: 8.184 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.324e-05/0.0808, allocations: 15.98 kB / 453.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.08082, allocations: 3.938 kB / 453.4 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001832/0.081, allocations: 67.94 kB / 453.4 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004257/0.08144, allocations: 372.5 kB / 453.8 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002617/0.08171, allocations: 174.5 kB / 454 MB, free: 7.504 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002379/0.08195, allocations: 156.8 kB / 454.1 MB, free: 7.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.08197, allocations: 4 kB / 454.1 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007422/0.08272, allocations: 0.5299 MB / 454.7 MB, free: 6.801 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.873e-06/0.08273, allocations: 4 kB / 454.7 MB, free: 6.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009689/0.08371, allocations: 0.6472 MB / 455.3 MB, free: 6.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.08376, allocations: 59.34 kB / 455.4 MB, free: 6.074 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.08388, allocations: 129.3 kB / 455.5 MB, free: 5.941 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.825e-05/0.08393, allocations: 41.69 kB / 455.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.526e-05/0.084, allocations: 92.7 kB / 455.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.498e-05/0.08408, allocations: 79.17 kB / 455.7 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.832e-05/0.08417, allocations: 53.7 kB / 455.8 MB, free: 5.664 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001134/0.08429, allocations: 334.8 kB / 456.1 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.08445, allocations: 84.3 kB / 456.2 MB, free: 5.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002072/0.08466, allocations: 151.4 kB / 456.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003567/0.08503, allocations: 237.7 kB / 456.5 MB, free: 4.82 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.08504, allocations: 0 / 456.5 MB, free: 4.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003597/0.0854, allocations: 241.2 kB / 456.8 MB, free: 4.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.08543, allocations: 8 kB / 456.8 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-06/0.08544, allocations: 3.938 kB / 456.8 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.08546, allocations: 4 kB / 456.8 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.191e-05/0.08556, allocations: 20.05 kB / 456.8 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.08557, allocations: 4 kB / 456.8 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002227/0.0858, allocations: 39.95 kB / 456.9 MB, free: 4.5 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.965e-05/0.08583, allocations: 8 kB / 456.9 MB, free: 4.492 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.0002122/0.08605, allocations: 161.5 kB / 457 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.08611, allocations: 23.89 kB / 457 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.602e-05/0.08619, allocations: 33.56 kB / 457.1 MB, free: 4.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.0862, allocations: 11.92 kB / 457.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.08621, allocations: 0 / 457.1 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.08622, allocations: 8.031 kB / 457.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002494/0.08648, allocations: 273.4 kB / 457.4 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.08649, allocations: 4 kB / 457.4 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.762e-05/0.08652, allocations: 8 kB / 457.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.08653, allocations: 3.984 kB / 457.4 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.788e-05/0.08657, allocations: 23.95 kB / 457.4 MB, free: 3.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.08658, allocations: 4 kB / 457.4 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/0.08659, allocations: 4 kB / 457.4 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.08787, allocations: 1.509 MB / 458.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001487/0.08803, allocations: 128.7 kB / 459.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.634e-05/0.08811, allocations: 31.89 kB / 459.1 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.08833, allocations: 39.94 kB / 459.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001937/0.08853, allocations: 83.84 kB / 459.2 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.702e-05/0.08859, allocations: 43.95 kB / 459.2 MB, free: 1.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.538e-05/0.08865, allocations: 95.27 kB / 459.3 MB, free: 1.875 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08866, allocations: 0 / 459.3 MB, free: 1.875 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004018/0.08906, allocations: 71.98 kB / 459.4 MB, free: 1.805 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.0001752/0.08924, allocations: 141.4 kB / 459.5 MB, free: 1.656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004988/0.08975, allocations: 287.8 kB / 459.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.08976, allocations: 0 / 459.8 MB, free: 1.375 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005981/0.09037, allocations: 0.7342 MB / 460.6 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.0003171/0.0907, allocations: 44.67 kB / 460.6 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001063/0.09177, allocations: 0.6294 MB / 461.2 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002957/0.09208, allocations: 0.7216 MB / 462 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001284/0.09222, allocations: 47.39 kB / 462 MB, free: 15.12 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.09223, allocations: 0 / 462 MB, free: 15.12 MB / 350.1 MB Notification: Performance of Templates: time 0.004147/0.09638, allocations: 2.605 MB / 464.6 MB, free: 12.53 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/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