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.001482/0.001482, allocations: 103.2 kB / 16.94 MB, free: 6.188 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.001707/0.001707, allocations: 192.2 kB / 17.87 MB, free: 5.281 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.351/1.351, allocations: 205.1 MB / 223.7 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.06534/0.06534, allocations: 14.16 MB / 285.3 MB, free: 13.93 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.001625/0.001625, allocations: 67.89 kB / 347.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2072/0.2088, allocations: 50.13 MB / 397.9 MB, free: 48.34 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002148/0.211, allocations: 1.427 MB / 399.4 MB, free: 47.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007924/0.2118, allocations: 0.528 MB / 399.9 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.987e-05/0.2119, allocations: 3.938 kB / 399.9 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.812e-05/0.2119, allocations: 7.938 kB / 399.9 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.555e-05/0.212, allocations: 13.92 kB / 399.9 MB, free: 46.78 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.2121, allocations: 72.86 kB / 400 MB, free: 46.72 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001436/0.2123, allocations: 184.9 kB / 400.2 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.538e-05/0.2123, allocations: 3.312 kB / 400.2 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.559e-05/0.2124, allocations: 100.6 kB / 400.3 MB, free: 46.58 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.601e-05/0.2125, allocations: 87.08 kB / 400.4 MB, free: 46.52 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.127e-05/0.2126, allocations: 16.66 kB / 400.4 MB, free: 46.51 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.403e-05/0.2126, allocations: 13.72 kB / 400.4 MB, free: 46.51 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.49e-05/0.2127, allocations: 59.78 kB / 400.4 MB, free: 46.46 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.904e-05/0.2128, allocations: 81.56 kB / 400.5 MB, free: 46.41 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001379/0.2129, allocations: 135.8 kB / 400.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.2129, allocations: 0 / 400.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.213, allocations: 0 / 400.7 MB, free: 46.31 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.709e-06/0.213, allocations: 1.094 kB / 400.7 MB, free: 46.31 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.0008401/0.2138, allocations: 0.5471 MB / 401.2 MB, free: 45.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2138, allocations: 9.062 kB / 401.2 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.8e-05/0.214, allocations: 28.03 kB / 401.2 MB, free: 45.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.26e-05/0.2141, allocations: 184.5 kB / 401.4 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.206e-05/0.2141, allocations: 18.69 kB / 401.4 MB, free: 45.58 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.316e-05/0.2141, allocations: 27.06 kB / 401.5 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004902/0.2146, allocations: 380.2 kB / 401.8 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.806e-06/0.2147, allocations: 1.344 kB / 401.8 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.2147, allocations: 11.86 kB / 401.8 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.649e-06/0.2147, allocations: 1.25 kB / 401.8 MB, free: 45.29 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001902/0.2149, allocations: 67.03 kB / 401.9 MB, free: 45.26 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003171/0.2152, allocations: 379.8 kB / 402.3 MB, free: 44.88 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002378/0.2155, allocations: 176.9 kB / 402.5 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002112/0.2157, allocations: 156.9 kB / 402.6 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.301e-05/0.2157, allocations: 1.062 kB / 402.6 MB, free: 44.69 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000632/0.2164, allocations: 0.5212 MB / 403.1 MB, free: 44.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 2.094e-06/0.2164, allocations: 3.984 kB / 403.1 MB, free: 44.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008527/0.2172, allocations: 0.6471 MB / 403.8 MB, free: 44.01 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.127e-05/0.2173, allocations: 59.94 kB / 403.8 MB, free: 43.95 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.502e-05/0.2174, allocations: 127.8 kB / 404 MB, free: 43.83 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.623e-05/0.2174, allocations: 45.03 kB / 404 MB, free: 43.79 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.236e-05/0.2174, allocations: 98.98 kB / 404.1 MB, free: 43.69 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.67e-05/0.2175, allocations: 73.91 kB / 404.2 MB, free: 43.62 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.858e-05/0.2176, allocations: 55.14 kB / 404.2 MB, free: 43.59 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.379e-05/0.2176, allocations: 334.4 kB / 404.6 MB, free: 43.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001328/0.2178, allocations: 84.05 kB / 404.6 MB, free: 43.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.2179, allocations: 158.8 kB / 404.8 MB, free: 43.09 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002995/0.2182, allocations: 230.2 kB / 405 MB, free: 42.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.2182, allocations: 0 / 405 MB, free: 42.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003298/0.2186, allocations: 246.5 kB / 405.3 MB, free: 42.82 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2186, allocations: 5.938 kB / 405.3 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.2186, allocations: 1.062 kB / 405.3 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.2186, allocations: 2.938 kB / 405.3 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.265e-05/0.2187, allocations: 16.77 kB / 405.3 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.2187, allocations: 3.281 kB / 405.3 MB, free: 42.81 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002218/0.219, allocations: 47.86 kB / 405.3 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.963e-05/0.219, allocations: 7.375 kB / 405.3 MB, free: 42.79 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.0001516/0.2191, allocations: 156.9 kB / 405.5 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.515e-05/0.2192, allocations: 29.89 kB / 405.5 MB, free: 42.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.439e-05/0.2193, allocations: 35.61 kB / 405.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.2193, allocations: 3.344 kB / 405.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.2193, allocations: 0 / 405.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.2193, allocations: 0 / 405.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.2195, allocations: 286.1 kB / 405.8 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.2195, allocations: 1.094 kB / 405.8 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.57e-05/0.2195, allocations: 11.45 kB / 405.9 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2195, allocations: 1.188 kB / 405.9 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.814e-05/0.2196, allocations: 31.89 kB / 405.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.2196, allocations: 1.125 kB / 405.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2196, allocations: 1.5 kB / 405.9 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009941/0.2206, allocations: 1.506 MB / 407.4 MB, free: 41.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.2207, allocations: 117 kB / 407.5 MB, free: 40.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.708e-05/0.2208, allocations: 30.95 kB / 407.5 MB, free: 40.89 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002174/0.221, allocations: 40.94 kB / 407.6 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001705/0.2212, allocations: 83.5 kB / 407.7 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/0.2213, allocations: 48.48 kB / 407.7 MB, free: 40.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.812e-05/0.2213, allocations: 105.3 kB / 407.8 MB, free: 40.71 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2213, allocations: 0 / 407.8 MB, free: 40.71 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004001/0.2217, allocations: 74.48 kB / 407.9 MB, free: 40.7 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.0001247/0.2218, allocations: 137.2 kB / 408 MB, free: 40.58 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005005/0.2224, allocations: 312.8 kB / 408.3 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2224, allocations: 1.062 kB / 408.3 MB, free: 40.43 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005041/0.2229, allocations: 0.7199 MB / 409 MB, free: 39.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003002/0.2232, allocations: 58.53 kB / 409.1 MB, free: 39.89 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009547/0.2241, allocations: 0.6336 MB / 409.7 MB, free: 39.28 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001107/0.2243, allocations: 0.7254 MB / 410.5 MB, free: 38.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.2244, allocations: 43.41 kB / 410.5 MB, free: 38.49 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2244, allocations: 7.938 kB / 410.5 MB, free: 38.48 MB / 318.1 MB Notification: Performance of Templates: time 0.003237/0.2276, allocations: 2.575 MB / 413.1 MB, free: 35.92 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=480 -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