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.002553/0.002553, allocations: 102.8 kB / 16.27 MB, free: 5.977 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.002495/0.002495, allocations: 187.3 kB / 17.2 MB, free: 5.602 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.463/1.463, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06006/0.06006, allocations: 14.18 MB / 284.6 MB, free: 13.94 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.001521/0.001521, allocations: 71.91 kB / 347.2 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2339, allocations: 50.13 MB / 397.3 MB, free: 48.31 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002276/0.2363, allocations: 1.419 MB / 398.7 MB, free: 47.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008096/0.2371, allocations: 0.5314 MB / 399.2 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.558e-05/0.2371, allocations: 1.094 kB / 399.2 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.877e-05/0.2372, allocations: 3.938 kB / 399.2 MB, free: 46.77 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.095e-05/0.2373, allocations: 8.906 kB / 399.2 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001762/0.2374, allocations: 77.66 kB / 399.3 MB, free: 46.7 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001725/0.2376, allocations: 192.6 kB / 399.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.723e-05/0.2377, allocations: 3.438 kB / 399.5 MB, free: 46.6 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.2378, allocations: 92.7 kB / 399.6 MB, free: 46.56 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.327e-05/0.2379, allocations: 95.56 kB / 399.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.2379, allocations: 12.78 kB / 399.7 MB, free: 46.49 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.313e-05/0.238, allocations: 16.72 kB / 399.7 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.182e-05/0.238, allocations: 55.52 kB / 399.8 MB, free: 46.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.135e-05/0.2381, allocations: 73.66 kB / 399.9 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.2383, allocations: 136.5 kB / 400 MB, free: 46.3 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2383, allocations: 0 / 400 MB, free: 46.3 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.2383, allocations: 0 / 400 MB, free: 46.3 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.2383, allocations: 0 / 400 MB, free: 46.3 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.0008509/0.2392, allocations: 0.5603 MB / 400.5 MB, free: 45.79 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2392, allocations: 8.531 kB / 400.6 MB, free: 45.79 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001017/0.2393, allocations: 23.7 kB / 400.6 MB, free: 45.78 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.137e-05/0.2394, allocations: 178 kB / 400.8 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.26e-05/0.2394, allocations: 18.72 kB / 400.8 MB, free: 45.56 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.345e-05/0.2395, allocations: 22.42 kB / 400.8 MB, free: 45.56 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004873/0.24, allocations: 376.6 kB / 401.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-06/0.24, allocations: 1.062 kB / 401.2 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.071e-05/0.2401, allocations: 24.83 kB / 401.2 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2401, allocations: 1.312 kB / 401.2 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.2403, allocations: 63.39 kB / 401.2 MB, free: 45.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003237/0.2406, allocations: 378.7 kB / 401.6 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002454/0.2408, allocations: 172.4 kB / 401.8 MB, free: 44.76 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002192/0.2411, allocations: 162 kB / 401.9 MB, free: 44.67 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.2411, allocations: 1.125 kB / 401.9 MB, free: 44.67 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006847/0.2418, allocations: 0.5234 MB / 402.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.2418, allocations: 0 / 402.5 MB, free: 44.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009127/0.2427, allocations: 0.6501 MB / 403.1 MB, free: 43.99 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.2428, allocations: 60.44 kB / 403.2 MB, free: 43.93 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.708e-05/0.2428, allocations: 126.8 kB / 403.3 MB, free: 43.81 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.922e-05/0.2429, allocations: 45.94 kB / 403.3 MB, free: 43.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.658e-05/0.2429, allocations: 95.2 kB / 403.4 MB, free: 43.67 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.335e-05/0.243, allocations: 73.86 kB / 403.5 MB, free: 43.61 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.267e-05/0.2431, allocations: 55.58 kB / 403.6 MB, free: 43.57 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.131e-05/0.2431, allocations: 334.6 kB / 403.9 MB, free: 43.24 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.2433, allocations: 88 kB / 404 MB, free: 43.2 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001636/0.2435, allocations: 154.8 kB / 404.1 MB, free: 43.07 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.2438, allocations: 236.9 kB / 404.4 MB, free: 42.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.2438, allocations: 1 kB / 404.4 MB, free: 42.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003366/0.2441, allocations: 243.1 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.644e-05/0.2442, allocations: 9.25 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.52e-06/0.2442, allocations: 0.9688 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.2442, allocations: 2.156 kB / 404.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.695e-05/0.2443, allocations: 14.62 kB / 404.6 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.594e-06/0.2443, allocations: 1.406 kB / 404.6 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002111/0.2445, allocations: 48.2 kB / 404.7 MB, free: 42.77 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.2445, allocations: 8.266 kB / 404.7 MB, free: 42.77 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.0001695/0.2447, allocations: 168.4 kB / 404.8 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.413e-05/0.2448, allocations: 29.3 kB / 404.9 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.055e-05/0.2449, allocations: 35.91 kB / 404.9 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.2449, allocations: 3.781 kB / 404.9 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/0.2449, allocations: 0 / 404.9 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2449, allocations: 0 / 404.9 MB, free: 42.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002079/0.2451, allocations: 286 kB / 405.2 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2451, allocations: 1.25 kB / 405.2 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.476e-05/0.2451, allocations: 3.562 kB / 405.2 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.2451, allocations: 1.188 kB / 405.2 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.854e-05/0.2452, allocations: 27.92 kB / 405.2 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2452, allocations: 1.094 kB / 405.2 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2452, allocations: 9.062 kB / 405.2 MB, free: 42.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001149/0.2464, allocations: 1.502 MB / 406.7 MB, free: 41.01 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001208/0.2465, allocations: 122 kB / 406.9 MB, free: 40.89 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.683e-05/0.2466, allocations: 25.81 kB / 406.9 MB, free: 40.87 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002147/0.2468, allocations: 49.59 kB / 406.9 MB, free: 40.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001929/0.247, allocations: 82.53 kB / 407 MB, free: 40.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.133e-05/0.247, allocations: 45.02 kB / 407.1 MB, free: 40.77 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.429e-05/0.2471, allocations: 98.14 kB / 407.2 MB, free: 40.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2471, allocations: 3.938 kB / 407.2 MB, free: 40.68 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004027/0.2475, allocations: 79.22 kB / 407.2 MB, free: 40.67 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.0001517/0.2477, allocations: 132.8 kB / 407.4 MB, free: 40.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005526/0.2482, allocations: 312.6 kB / 407.7 MB, free: 40.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.2482, allocations: 1.438 kB / 407.7 MB, free: 40.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005753/0.2488, allocations: 0.7308 MB / 408.4 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.2491, allocations: 46.58 kB / 408.4 MB, free: 39.87 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009714/0.2501, allocations: 0.6068 MB / 409.1 MB, free: 39.31 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001231/0.2503, allocations: 0.7294 MB / 409.8 MB, free: 38.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.533e-05/0.2504, allocations: 33.92 kB / 409.8 MB, free: 38.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2505, allocations: 39.41 kB / 409.9 MB, free: 38.49 MB / 318.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2505, allocations: 0 / 409.9 MB, free: 38.49 MB / 318.1 MB Notification: Performance of Templates: time 0.005797/0.2563, allocations: 3.657 MB / 413.5 MB, free: 34.85 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=50 -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