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.001601/0.001601, allocations: 101.7 kB / 15.99 MB, free: 6.352 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.001745/0.001745, allocations: 197.8 kB / 16.92 MB, free: 6.195 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.357/1.357, allocations: 205.1 MB / 222.8 MB, free: 4.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06289/0.06289, allocations: 14.15 MB / 284.3 MB, free: 7.254 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.001663/0.001664, allocations: 71.84 kB / 346.6 MB, free: 18.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09111/0.09279, allocations: 50.13 MB / 396.7 MB, free: 184 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002628/0.09545, allocations: 1.495 MB / 398.2 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009807/0.09645, allocations: 0.5388 MB / 398.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.36e-05/0.09652, allocations: 0 / 398.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.283e-05/0.09658, allocations: 3.938 kB / 398.8 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.95e-05/0.09666, allocations: 7.922 kB / 398.8 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001928/0.09686, allocations: 63.86 kB / 398.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001789/0.09705, allocations: 191.6 kB / 399 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.731e-05/0.0971, allocations: 0 / 399 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001397/0.09725, allocations: 99.78 kB / 399.1 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.09737, allocations: 87.73 kB / 399.2 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.945e-05/0.09741, allocations: 16 kB / 399.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.875e-05/0.09745, allocations: 12 kB / 399.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.232e-05/0.09752, allocations: 63.83 kB / 399.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.937e-05/0.09762, allocations: 83.72 kB / 399.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.09779, allocations: 135.9 kB / 399.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.0978, allocations: 0 / 399.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.09781, allocations: 0 / 399.5 MB, free: 13.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.09782, allocations: 0 / 399.5 MB, free: 13.38 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.000998/0.09882, allocations: 0.5612 MB / 400.1 MB, free: 12.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.09886, allocations: 12.03 kB / 400.1 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.09897, allocations: 20.83 kB / 400.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/0.09912, allocations: 180.3 kB / 400.3 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.636e-05/0.09915, allocations: 12.36 kB / 400.3 MB, free: 12.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.828e-05/0.09923, allocations: 24.36 kB / 400.3 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006222/0.09985, allocations: 381.3 kB / 400.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.09987, allocations: 0 / 400.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-05/0.09993, allocations: 19.97 kB / 400.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.09994, allocations: 0 / 400.7 MB, free: 12.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001812/0.1001, allocations: 67.94 kB / 400.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003959/0.1005, allocations: 368.6 kB / 401.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002648/0.1008, allocations: 174.5 kB / 401.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000228/0.101, allocations: 164.8 kB / 401.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.332e-05/0.1011, allocations: 0 / 401.5 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007297/0.1018, allocations: 0.523 MB / 402 MB, free: 10.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.753e-06/0.1018, allocations: 0 / 402 MB, free: 10.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009191/0.1027, allocations: 0.6419 MB / 402.6 MB, free: 10.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.474e-05/0.1028, allocations: 71.39 kB / 402.7 MB, free: 10 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.1029, allocations: 121.8 kB / 402.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.992e-05/0.103, allocations: 45.69 kB / 402.9 MB, free: 9.82 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.301e-05/0.103, allocations: 96.69 kB / 403 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.589e-05/0.1031, allocations: 71.17 kB / 403 MB, free: 9.652 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.894e-05/0.1032, allocations: 57.7 kB / 403.1 MB, free: 9.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1033, allocations: 334.8 kB / 403.4 MB, free: 9.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001461/0.1035, allocations: 84.3 kB / 403.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.1037, allocations: 155.4 kB / 403.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003678/0.104, allocations: 245.6 kB / 403.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.104, allocations: 4 kB / 403.9 MB, free: 8.734 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003819/0.1044, allocations: 249 kB / 404.1 MB, free: 8.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/0.1045, allocations: 4 kB / 404.1 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.1045, allocations: 7.938 kB / 404.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.1045, allocations: 0 / 404.1 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.137e-05/0.1046, allocations: 19.92 kB / 404.2 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.666e-06/0.1046, allocations: 3.984 kB / 404.2 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002095/0.1048, allocations: 40.09 kB / 404.2 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.13e-05/0.1048, allocations: 8 kB / 404.2 MB, free: 8.406 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.0002106/0.1051, allocations: 164.1 kB / 404.4 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.868e-05/0.1051, allocations: 31.8 kB / 404.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.367e-05/0.1052, allocations: 33.62 kB / 404.4 MB, free: 8.176 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.779e-06/0.1052, allocations: 4 kB / 404.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.473e-06/0.1052, allocations: 0 / 404.4 MB, free: 8.172 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.1052, allocations: 3.984 kB / 404.5 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002517/0.1055, allocations: 269.4 kB / 404.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1055, allocations: 0 / 404.7 MB, free: 7.855 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-05/0.1055, allocations: 7.938 kB / 404.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1056, allocations: 4 kB / 404.7 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.517e-05/0.1056, allocations: 27.95 kB / 404.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1056, allocations: 0 / 404.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1056, allocations: 0 / 404.8 MB, free: 7.816 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.1069, allocations: 1.509 MB / 406.3 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001354/0.1071, allocations: 116.8 kB / 406.4 MB, free: 6.109 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.794e-05/0.1071, allocations: 27.91 kB / 406.4 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002113/0.1074, allocations: 43.94 kB / 406.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001993/0.1076, allocations: 87.83 kB / 406.5 MB, free: 5.953 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-05/0.1076, allocations: 43.95 kB / 406.6 MB, free: 5.91 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.289e-05/0.1077, allocations: 103 kB / 406.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1077, allocations: 0 / 406.7 MB, free: 5.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003945/0.1081, allocations: 75.98 kB / 406.7 MB, free: 5.738 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.0001595/0.1083, allocations: 129.5 kB / 406.9 MB, free: 5.605 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005002/0.1088, allocations: 316.8 kB / 407.2 MB, free: 5.297 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.1088, allocations: 3.938 kB / 407.2 MB, free: 5.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006327/0.1094, allocations: 0.7303 MB / 407.9 MB, free: 4.562 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.1097, allocations: 47.89 kB / 408 MB, free: 4.516 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001069/0.1108, allocations: 0.6348 MB / 408.6 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000264/0.1111, allocations: 0.7254 MB / 409.3 MB, free: 3.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001199/0.1112, allocations: 37.92 kB / 409.4 MB, free: 3.051 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001195/0.1113, allocations: 39.41 kB / 409.4 MB, free: 3.012 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1113, allocations: 0 / 409.4 MB, free: 3.012 MB / 302.1 MB Notification: Performance of Templates: time 0.006785/0.1181, allocations: 3.586 MB / 413 MB, free: 15.43 MB / 318.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","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches