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.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_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_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.001125/0.001125, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001146/0.001146, allocations: 172.3 kB / 16.92 MB, free: 6.652 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.39/1.39, allocations: 205.4 MB / 223.1 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06009/0.06009, allocations: 14.16 MB / 285.6 MB, free: 7.027 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.0005325/0.0005327, allocations: 12 kB / 348.8 MB, free: 18.16 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08533/0.08588, allocations: 51.11 MB / 399.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001607/0.08751, allocations: 1.16 MB / 401.1 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009428/0.08848, allocations: 0.5349 MB / 401.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.896e-05/0.08855, allocations: 0 / 401.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.654e-05/0.08858, allocations: 0 / 401.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 9.496e-05/0.08868, allocations: 19.84 kB / 401.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002067/0.0889, allocations: 63.88 kB / 401.7 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000174/0.08908, allocations: 183.6 kB / 401.8 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.259e-05/0.08914, allocations: 3.984 kB / 401.9 MB, free: 13.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001453/0.08929, allocations: 99.78 kB / 401.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001218/0.08943, allocations: 87.67 kB / 402 MB, free: 12.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.971e-05/0.08947, allocations: 16 kB / 402.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.133e-05/0.08951, allocations: 16 kB / 402.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.508e-05/0.08957, allocations: 59.84 kB / 402.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001198/0.0897, allocations: 109.5 kB / 402.2 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001162/0.08982, allocations: 80.12 kB / 402.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.08983, allocations: 3.938 kB / 402.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08984, allocations: 0 / 402.3 MB, free: 12.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.08985, allocations: 3.938 kB / 402.3 MB, free: 12.56 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.0008435/0.0907, allocations: 495.1 kB / 402.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.09075, allocations: 8.031 kB / 402.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001089/0.09086, allocations: 24.83 kB / 402.8 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001304/0.091, allocations: 176.2 kB / 403 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.869e-05/0.09105, allocations: 16.36 kB / 403 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.575e-05/0.09113, allocations: 28.36 kB / 403 MB, free: 11.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005821/0.09172, allocations: 381.4 kB / 403.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.09174, allocations: 0 / 403.4 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.612e-05/0.0918, allocations: 15.97 kB / 403.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.09181, allocations: 0 / 403.4 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001786/0.09199, allocations: 67.88 kB / 403.5 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003993/0.0924, allocations: 368.6 kB / 403.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002623/0.09267, allocations: 174.5 kB / 404 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002345/0.09292, allocations: 164.8 kB / 404.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.351e-05/0.09294, allocations: 4 kB / 404.2 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007458/0.09369, allocations: 0.5114 MB / 404.7 MB, free: 10 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.164e-06/0.0937, allocations: 4 kB / 404.7 MB, free: 10 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009305/0.09464, allocations: 0.6534 MB / 405.4 MB, free: 9.34 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.025e-05/0.0947, allocations: 67.38 kB / 405.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.663e-05/0.0948, allocations: 125.8 kB / 405.6 MB, free: 9.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.927e-05/0.09486, allocations: 45.69 kB / 405.6 MB, free: 9.078 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.768e-05/0.09492, allocations: 92.69 kB / 405.7 MB, free: 8.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.553e-05/0.095, allocations: 75.14 kB / 405.8 MB, free: 8.91 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.09505, allocations: 33.7 kB / 405.8 MB, free: 8.871 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000115/0.09518, allocations: 338.8 kB / 406.1 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.09533, allocations: 88.23 kB / 406.2 MB, free: 8.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001887/0.09553, allocations: 147.4 kB / 406.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003467/0.09588, allocations: 245.6 kB / 406.6 MB, free: 8.016 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.09589, allocations: 7.938 kB / 406.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003611/0.09626, allocations: 237.2 kB / 406.8 MB, free: 7.77 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.09629, allocations: 4 kB / 406.8 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.097e-05/0.09631, allocations: 4 kB / 406.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.09633, allocations: 0 / 406.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.09645, allocations: 28.05 kB / 406.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.09646, allocations: 0 / 406.9 MB, free: 7.734 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.0967, allocations: 43.91 kB / 406.9 MB, free: 7.691 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.358e-05/0.09673, allocations: 12 kB / 406.9 MB, free: 7.68 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.000179/0.09691, allocations: 161.4 kB / 407.1 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.732e-05/0.09697, allocations: 27.8 kB / 407.1 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.82e-05/0.09706, allocations: 33.62 kB / 407.1 MB, free: 7.457 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.659e-06/0.09707, allocations: 4 kB / 407.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.09708, allocations: 0 / 407.1 MB, free: 7.453 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.09709, allocations: 3.984 kB / 407.2 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002416/0.09734, allocations: 273.4 kB / 407.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.09735, allocations: 0 / 407.4 MB, free: 7.133 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.889e-05/0.09738, allocations: 8 kB / 407.4 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.09739, allocations: 4 kB / 407.4 MB, free: 7.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.09743, allocations: 23.95 kB / 407.5 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.09744, allocations: 7.938 kB / 407.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.09745, allocations: 0 / 407.5 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006812/0.09813, allocations: 0.5592 MB / 408 MB, free: 6.512 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.09827, allocations: 120.8 kB / 408.1 MB, free: 6.375 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.056e-05/0.09835, allocations: 23.97 kB / 408.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002258/0.09858, allocations: 55.94 kB / 408.2 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.09878, allocations: 83.83 kB / 408.3 MB, free: 6.215 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.278e-05/0.09884, allocations: 43.95 kB / 408.3 MB, free: 6.172 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.23e-05/0.09889, allocations: 95.27 kB / 408.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.293e-06/0.0989, allocations: 0 / 408.4 MB, free: 6.078 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002915/0.0992, allocations: 83.91 kB / 408.5 MB, free: 5.996 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.0001532/0.09936, allocations: 137.4 kB / 408.7 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004806/0.09984, allocations: 300.9 kB / 408.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.09986, allocations: 0 / 408.9 MB, free: 5.562 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006018/0.1005, allocations: 0.7186 MB / 409.7 MB, free: 4.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003132/0.1008, allocations: 63.19 kB / 409.7 MB, free: 4.785 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009729/0.1018, allocations: 480.9 kB / 410.2 MB, free: 4.285 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.102, allocations: 0.7256 MB / 410.9 MB, free: 3.535 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.1021, allocations: 43.39 kB / 411 MB, free: 3.492 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1022, allocations: 0 / 411 MB, free: 3.492 MB / 302.1 MB Notification: Performance of Templates: time 0.004125/0.1063, allocations: 2.558 MB / 413.5 MB, free: 0.9375 MB / 302.1 MB make -j1 -f PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.makefile (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) diffSimulationResults("PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","../files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches