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.004435/0.004435, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001108/0.001108, allocations: 193.7 kB / 16.67 MB, free: 5.977 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 2.0.0-develop/package.mo): time 0.2511/0.2511, allocations: 16.78 MB / 307.3 MB, free: 14.68 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00116/0.00116, allocations: 61.56 kB / 428.1 MB, free: 36.59 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09369, allocations: 53.57 MB / 481.6 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001974/0.0957, allocations: 1.448 MB / 483.1 MB, free: 8.34 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007747/0.0965, allocations: 0.4902 MB / 483.6 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.08e-05/0.09655, allocations: 4 kB / 483.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.988e-05/0.09659, allocations: 5.219 kB / 483.6 MB, free: 7.949 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.269e-05/0.09666, allocations: 21.09 kB / 483.6 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001591/0.09683, allocations: 72.89 kB / 483.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001418/0.09698, allocations: 186.9 kB / 483.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.17e-05/0.09703, allocations: 4.125 kB / 483.8 MB, free: 7.781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.792e-05/0.09713, allocations: 102.8 kB / 483.9 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.244e-05/0.09723, allocations: 87.92 kB / 484 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.421e-05/0.09727, allocations: 12.66 kB / 484 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.628e-05/0.0973, allocations: 12.81 kB / 484.1 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.914e-05/0.09735, allocations: 59.75 kB / 484.1 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.911e-05/0.09745, allocations: 73.3 kB / 484.2 MB, free: 7.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001351/0.09759, allocations: 139 kB / 484.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.0976, allocations: 0 / 484.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.0976, allocations: 0 / 484.3 MB, free: 7.469 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.09761, allocations: 1.375 kB / 484.3 MB, free: 7.469 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.0007985/0.09842, allocations: 0.5513 MB / 484.9 MB, free: 6.969 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.968e-05/0.09845, allocations: 12.25 kB / 484.9 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.278e-05/0.09854, allocations: 24 kB / 484.9 MB, free: 6.957 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.557e-05/0.09863, allocations: 185.2 kB / 485.1 MB, free: 6.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.707e-05/0.09866, allocations: 15.22 kB / 485.1 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.091e-05/0.09872, allocations: 30.17 kB / 485.1 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004654/0.09919, allocations: 376.5 kB / 485.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-06/0.09921, allocations: 1.375 kB / 485.5 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.09925, allocations: 12.05 kB / 485.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.09926, allocations: 1.375 kB / 485.5 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.09943, allocations: 67.69 kB / 485.6 MB, free: 6.414 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003085/0.09975, allocations: 371.4 kB / 485.9 MB, free: 6.047 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002146/0.09997, allocations: 176.4 kB / 486.1 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002038/0.1002, allocations: 169 kB / 486.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.1002, allocations: 1.281 kB / 486.3 MB, free: 5.84 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000645/0.1008, allocations: 0.5253 MB / 486.8 MB, free: 5.504 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.663e-06/0.1009, allocations: 3.938 kB / 486.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008974/0.1018, allocations: 0.645 MB / 487.5 MB, free: 5.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.1018, allocations: 55.62 kB / 487.5 MB, free: 5.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.89e-05/0.1019, allocations: 128.9 kB / 487.6 MB, free: 4.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.501e-05/0.1019, allocations: 49.75 kB / 487.7 MB, free: 4.934 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.261e-05/0.102, allocations: 87.11 kB / 487.8 MB, free: 4.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.577e-05/0.102, allocations: 77.89 kB / 487.9 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.06e-05/0.1021, allocations: 54.05 kB / 487.9 MB, free: 4.742 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.454e-05/0.1022, allocations: 330.8 kB / 488.2 MB, free: 4.414 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.1023, allocations: 93.23 kB / 488.3 MB, free: 4.363 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.1025, allocations: 155.4 kB / 488.5 MB, free: 4.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002538/0.1027, allocations: 225.8 kB / 488.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.1027, allocations: 0 / 488.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002852/0.103, allocations: 249.1 kB / 488.9 MB, free: 3.699 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.103, allocations: 11.98 kB / 488.9 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.103, allocations: 0 / 488.9 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.1031, allocations: 4 kB / 488.9 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.772e-05/0.1031, allocations: 15.94 kB / 489 MB, free: 3.668 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.345e-06/0.1032, allocations: 4 kB / 489 MB, free: 3.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001955/0.1034, allocations: 39.89 kB / 489 MB, free: 3.625 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.944e-05/0.1034, allocations: 16.12 kB / 489 MB, free: 3.609 MB / 350.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.0001448/0.1035, allocations: 159.9 kB / 489.2 MB, free: 3.445 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.281e-05/0.1036, allocations: 27.89 kB / 489.2 MB, free: 3.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.846e-05/0.1037, allocations: 33.62 kB / 489.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.1037, allocations: 0 / 489.2 MB, free: 3.383 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1037, allocations: 3.938 kB / 489.2 MB, free: 3.379 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1037, allocations: 8 kB / 489.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001508/0.1038, allocations: 281.4 kB / 489.5 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.185e-06/0.1039, allocations: 3.984 kB / 489.5 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.614e-05/0.1039, allocations: 7.938 kB / 489.5 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.1039, allocations: 0 / 489.5 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.274e-05/0.1039, allocations: 27.95 kB / 489.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1039, allocations: 0 / 489.6 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1039, allocations: 4 kB / 489.6 MB, free: 3.004 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005357/0.1045, allocations: 0.5681 MB / 490.1 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001081/0.1046, allocations: 120.9 kB / 490.3 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.352e-05/0.1047, allocations: 24.02 kB / 490.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.1049, allocations: 43.92 kB / 490.3 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001752/0.105, allocations: 83.84 kB / 490.4 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.096e-05/0.1051, allocations: 47.89 kB / 490.5 MB, free: 2.086 MB / 350.1 MB Notification: Performance of sorting global known variables: time 3.511e-05/0.1051, allocations: 95.27 kB / 490.5 MB, free: 1.992 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.1051, allocations: 0 / 490.5 MB, free: 1.992 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002544/0.1054, allocations: 83.97 kB / 490.6 MB, free: 1.91 MB / 350.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.000139/0.1055, allocations: 131.3 kB / 490.8 MB, free: 1.777 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003915/0.1059, allocations: 291.8 kB / 491 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.106, allocations: 0 / 491 MB, free: 1.492 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004085/0.1064, allocations: 0.7263 MB / 491.8 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000298/0.1067, allocations: 57.75 kB / 491.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007759/0.1075, allocations: 431.3 kB / 492.2 MB, free: 272 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000237/0.1077, allocations: 0.7176 MB / 493 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001153/0.1078, allocations: 25.95 kB / 493 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001176/0.108, allocations: 43.39 kB / 493 MB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 2.254e-06/0.108, allocations: 0 / 493 MB, free: 15.45 MB / 366.1 MB Notification: Performance of Templates: time 0.006628/0.1146, allocations: 3.687 MB / 496.7 MB, free: 11.77 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_dev_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches