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: 105.6 kB / 17.04 MB, free: 5.82 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.00174/0.00174, allocations: 195 kB / 17.99 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.332/1.332, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.08999/0.08999, allocations: 14.17 MB / 285.4 MB, free: 13.89 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.001455/0.001455, allocations: 68.47 kB / 348.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1898/0.1912, allocations: 50.13 MB / 398.7 MB, free: 48.56 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002087/0.1933, allocations: 1.434 MB / 400.2 MB, free: 47.44 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007453/0.1941, allocations: 0.5276 MB / 400.7 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.59e-05/0.1942, allocations: 7.938 kB / 400.7 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.657e-05/0.1942, allocations: 3.938 kB / 400.7 MB, free: 47.01 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.273e-05/0.1943, allocations: 18.41 kB / 400.7 MB, free: 47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001586/0.1944, allocations: 73.17 kB / 400.8 MB, free: 46.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001459/0.1946, allocations: 185.2 kB / 401 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.071e-05/0.1946, allocations: 4.5 kB / 401 MB, free: 46.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.1948, allocations: 99.83 kB / 401.1 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.945e-05/0.1949, allocations: 87.27 kB / 401.2 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.81e-05/0.1949, allocations: 12.5 kB / 401.2 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.802e-05/0.1949, allocations: 13.09 kB / 401.2 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.72e-05/0.195, allocations: 59.28 kB / 401.2 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.297e-05/0.1951, allocations: 85.12 kB / 401.3 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001235/0.1952, allocations: 134.9 kB / 401.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.1952, allocations: 0 / 401.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.1952, allocations: 1 kB / 401.5 MB, free: 46.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.915e-06/0.1952, allocations: 0 / 401.5 MB, free: 46.53 MB / 318.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.0007818/0.196, allocations: 0.5509 MB / 402 MB, free: 46.04 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.087e-05/0.1961, allocations: 13.78 kB / 402 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.081e-05/0.1962, allocations: 23.64 kB / 402 MB, free: 46.03 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.599e-05/0.1962, allocations: 172.1 kB / 402.2 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.1963, allocations: 15 kB / 402.2 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.184e-05/0.1963, allocations: 26.67 kB / 402.3 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004611/0.1968, allocations: 385.2 kB / 402.6 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.334e-06/0.1968, allocations: 0 / 402.6 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.048e-05/0.1969, allocations: 16.81 kB / 402.6 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.127e-06/0.1969, allocations: 1.25 kB / 402.6 MB, free: 45.52 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001657/0.197, allocations: 59.11 kB / 402.7 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002831/0.1973, allocations: 375.6 kB / 403.1 MB, free: 45.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002269/0.1976, allocations: 180.2 kB / 403.2 MB, free: 45.01 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001982/0.1978, allocations: 161.8 kB / 403.4 MB, free: 44.92 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.237e-05/0.1978, allocations: 1.281 kB / 403.4 MB, free: 44.92 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006198/0.1984, allocations: 0.5204 MB / 403.9 MB, free: 44.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.573e-06/0.1984, allocations: 1.625 kB / 403.9 MB, free: 44.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.000864/0.1993, allocations: 0.6454 MB / 404.6 MB, free: 44.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.1993, allocations: 56.12 kB / 404.6 MB, free: 44.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.679e-05/0.1994, allocations: 127.6 kB / 404.8 MB, free: 44.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.561e-05/0.1994, allocations: 49.69 kB / 404.8 MB, free: 44.02 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.072e-05/0.1995, allocations: 95.78 kB / 404.9 MB, free: 43.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.353e-05/0.1995, allocations: 80.34 kB / 405 MB, free: 43.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.953e-05/0.1996, allocations: 51.17 kB / 405 MB, free: 43.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.388e-05/0.1997, allocations: 341.3 kB / 405.4 MB, free: 43.49 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.1998, allocations: 88.39 kB / 405.4 MB, free: 43.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.2, allocations: 159.5 kB / 405.6 MB, free: 43.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003129/0.2003, allocations: 228.7 kB / 405.8 MB, free: 43.18 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2003, allocations: 1.25 kB / 405.8 MB, free: 43.18 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003224/0.2006, allocations: 245.6 kB / 406.1 MB, free: 43.05 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.2007, allocations: 5.594 kB / 406.1 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.2007, allocations: 2.062 kB / 406.1 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2007, allocations: 6.094 kB / 406.1 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.886e-05/0.2008, allocations: 18.09 kB / 406.1 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.2008, allocations: 2.188 kB / 406.1 MB, free: 43.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.201, allocations: 39.45 kB / 406.1 MB, free: 43.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/0.201, allocations: 16.75 kB / 406.2 MB, free: 43.01 MB / 318.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.0001368/0.2012, allocations: 152.7 kB / 406.3 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.757e-05/0.2012, allocations: 29.86 kB / 406.3 MB, free: 42.85 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.586e-05/0.2013, allocations: 30.75 kB / 406.4 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.2013, allocations: 3.844 kB / 406.4 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.2013, allocations: 0 / 406.4 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.2013, allocations: 4 kB / 406.4 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000163/0.2015, allocations: 290.6 kB / 406.7 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.2015, allocations: 0 / 406.7 MB, free: 42.53 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.497e-05/0.2015, allocations: 7.531 kB / 406.7 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.2015, allocations: 2.156 kB / 406.7 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.2016, allocations: 27.92 kB / 406.7 MB, free: 42.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.334e-06/0.2016, allocations: 1.062 kB / 406.7 MB, free: 42.5 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.2016, allocations: 0 / 406.7 MB, free: 42.5 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009805/0.2026, allocations: 1.503 MB / 408.2 MB, free: 41.27 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.2027, allocations: 121.3 kB / 408.3 MB, free: 41.14 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.195e-05/0.2028, allocations: 30.19 kB / 408.3 MB, free: 41.12 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001948/0.203, allocations: 41.09 kB / 408.4 MB, free: 41.11 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001731/0.2032, allocations: 86.69 kB / 408.5 MB, free: 41.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.67e-05/0.2032, allocations: 45.16 kB / 408.5 MB, free: 41.03 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.749e-05/0.2033, allocations: 105.9 kB / 408.6 MB, free: 40.94 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2033, allocations: 0 / 408.6 MB, free: 40.94 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003844/0.2037, allocations: 78.62 kB / 408.7 MB, free: 40.92 MB / 318.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.0001146/0.2038, allocations: 133.4 kB / 408.8 MB, free: 40.81 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004079/0.2042, allocations: 301.8 kB / 409.1 MB, free: 40.63 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.2042, allocations: 256 / 409.1 MB, free: 40.63 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003858/0.2046, allocations: 0.7263 MB / 409.8 MB, free: 39.91 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002676/0.2049, allocations: 59.86 kB / 409.9 MB, free: 39.85 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008175/0.2057, allocations: 0.6072 MB / 410.5 MB, free: 39.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.706e-05/0.2058, allocations: 0.7255 MB / 411.2 MB, free: 38.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.804e-05/0.2059, allocations: 25.95 kB / 411.3 MB, free: 38.42 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.206, allocations: 43.39 kB / 411.3 MB, free: 38.38 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.206, allocations: 0 / 411.3 MB, free: 38.38 MB / 318.1 MB Notification: Performance of Templates: time 0.00534/0.2114, allocations: 3.658 MB / 415 MB, free: 34.74 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 -s gbode -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