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.001335/0.001335, allocations: 114.1 kB / 16.42 MB, free: 6.504 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.001281/0.001281, allocations: 185.5 kB / 17.34 MB, free: 5.758 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.488/1.488, allocations: 205.1 MB / 223.2 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06957/0.06957, allocations: 14.17 MB / 284.8 MB, free: 13.87 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.002156/0.002156, allocations: 71.05 kB / 398.6 MB, free: 43.1 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07146/0.07363, allocations: 50.14 MB / 448.8 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002571/0.07622, allocations: 1.434 MB / 450.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009836/0.07723, allocations: 0.5309 MB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.687e-05/0.07729, allocations: 3.938 kB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 1.806e-05/0.07733, allocations: 3.938 kB / 450.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.406e-05/0.07742, allocations: 11.88 kB / 450.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001923/0.07762, allocations: 75.83 kB / 450.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001969/0.07782, allocations: 179.7 kB / 451 MB, free: 9.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.344e-05/0.07787, allocations: 4 kB / 451 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001285/0.078, allocations: 107.7 kB / 451.1 MB, free: 9.824 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.07814, allocations: 91.73 kB / 451.2 MB, free: 9.734 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.918e-05/0.07818, allocations: 12 kB / 451.2 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.658e-05/0.07823, allocations: 16 kB / 451.3 MB, free: 9.707 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.645e-05/0.0783, allocations: 51.91 kB / 451.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.07841, allocations: 83.66 kB / 451.4 MB, free: 9.574 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001725/0.07859, allocations: 131.6 kB / 451.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.165e-06/0.0786, allocations: 0 / 451.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.07861, allocations: 0 / 451.5 MB, free: 9.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.07862, allocations: 0 / 451.5 MB, free: 9.445 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.0009987/0.07962, allocations: 0.5536 MB / 452.1 MB, free: 8.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.07966, allocations: 12.03 kB / 452.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.98e-05/0.07975, allocations: 16.89 kB / 452.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.07991, allocations: 184.3 kB / 452.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.251e-05/0.07994, allocations: 8.359 kB / 452.3 MB, free: 8.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.908e-05/0.08001, allocations: 40.27 kB / 452.3 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006072/0.08062, allocations: 381.3 kB / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.897e-06/0.08064, allocations: 0 / 452.7 MB, free: 8.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.415e-05/0.08069, allocations: 11.98 kB / 452.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.0807, allocations: 0 / 452.7 MB, free: 8.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001954/0.0809, allocations: 71.88 kB / 452.8 MB, free: 8.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004242/0.08133, allocations: 372.6 kB / 453.1 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003046/0.08165, allocations: 174.5 kB / 453.3 MB, free: 7.496 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.08191, allocations: 164.8 kB / 453.5 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.275e-05/0.08193, allocations: 0 / 453.5 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008429/0.08278, allocations: 0.5234 MB / 454 MB, free: 6.797 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.473e-06/0.08279, allocations: 0 / 454 MB, free: 6.797 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.001025/0.08382, allocations: 0.6511 MB / 454.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.319e-05/0.08388, allocations: 63.39 kB / 454.7 MB, free: 6.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001211/0.08401, allocations: 133.3 kB / 454.8 MB, free: 5.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.091e-05/0.08407, allocations: 45.69 kB / 454.9 MB, free: 5.879 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.83e-05/0.08413, allocations: 88.7 kB / 455 MB, free: 5.789 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.949e-05/0.08421, allocations: 75.5 kB / 455 MB, free: 5.715 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/0.08432, allocations: 57.7 kB / 455.1 MB, free: 5.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.08447, allocations: 330.8 kB / 455.4 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001643/0.08464, allocations: 88.3 kB / 455.5 MB, free: 5.23 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002025/0.08485, allocations: 151.4 kB / 455.7 MB, free: 5.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.08522, allocations: 233.7 kB / 455.9 MB, free: 4.812 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.08524, allocations: 4 kB / 455.9 MB, free: 4.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003917/0.08563, allocations: 241.3 kB / 456.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.08566, allocations: 4 kB / 456.1 MB, free: 4.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.08567, allocations: 7.938 kB / 456.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.08569, allocations: 0 / 456.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.841e-05/0.08579, allocations: 23.92 kB / 456.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.08581, allocations: 0 / 456.2 MB, free: 4.531 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002199/0.08603, allocations: 47.97 kB / 456.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.548e-05/0.08607, allocations: 12 kB / 456.2 MB, free: 4.473 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.0002078/0.08628, allocations: 150.5 kB / 456.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.68e-05/0.08635, allocations: 31.89 kB / 456.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.566e-05/0.08644, allocations: 37.61 kB / 456.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.08645, allocations: 7.938 kB / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.08646, allocations: 0 / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.08647, allocations: 0 / 456.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.08675, allocations: 277.4 kB / 456.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.08676, allocations: 0 / 456.7 MB, free: 3.918 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.328e-05/0.0868, allocations: 15.92 kB / 456.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.08681, allocations: 4 kB / 456.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.36e-05/0.08686, allocations: 23.95 kB / 456.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.08686, allocations: 0 / 456.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.08687, allocations: 0 / 456.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.08835, allocations: 1.509 MB / 458.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001507/0.08851, allocations: 116.9 kB / 458.4 MB, free: 2.168 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.747e-05/0.0886, allocations: 31.89 kB / 458.4 MB, free: 2.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002225/0.08883, allocations: 47.94 kB / 458.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002109/0.08905, allocations: 79.84 kB / 458.5 MB, free: 2.012 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.107e-05/0.08911, allocations: 43.95 kB / 458.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.34e-05/0.08919, allocations: 99.2 kB / 458.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.08919, allocations: 0 / 458.7 MB, free: 1.871 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004069/0.0896, allocations: 79.98 kB / 458.8 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.0001769/0.08979, allocations: 133.5 kB / 458.9 MB, free: 1.652 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005049/0.0903, allocations: 295.8 kB / 459.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.195e-06/0.09031, allocations: 0 / 459.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000691/0.09101, allocations: 0.7263 MB / 459.9 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.09136, allocations: 47.89 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.001281/0.09265, allocations: 0.6117 MB / 460.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004025/0.09307, allocations: 0.7216 MB / 461.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000141/0.09322, allocations: 33.97 kB / 461.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.09337, allocations: 43.39 kB / 461.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.09337, allocations: 0 / 461.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of Templates: time 0.007833/0.1012, allocations: 3.685 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=50 -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