Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerGrids_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_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_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.001321/0.001321, allocations: 97.33 kB / 15.36 MB, free: 0.7344 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.01107/0.01107, allocations: 169.8 kB / 16.27 MB, free: 6.652 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.528/1.528, allocations: 205.4 MB / 222.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06805/0.06805, allocations: 14.16 MB / 284.9 MB, free: 7.035 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.0005563/0.0005563, allocations: 12 kB / 348.1 MB, free: 18.18 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09009/0.09066, allocations: 51.1 MB / 399.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001595/0.0923, allocations: 1.164 MB / 400.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009615/0.09329, allocations: 0.5349 MB / 400.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.919e-05/0.09336, allocations: 0 / 400.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.389e-05/0.0934, allocations: 3.938 kB / 400.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.216e-05/0.09349, allocations: 7.922 kB / 400.9 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002368/0.09373, allocations: 63.88 kB / 401 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001914/0.09393, allocations: 183.6 kB / 401.2 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.543e-05/0.094, allocations: 11.98 kB / 401.2 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.09415, allocations: 99.78 kB / 401.3 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001387/0.09429, allocations: 87.73 kB / 401.4 MB, free: 12.86 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.293e-05/0.09434, allocations: 12 kB / 401.4 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.05e-05/0.09438, allocations: 12 kB / 401.4 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.917e-05/0.09444, allocations: 55.84 kB / 401.5 MB, free: 12.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.09459, allocations: 117.5 kB / 401.6 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.09475, allocations: 127.9 kB / 401.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.09476, allocations: 0 / 401.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.09477, allocations: 0 / 401.7 MB, free: 12.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.508e-06/0.09478, allocations: 0 / 401.7 MB, free: 12.54 MB / 302.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.0009564/0.09574, allocations: 499 kB / 402.2 MB, free: 12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.479e-05/0.09581, allocations: 15.97 kB / 402.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001044/0.09592, allocations: 24.84 kB / 402.2 MB, free: 11.96 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.0961, allocations: 179.8 kB / 402.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.18e-05/0.09614, allocations: 8.359 kB / 402.4 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.939e-05/0.09623, allocations: 32.34 kB / 402.4 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005957/0.09683, allocations: 377.4 kB / 402.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.09e-05/0.09685, allocations: 3.984 kB / 402.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.32e-05/0.09691, allocations: 11.92 kB / 402.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.533e-06/0.09692, allocations: 4 kB / 402.8 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.09712, allocations: 63.94 kB / 402.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004135/0.09754, allocations: 376.6 kB / 403.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002863/0.09783, allocations: 174.8 kB / 403.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000235/0.09808, allocations: 164.8 kB / 403.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.295e-05/0.0981, allocations: 0 / 403.6 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007668/0.09887, allocations: 0.5151 MB / 404.1 MB, free: 9.969 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.09888, allocations: 3.938 kB / 404.1 MB, free: 9.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009904/0.09988, allocations: 0.6496 MB / 404.8 MB, free: 9.309 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.879e-05/0.09995, allocations: 63.39 kB / 404.8 MB, free: 9.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.1001, allocations: 125.8 kB / 404.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.305e-05/0.1001, allocations: 45.69 kB / 405 MB, free: 9.051 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.682e-05/0.1002, allocations: 92.7 kB / 405.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.749e-05/0.1003, allocations: 79.12 kB / 405.2 MB, free: 8.879 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.074e-05/0.1003, allocations: 33.7 kB / 405.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1004, allocations: 330.8 kB / 405.5 MB, free: 8.508 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001563/0.1006, allocations: 84.3 kB / 405.6 MB, free: 8.422 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00021/0.1008, allocations: 159.4 kB / 405.7 MB, free: 8.242 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000389/0.1012, allocations: 241.6 kB / 406 MB, free: 7.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1012, allocations: 0 / 406 MB, free: 7.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003852/0.1016, allocations: 245.3 kB / 406.2 MB, free: 7.742 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.1017, allocations: 11.94 kB / 406.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.1017, allocations: 0 / 406.2 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.527e-05/0.1017, allocations: 4 kB / 406.2 MB, free: 7.727 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.495e-05/0.1018, allocations: 19.97 kB / 406.3 MB, free: 7.707 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.427e-06/0.1018, allocations: 4 kB / 406.3 MB, free: 7.703 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.1021, allocations: 47.94 kB / 406.3 MB, free: 7.656 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.047e-05/0.1021, allocations: 12.03 kB / 406.3 MB, free: 7.645 MB / 302.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.000225/0.1023, allocations: 157.5 kB / 406.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.471e-05/0.1024, allocations: 31.8 kB / 406.5 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.797e-05/0.1025, allocations: 29.62 kB / 406.5 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.1025, allocations: 7.984 kB / 406.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.1025, allocations: 0 / 406.5 MB, free: 7.414 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.1025, allocations: 4 kB / 406.5 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000292/0.1028, allocations: 273.4 kB / 406.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1028, allocations: 0 / 406.8 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.465e-05/0.1029, allocations: 7.938 kB / 406.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.322e-06/0.1029, allocations: 7.984 kB / 406.8 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.841e-05/0.1029, allocations: 27.95 kB / 406.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.103, allocations: 0 / 406.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.103, allocations: 0 / 406.9 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007866/0.1038, allocations: 0.5631 MB / 407.4 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.1039, allocations: 116.8 kB / 407.5 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.317e-05/0.104, allocations: 27.95 kB / 407.6 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.1043, allocations: 47.94 kB / 407.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002214/0.1045, allocations: 83.83 kB / 407.7 MB, free: 6.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.675e-05/0.1046, allocations: 47.89 kB / 407.7 MB, free: 6.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.479e-05/0.1046, allocations: 102.6 kB / 407.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1046, allocations: 0 / 407.8 MB, free: 6.035 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003374/0.105, allocations: 75.98 kB / 407.9 MB, free: 5.961 MB / 302.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.0001689/0.1052, allocations: 129.5 kB / 408 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005511/0.1057, allocations: 300.9 kB / 408.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.1057, allocations: 0 / 408.3 MB, free: 5.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006416/0.1064, allocations: 0.7263 MB / 409.1 MB, free: 4.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003395/0.1067, allocations: 58.62 kB / 409.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009631/0.1077, allocations: 462.9 kB / 409.6 MB, free: 4.277 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.108, allocations: 0.7218 MB / 410.3 MB, free: 3.531 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001144/0.1081, allocations: 29.94 kB / 410.3 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001269/0.1083, allocations: 43.39 kB / 410.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1083, allocations: 0 / 410.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of Templates: time 0.007322/0.1156, allocations: 3.257 MB / 413.6 MB, free: 216 kB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches