Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerGrids_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.001283/0.001283, allocations: 80.3 kB / 19.18 MB, free: 2.516 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.001415/0.001415, allocations: 159.2 kB / 22.45 MB, free: 5.375 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.25/1.25, allocations: 158.6 MB / 184.2 MB, free: 6.391 MB / 174.1 MB " [Timeout remaining time 179] 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.06244/0.06244, allocations: 10.64 MB / 247.1 MB, free: 8.492 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_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_PowerGrids.Electrical.Test.TestTapChangerLogicMax") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.894e-06/1.894e-06, allocations: 0 / 370.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.184e-05/3.373e-05, allocations: 6.219 kB / 370.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002924/0.002958, allocations: 1.421 MB / 371.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001083/0.004041, allocations: 0.5114 MB / 372.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.16e-05/0.004092, allocations: 0 / 372.2 MB, free: 8.902 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.713e-05/0.004119, allocations: 7.922 kB / 372.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.293e-05/0.004202, allocations: 11.88 kB / 372.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002296/0.004432, allocations: 79.8 kB / 372.3 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002241/0.004656, allocations: 187.6 kB / 372.5 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.541e-05/0.004702, allocations: 7.938 kB / 372.5 MB, free: 8.613 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002199/0.004921, allocations: 131.8 kB / 372.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.005077, allocations: 79.78 kB / 372.7 MB, free: 8.406 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.005126, allocations: 12 kB / 372.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.514e-05/0.005161, allocations: 12 kB / 372.7 MB, free: 8.383 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.00523, allocations: 47.91 kB / 372.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.005339, allocations: 71.83 kB / 372.8 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000242/0.005581, allocations: 171.5 kB / 373 MB, free: 8.098 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.267e-06/0.005584, allocations: 3.938 kB / 373 MB, free: 8.094 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.22e-07/0.005585, allocations: 0 / 373 MB, free: 8.094 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.005589, allocations: 0 / 373 MB, free: 8.094 MB / 302.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.001063/0.006652, allocations: 489.7 kB / 373.5 MB, free: 7.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.006692, allocations: 12.03 kB / 373.5 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.0068, allocations: 20.89 kB / 373.5 MB, free: 7.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001711/0.006971, allocations: 121.7 kB / 373.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.74e-05/0.006998, allocations: 12.36 kB / 373.6 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.915e-05/0.007067, allocations: 28.34 kB / 373.7 MB, free: 7.371 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007305/0.007798, allocations: 421 kB / 374.1 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.007811, allocations: 4.188 kB / 374.1 MB, free: 6.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.029e-05/0.007871, allocations: 12.36 kB / 374.1 MB, free: 6.926 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.007883, allocations: 7.938 kB / 374.1 MB, free: 6.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002087/0.008091, allocations: 63.94 kB / 374.2 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005125/0.008604, allocations: 276.5 kB / 374.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002602/0.008864, allocations: 90.48 kB / 374.5 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001909/0.009055, allocations: 68.8 kB / 374.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.009072, allocations: 4 kB / 374.6 MB, free: 6.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009793/0.01005, allocations: 0.5762 MB / 375.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.164e-06/0.01005, allocations: 0 / 375.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.001063/0.01112, allocations: 0.6355 MB / 375.8 MB, free: 5.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.546e-05/0.01117, allocations: 59.41 kB / 375.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.01131, allocations: 133.3 kB / 376 MB, free: 4.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.684e-05/0.01137, allocations: 45.69 kB / 376 MB, free: 4.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.726e-05/0.01143, allocations: 92.75 kB / 376.1 MB, free: 4.785 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.934e-05/0.01152, allocations: 83.55 kB / 376.2 MB, free: 4.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.9e-05/0.01162, allocations: 61.64 kB / 376.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.01179, allocations: 322.8 kB / 376.6 MB, free: 4.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.01196, allocations: 92.23 kB / 376.7 MB, free: 4.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002708/0.01223, allocations: 232.4 kB / 376.9 MB, free: 3.949 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003938/0.01263, allocations: 245.3 kB / 377.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.01263, allocations: 0 / 377.1 MB, free: 3.691 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004027/0.01303, allocations: 241.4 kB / 377.4 MB, free: 3.449 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/0.01305, allocations: 7.984 kB / 377.4 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.01306, allocations: 4 kB / 377.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.01308, allocations: 0 / 377.4 MB, free: 3.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.461e-05/0.01317, allocations: 19.94 kB / 377.4 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.01318, allocations: 0 / 377.4 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/0.0134, allocations: 44.03 kB / 377.5 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.494e-05/0.01344, allocations: 12 kB / 377.5 MB, free: 3.363 MB / 302.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.000223/0.01366, allocations: 165.9 kB / 377.6 MB, free: 3.199 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.842e-05/0.01373, allocations: 35.83 kB / 377.7 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.838e-05/0.01381, allocations: 29.62 kB / 377.7 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.01381, allocations: 8 kB / 377.7 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.01382, allocations: 0 / 377.7 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.01382, allocations: 0 / 377.7 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002323/0.01406, allocations: 193.1 kB / 377.9 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01406, allocations: 0 / 377.9 MB, free: 2.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.612e-05/0.01409, allocations: 15.92 kB / 377.9 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/0.01411, allocations: 8.031 kB / 377.9 MB, free: 2.891 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.885e-05/0.01415, allocations: 27.89 kB / 377.9 MB, free: 2.863 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.01416, allocations: 4 kB / 377.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.01416, allocations: 0 / 377.9 MB, free: 2.859 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008467/0.01501, allocations: 0.5517 MB / 378.5 MB, free: 2.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001392/0.01515, allocations: 47.83 kB / 378.5 MB, free: 2.242 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.471e-05/0.01523, allocations: 27.89 kB / 378.6 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002338/0.01546, allocations: 39.94 kB / 378.6 MB, free: 2.176 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002281/0.01569, allocations: 83.81 kB / 378.7 MB, free: 2.094 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-05/0.01575, allocations: 43.95 kB / 378.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.781e-05/0.01583, allocations: 95.27 kB / 378.8 MB, free: 1.957 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01583, allocations: 0 / 378.8 MB, free: 1.957 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002907/0.01612, allocations: 75.98 kB / 378.9 MB, free: 1.883 MB / 302.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.0001962/0.01632, allocations: 137.5 kB / 379 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005074/0.01683, allocations: 271.7 kB / 379.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.01683, allocations: 7.938 kB / 379.3 MB, free: 1.469 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002823/0.01711, allocations: 167.8 kB / 379.5 MB, free: 1.305 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003074/0.01742, allocations: 47.94 kB / 379.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009985/0.01842, allocations: 418.1 kB / 379.9 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001157/0.01853, allocations: 111.3 kB / 380 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001027/0.01864, allocations: 29.94 kB / 380.1 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001417/0.01878, allocations: 44.45 kB / 380.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of SimCode: time 4.41e-07/0.01878, allocations: 0 / 380.1 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of Templates: time 0.008503/0.02728, allocations: 3.949 MB / 384.1 MB, free: 12.69 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile [Timeout 660] (rm -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; mkfifo PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe ; head -c 1048576 < PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe >> ../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.sim & ./PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.pipe 2>&1) [Timeout 480] diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:Ntap,actionSel,directAction,lockedStart,reverseAction,runningStart,stateStart,t1st,tNext,tap,tapMax,tapMin,tapStart,time Variables in the result:Ntap,actionSel,directAction,lockedStart,reverseAction,runningStart,stateStart,t1st,tNext,tap,tapMax,tapMin,tapStart,time [Calling sys.exit(0), Time elapsed: 4.202848065644503]