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.001854/0.001854, allocations: 105 kB / 20.45 MB, free: 1.5 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.002353/0.002353, allocations: 220.9 kB / 23.76 MB, free: 4.695 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.533/1.533, allocations: 207.6 MB / 234.5 MB, free: 9.98 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.06936/0.06936, allocations: 14.39 MB / 301.2 MB, free: 7.527 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.002211/0.002211, allocations: 67.91 kB / 424.3 MB, free: 37.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07509/0.0773, allocations: 52.9 MB / 477.2 MB, free: 164 kB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002533/0.07983, allocations: 1.438 MB / 478.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009902/0.08082, allocations: 0.5424 MB / 479.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.855e-05/0.08086, allocations: 4 kB / 479.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 2.542e-05/0.08088, allocations: 7.875 kB / 479.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.538e-05/0.08096, allocations: 15.86 kB / 479.2 MB, free: 14.13 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002108/0.08117, allocations: 79.83 kB / 479.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000211/0.08138, allocations: 183.6 kB / 479.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.116e-05/0.08143, allocations: 7.984 kB / 479.5 MB, free: 13.87 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001304/0.08156, allocations: 95.84 kB / 479.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001391/0.0817, allocations: 91.69 kB / 479.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.283e-05/0.08175, allocations: 12 kB / 479.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.267e-05/0.08178, allocations: 20 kB / 479.7 MB, free: 13.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.966e-05/0.08185, allocations: 59.84 kB / 479.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001024/0.08195, allocations: 75.78 kB / 479.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.08213, allocations: 127.6 kB / 479.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.08213, allocations: 4 kB / 479.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.08214, allocations: 0 / 479.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.757e-06/0.08215, allocations: 0 / 479.9 MB, free: 13.39 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.0009832/0.08313, allocations: 497.6 kB / 480.4 MB, free: 12.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.08316, allocations: 12.03 kB / 480.4 MB, free: 12.86 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.896e-05/0.08325, allocations: 20.88 kB / 480.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001457/0.0834, allocations: 130.4 kB / 480.6 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.349e-05/0.08342, allocations: 8.359 kB / 480.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.962e-05/0.08349, allocations: 32.34 kB / 480.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006108/0.0841, allocations: 377.4 kB / 481 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.08411, allocations: 0 / 481 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.21e-05/0.08415, allocations: 7.984 kB / 481 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.08416, allocations: 8 kB / 481 MB, free: 12.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001931/0.08435, allocations: 67.88 kB / 481.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004305/0.08478, allocations: 343.7 kB / 481.4 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002249/0.08501, allocations: 82.52 kB / 481.5 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001759/0.08518, allocations: 64.81 kB / 481.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.309e-05/0.0852, allocations: 4 kB / 481.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008004/0.086, allocations: 0.5338 MB / 482.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of pre-optimization done (n=30): time 1.423e-06/0.086, allocations: 0 / 482.1 MB, free: 11.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=30): time 0.001025/0.08702, allocations: 0.6543 MB / 482.7 MB, free: 10.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.08708, allocations: 55.41 kB / 482.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/0.08719, allocations: 137.5 kB / 482.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.747e-05/0.08725, allocations: 45.69 kB / 483 MB, free: 10.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.08731, allocations: 92.8 kB / 483.1 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.944e-05/0.08738, allocations: 75.5 kB / 483.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.921e-05/0.08747, allocations: 53.7 kB / 483.2 MB, free: 9.965 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.08761, allocations: 330.8 kB / 483.5 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.08777, allocations: 84.3 kB / 483.6 MB, free: 9.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002266/0.08799, allocations: 159.3 kB / 483.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003679/0.08836, allocations: 233.4 kB / 484 MB, free: 9.121 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.08836, allocations: 4 kB / 484 MB, free: 9.117 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003864/0.08875, allocations: 245.5 kB / 484.2 MB, free: 8.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.08877, allocations: 7.938 kB / 484.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.08877, allocations: 0 / 484.2 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.08878, allocations: 4 kB / 484.2 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.746e-05/0.08887, allocations: 19.92 kB / 484.3 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.08888, allocations: 3.938 kB / 484.3 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002192/0.0891, allocations: 48.03 kB / 484.3 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.208e-05/0.08912, allocations: 8 kB / 484.3 MB, free: 8.781 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.0001909/0.08931, allocations: 157.6 kB / 484.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.325e-05/0.08936, allocations: 27.89 kB / 484.5 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.37e-05/0.08946, allocations: 37.61 kB / 484.5 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.08946, allocations: 8 kB / 484.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.08947, allocations: 0 / 484.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.08947, allocations: 0 / 484.5 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002643/0.08974, allocations: 240.5 kB / 484.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.08974, allocations: 0 / 484.8 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.656e-05/0.08976, allocations: 7.938 kB / 484.8 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.69e-06/0.08977, allocations: 7.984 kB / 484.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.456e-05/0.08981, allocations: 27.95 kB / 484.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.754e-06/0.08982, allocations: 0 / 484.8 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.08982, allocations: 3.938 kB / 484.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001467/0.09128, allocations: 1.505 MB / 486.3 MB, free: 6.645 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.09142, allocations: 43.83 kB / 486.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.841e-05/0.0915, allocations: 27.89 kB / 486.4 MB, free: 6.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002277/0.09172, allocations: 47.94 kB / 486.4 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000203/0.09193, allocations: 87.81 kB / 486.5 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-05/0.09198, allocations: 43.95 kB / 486.6 MB, free: 6.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.456e-05/0.09205, allocations: 95.27 kB / 486.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.09205, allocations: 0 / 486.7 MB, free: 6.305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004112/0.09246, allocations: 75.98 kB / 486.7 MB, free: 6.23 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.0001499/0.09261, allocations: 133.5 kB / 486.9 MB, free: 6.094 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004962/0.0931, allocations: 269.3 kB / 487.1 MB, free: 5.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.09311, allocations: 4 kB / 487.1 MB, free: 5.828 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002839/0.09339, allocations: 175.7 kB / 487.3 MB, free: 5.656 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.09367, allocations: 46.3 kB / 487.4 MB, free: 5.613 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001134/0.09481, allocations: 0.6402 MB / 488 MB, free: 4.926 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003545/0.09516, allocations: 0.7255 MB / 488.7 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001336/0.0953, allocations: 47.39 kB / 488.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.0953, allocations: 0 / 488.8 MB, free: 4.129 MB / 350.1 MB Notification: Performance of Templates: time 0.004746/0.1, allocations: 2.625 MB / 491.4 MB, free: 1.512 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.002496411791071]