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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001791/0.001791, allocations: 100.4 kB / 20.45 MB, free: 1.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002133/0.002133, allocations: 215.1 kB / 23.75 MB, free: 4.531 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.439/1.439, allocations: 207.7 MB / 234.6 MB, free: 9.812 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.07066/0.07066, allocations: 14.39 MB / 301.2 MB, free: 7.246 MB / 238.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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=500,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=500,variableFilter="Ntap|actionSel|directAction|lockedStart|reverseAction|runningStart|stateStart|t1st|tNext|tap|tapMax|tapMin|tapStart|time",fileNamePrefix="PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002302/0.002302, allocations: 71.91 kB / 424.3 MB, free: 36.93 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09203/0.09434, allocations: 52.9 MB / 477.2 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002737/0.09707, allocations: 1.419 MB / 478.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001053/0.09813, allocations: 0.5152 MB / 479.1 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.527e-05/0.09817, allocations: 3.938 kB / 479.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.552e-05/0.0982, allocations: 3.938 kB / 479.1 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.527e-05/0.09827, allocations: 7.875 kB / 479.1 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.09852, allocations: 83.81 kB / 479.2 MB, free: 13.9 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.09873, allocations: 183.7 kB / 479.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.246e-05/0.09878, allocations: 4 kB / 479.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001395/0.09892, allocations: 103.8 kB / 479.5 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.09906, allocations: 75.73 kB / 479.5 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.853e-05/0.0991, allocations: 12 kB / 479.6 MB, free: 13.53 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.678e-05/0.09914, allocations: 15.94 kB / 479.6 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.537e-05/0.09921, allocations: 59.84 kB / 479.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001156/0.09932, allocations: 75.73 kB / 479.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001878/0.09951, allocations: 135.6 kB / 479.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09951, allocations: 0 / 479.8 MB, free: 13.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.09951, allocations: 4 kB / 479.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.09952, allocations: 4 kB / 479.8 MB, free: 13.24 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.001011/0.1005, allocations: 485.7 kB / 480.3 MB, free: 12.73 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.1006, allocations: 12.03 kB / 480.3 MB, free: 12.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.958e-05/0.1007, allocations: 20.88 kB / 480.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001371/0.1008, allocations: 126.3 kB / 480.5 MB, free: 12.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.1008, allocations: 12.36 kB / 480.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.66e-05/0.1009, allocations: 24.36 kB / 480.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006572/0.1015, allocations: 436.8 kB / 480.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.307e-06/0.1016, allocations: 0 / 480.9 MB, free: 12.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.999e-05/0.1016, allocations: 15.97 kB / 481 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.1016, allocations: 4 kB / 481 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.1018, allocations: 63.94 kB / 481 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003733/0.1022, allocations: 276.5 kB / 481.3 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002481/0.1024, allocations: 86.5 kB / 481.4 MB, free: 11.6 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001809/0.1026, allocations: 68.8 kB / 481.4 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.032e-05/0.1026, allocations: 11.98 kB / 481.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008426/0.1035, allocations: 0.5684 MB / 482 MB, free: 10.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.683e-06/0.1035, allocations: 4 kB / 482 MB, free: 10.92 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001045/0.1045, allocations: 0.6543 MB / 482.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.1046, allocations: 55.41 kB / 482.7 MB, free: 10.2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001221/0.1047, allocations: 133.7 kB / 482.9 MB, free: 10.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.028e-05/0.1047, allocations: 41.69 kB / 482.9 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.043e-05/0.1048, allocations: 100.7 kB / 483 MB, free: 9.906 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.391e-05/0.1049, allocations: 75.52 kB / 483.1 MB, free: 9.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.906e-05/0.105, allocations: 57.69 kB / 483.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001979/0.1052, allocations: 326.8 kB / 483.5 MB, free: 9.441 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001561/0.1053, allocations: 84.3 kB / 483.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002627/0.1056, allocations: 232.4 kB / 483.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000394/0.106, allocations: 237.4 kB / 484 MB, free: 8.836 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.106, allocations: 3.938 kB / 484 MB, free: 8.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004364/0.1064, allocations: 249.4 kB / 484.2 MB, free: 8.582 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.1065, allocations: 8 kB / 484.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.1065, allocations: 0 / 484.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.1065, allocations: 4 kB / 484.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.375e-05/0.1066, allocations: 15.92 kB / 484.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.1066, allocations: 4 kB / 484.3 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002183/0.1068, allocations: 43.91 kB / 484.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.1068, allocations: 12.12 kB / 484.3 MB, free: 8.496 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.0002125/0.107, allocations: 157.7 kB / 484.5 MB, free: 8.332 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.731e-05/0.1071, allocations: 31.89 kB / 484.5 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.323e-05/0.1072, allocations: 29.62 kB / 484.5 MB, free: 8.266 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.755e-06/0.1072, allocations: 7.984 kB / 484.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.1072, allocations: 0 / 484.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.1072, allocations: 4 kB / 484.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000224/0.1074, allocations: 189.2 kB / 484.7 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.1074, allocations: 0 / 484.7 MB, free: 8.039 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.837e-05/0.1075, allocations: 11.94 kB / 484.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.1075, allocations: 0 / 484.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.875e-05/0.1075, allocations: 31.89 kB / 484.8 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.907e-06/0.1075, allocations: 3.984 kB / 484.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1075, allocations: 0 / 484.8 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001548/0.1091, allocations: 1.501 MB / 486.3 MB, free: 6.426 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.1092, allocations: 43.83 kB / 486.3 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.839e-05/0.1093, allocations: 23.97 kB / 486.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002188/0.1095, allocations: 47.88 kB / 486.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002118/0.1097, allocations: 87.8 kB / 486.5 MB, free: 6.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.554e-05/0.1098, allocations: 47.89 kB / 486.5 MB, free: 6.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.528e-05/0.1098, allocations: 95.27 kB / 486.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1098, allocations: 7.938 kB / 486.6 MB, free: 6.078 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004078/0.1103, allocations: 71.98 kB / 486.7 MB, free: 6.008 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.0001643/0.1104, allocations: 129.5 kB / 486.8 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005079/0.1109, allocations: 273.1 kB / 487.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.694e-06/0.1109, allocations: 0 / 487.1 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003207/0.1112, allocations: 183.8 kB / 487.3 MB, free: 5.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003039/0.1115, allocations: 57.08 kB / 487.3 MB, free: 5.379 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001164/0.1127, allocations: 0.6324 MB / 488 MB, free: 4.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.1128, allocations: 111.2 kB / 488.1 MB, free: 4.574 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001341/0.113, allocations: 47.39 kB / 488.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.113, allocations: 0 / 488.1 MB, free: 4.527 MB / 350.1 MB Notification: Performance of Templates: time 0.004895/0.1178, allocations: 2.625 MB / 490.7 MB, free: 1.91 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.104982440825552]