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.00502/0.00502, allocations: 104 kB / 15.88 MB, free: 6.285 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.001246/0.001246, allocations: 195.8 kB / 16.8 MB, free: 6.223 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.206/1.206, allocations: 205.1 MB / 222.7 MB, free: 4.938 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05548/0.05548, allocations: 14.15 MB / 284.1 MB, free: 7.527 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.001275/0.001275, allocations: 67.89 kB / 346.4 MB, free: 18.51 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07518/0.07647, allocations: 50.13 MB / 396.5 MB, free: 356 kB / 286.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002224/0.07873, allocations: 1.503 MB / 398 MB, free: 14.83 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.000757/0.0795, allocations: 0.531 MB / 398.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.532e-05/0.07954, allocations: 0 / 398.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.03e-05/0.07957, allocations: 3.938 kB / 398.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.623e-05/0.07966, allocations: 11.91 kB / 398.6 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001737/0.07984, allocations: 67.88 kB / 398.7 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001536/0.08, allocations: 187.6 kB / 398.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.928e-05/0.08006, allocations: 4 kB / 398.8 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.838e-05/0.08016, allocations: 99.78 kB / 398.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.483e-05/0.08026, allocations: 87.73 kB / 399 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.567e-05/0.0803, allocations: 12 kB / 399 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.105e-05/0.08034, allocations: 12 kB / 399 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.171e-05/0.0804, allocations: 59.83 kB / 399.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001034/0.08051, allocations: 87.72 kB / 399.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001395/0.08066, allocations: 131.9 kB / 399.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.01e-06/0.08067, allocations: 7.984 kB / 399.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.08067, allocations: 0 / 399.3 MB, free: 13.54 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.08068, allocations: 0 / 399.3 MB, free: 13.54 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.0008626/0.08155, allocations: 0.5535 MB / 399.9 MB, free: 12.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.215e-05/0.08159, allocations: 12.03 kB / 399.9 MB, free: 12.92 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.878e-05/0.08168, allocations: 24.83 kB / 399.9 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001215/0.08181, allocations: 172.3 kB / 400.1 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.08184, allocations: 16.34 kB / 400.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.899e-05/0.08191, allocations: 28.36 kB / 400.1 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005306/0.08245, allocations: 381.3 kB / 400.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.286e-06/0.08247, allocations: 0 / 400.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.377e-05/0.08251, allocations: 11.97 kB / 400.5 MB, free: 12.26 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.08252, allocations: 4 kB / 400.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.0827, allocations: 59.95 kB / 400.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003434/0.08305, allocations: 368.6 kB / 400.9 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002422/0.0833, allocations: 182.5 kB / 401.1 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002155/0.08352, allocations: 164.8 kB / 401.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.317e-06/0.08353, allocations: 0 / 401.3 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006537/0.08419, allocations: 0.523 MB / 401.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.363e-06/0.0842, allocations: 0 / 401.8 MB, free: 10.9 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008542/0.08506, allocations: 0.6458 MB / 402.4 MB, free: 10.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/0.08511, allocations: 63.39 kB / 402.5 MB, free: 10.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.431e-05/0.0852, allocations: 129.4 kB / 402.6 MB, free: 10.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.08524, allocations: 45.69 kB / 402.7 MB, free: 9.988 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.321e-05/0.08529, allocations: 92.69 kB / 402.8 MB, free: 9.895 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.74e-05/0.08535, allocations: 75.16 kB / 402.8 MB, free: 9.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.072e-05/0.08544, allocations: 61.7 kB / 402.9 MB, free: 9.754 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.145e-05/0.08554, allocations: 338.7 kB / 403.2 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.08568, allocations: 84.3 kB / 403.3 MB, free: 9.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001713/0.08586, allocations: 155.4 kB / 403.5 MB, free: 9.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003119/0.08617, allocations: 241.7 kB / 403.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.08618, allocations: 0 / 403.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003238/0.08651, allocations: 245.1 kB / 403.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.08653, allocations: 4.125 kB / 403.9 MB, free: 8.652 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.08654, allocations: 8 kB / 404 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.608e-06/0.08655, allocations: 0 / 404 MB, free: 8.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.811e-05/0.08664, allocations: 19.94 kB / 404 MB, free: 8.625 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.874e-06/0.08665, allocations: 7.984 kB / 404 MB, free: 8.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.08685, allocations: 31.97 kB / 404 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.129e-05/0.08688, allocations: 12 kB / 404 MB, free: 8.574 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.0001572/0.08704, allocations: 159.7 kB / 404.2 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.045e-05/0.0871, allocations: 31.8 kB / 404.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.868e-05/0.08716, allocations: 29.67 kB / 404.2 MB, free: 8.352 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.08717, allocations: 7.984 kB / 404.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.08718, allocations: 0 / 404.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.08718, allocations: 0 / 404.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002121/0.0874, allocations: 277.4 kB / 404.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.08741, allocations: 0 / 404.5 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.014e-05/0.08744, allocations: 15.94 kB / 404.5 MB, free: 8.008 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.08745, allocations: 4 kB / 404.5 MB, free: 8.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/0.08749, allocations: 23.95 kB / 404.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.0875, allocations: 0 / 404.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.0875, allocations: 0 / 404.6 MB, free: 7.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00107/0.08858, allocations: 1.272 MB / 405.8 MB, free: 6.648 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001225/0.08871, allocations: 120.8 kB / 406 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.211e-05/0.08879, allocations: 31.91 kB / 406 MB, free: 6.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002023/0.089, allocations: 39.94 kB / 406 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.08919, allocations: 87.77 kB / 406.1 MB, free: 6.355 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.08924, allocations: 43.95 kB / 406.2 MB, free: 6.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.688e-05/0.08929, allocations: 95.27 kB / 406.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.0893, allocations: 0 / 406.2 MB, free: 6.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003636/0.08967, allocations: 75.98 kB / 406.3 MB, free: 6.145 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.0001268/0.0898, allocations: 145.4 kB / 406.5 MB, free: 5.996 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004492/0.09025, allocations: 300.9 kB / 406.8 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.09026, allocations: 0 / 406.8 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005421/0.09081, allocations: 0.7225 MB / 407.5 MB, free: 4.98 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002694/0.09109, allocations: 51.89 kB / 407.5 MB, free: 4.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009565/0.09205, allocations: 0.6286 MB / 408.2 MB, free: 4.262 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002279/0.09229, allocations: 0.7258 MB / 408.9 MB, free: 3.512 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001044/0.0924, allocations: 29.94 kB / 408.9 MB, free: 3.484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001145/0.09252, allocations: 39.39 kB / 408.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.09252, allocations: 0 / 408.9 MB, free: 3.445 MB / 302.1 MB Notification: Performance of Templates: time 0.005562/0.09809, allocations: 3.309 MB / 412.3 MB, free: 148 kB / 302.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","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches