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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 104.2 kB / 19.45 MB, free: 2.395 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001388/0.001388, allocations: 196.2 kB / 22.7 MB, free: 5.668 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.366/1.366, allocations: 207.6 MB / 233.4 MB, free: 11.04 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.0691/0.0691, allocations: 14.39 MB / 299.9 MB, free: 7.805 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.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=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.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.002164/0.002164, allocations: 67.89 kB / 422.7 MB, free: 37.61 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07281/0.07497, allocations: 52.86 MB / 475.6 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002636/0.07761, allocations: 1.444 MB / 477.1 MB, free: 15.21 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001008/0.07862, allocations: 0.5502 MB / 477.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.193e-05/0.07866, allocations: 0 / 477.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.71e-05/0.07868, allocations: 3.938 kB / 477.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 8.247e-05/0.07876, allocations: 15.86 kB / 477.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.07896, allocations: 71.83 kB / 477.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002187/0.07917, allocations: 191.6 kB / 477.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.822e-05/0.07921, allocations: 3.984 kB / 477.9 MB, free: 14.37 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001226/0.07934, allocations: 95.84 kB / 478 MB, free: 14.28 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.07947, allocations: 91.67 kB / 478.1 MB, free: 14.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.302e-05/0.07951, allocations: 16 kB / 478.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.633e-05/0.07955, allocations: 12 kB / 478.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.236e-05/0.07962, allocations: 59.83 kB / 478.2 MB, free: 14.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.07973, allocations: 75.78 kB / 478.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.07991, allocations: 135.6 kB / 478.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.896e-06/0.07991, allocations: 0 / 478.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.07991, allocations: 0 / 478.4 MB, free: 13.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.99e-06/0.07992, allocations: 0 / 478.4 MB, free: 13.89 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.0009999/0.08092, allocations: 0.5535 MB / 478.9 MB, free: 13.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.468e-05/0.08095, allocations: 12.03 kB / 478.9 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.793e-05/0.08104, allocations: 24.88 kB / 479 MB, free: 13.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.0812, allocations: 184.2 kB / 479.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.08123, allocations: 12.36 kB / 479.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.682e-05/0.0813, allocations: 24.36 kB / 479.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006342/0.08193, allocations: 381.3 kB / 479.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.08194, allocations: 0 / 479.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.687e-05/0.08199, allocations: 15.97 kB / 479.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.739e-06/0.082, allocations: 8 kB / 479.6 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001894/0.08218, allocations: 67.88 kB / 479.6 MB, free: 12.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004203/0.0826, allocations: 368.6 kB / 480 MB, free: 12.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002242/0.08283, allocations: 82.52 kB / 480.1 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.08303, allocations: 68.8 kB / 480.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.08304, allocations: 4 kB / 480.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008007/0.08384, allocations: 0.5183 MB / 480.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.483e-06/0.08385, allocations: 0 / 480.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001078/0.08492, allocations: 0.6511 MB / 481.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.047e-05/0.08497, allocations: 63.39 kB / 481.4 MB, free: 10.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001605/0.08514, allocations: 129.8 kB / 481.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.998e-05/0.08519, allocations: 45.69 kB / 481.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.859e-05/0.08524, allocations: 92.67 kB / 481.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.871e-05/0.08531, allocations: 71.58 kB / 481.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.581e-05/0.08541, allocations: 53.7 kB / 481.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001454/0.08555, allocations: 334.8 kB / 482.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001555/0.08571, allocations: 84.3 kB / 482.2 MB, free: 9.867 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002147/0.08592, allocations: 155.4 kB / 482.3 MB, free: 9.691 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003704/0.08629, allocations: 241.6 kB / 482.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.0863, allocations: 0 / 482.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004251/0.08672, allocations: 241.3 kB / 482.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/0.08674, allocations: 4 kB / 482.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.428e-06/0.08674, allocations: 0 / 482.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.538e-05/0.08675, allocations: 4 kB / 482.8 MB, free: 9.188 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001059/0.08686, allocations: 19.92 kB / 482.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.08687, allocations: 11.88 kB / 482.8 MB, free: 9.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.08709, allocations: 43.98 kB / 482.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.471e-05/0.08711, allocations: 15.94 kB / 482.9 MB, free: 9.098 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.0001939/0.08731, allocations: 157.4 kB / 483 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.443e-05/0.08736, allocations: 27.89 kB / 483.1 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.415e-05/0.08745, allocations: 33.62 kB / 483.1 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.08746, allocations: 8 kB / 483.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.08746, allocations: 0 / 483.1 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.08747, allocations: 3.984 kB / 483.1 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002787/0.08775, allocations: 277.4 kB / 483.4 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.08775, allocations: 4 kB / 483.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.075e-05/0.08778, allocations: 4 kB / 483.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.08778, allocations: 3.938 kB / 483.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.709e-05/0.08783, allocations: 27.95 kB / 483.4 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.08784, allocations: 4 kB / 483.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.08784, allocations: 0 / 483.4 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001461/0.0893, allocations: 1.509 MB / 484.9 MB, free: 6.922 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001515/0.08945, allocations: 116.9 kB / 485 MB, free: 6.789 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.997e-05/0.08953, allocations: 31.91 kB / 485.1 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.08975, allocations: 43.94 kB / 485.1 MB, free: 6.715 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/0.08996, allocations: 87.83 kB / 485.2 MB, free: 6.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-05/0.09001, allocations: 39.95 kB / 485.2 MB, free: 6.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.816e-05/0.09008, allocations: 95.27 kB / 485.3 MB, free: 6.496 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.09008, allocations: 0 / 485.3 MB, free: 6.496 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004291/0.09051, allocations: 79.98 kB / 485.4 MB, free: 6.418 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.0001697/0.09068, allocations: 133.4 kB / 485.5 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005043/0.09118, allocations: 267.9 kB / 485.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.09119, allocations: 0 / 485.8 MB, free: 6.016 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002811/0.09147, allocations: 175.8 kB / 486 MB, free: 5.844 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.09177, allocations: 51.94 kB / 486 MB, free: 5.793 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001146/0.09291, allocations: 0.6404 MB / 486.7 MB, free: 5.109 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003496/0.09326, allocations: 0.7256 MB / 487.4 MB, free: 4.355 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001375/0.0934, allocations: 55.27 kB / 487.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.0934, allocations: 0 / 487.5 MB, free: 4.301 MB / 350.1 MB Notification: Performance of Templates: time 0.004763/0.09816, allocations: 2.601 MB / 490.1 MB, free: 1.707 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_2/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 6.859031951054931]