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.001466/0.001466, allocations: 117.2 kB / 16.37 MB, free: 6.004 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.001635/0.001635, allocations: 193.3 kB / 17.31 MB, free: 5.613 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.341/1.341, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06227/0.06227, allocations: 14.17 MB / 284.7 MB, free: 13.88 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.00165/0.00165, allocations: 71.91 kB / 347.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2248, allocations: 50.11 MB / 398.1 MB, free: 48.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002655/0.2275, allocations: 1.427 MB / 399.5 MB, free: 47.38 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009168/0.2285, allocations: 0.5341 MB / 400 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.492e-05/0.2286, allocations: 3.938 kB / 400 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.98e-05/0.2286, allocations: 3.938 kB / 400 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 9.922e-05/0.2287, allocations: 13.64 kB / 400 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002057/0.2289, allocations: 73.7 kB / 400.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001719/0.2291, allocations: 190.2 kB / 400.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.228e-05/0.2292, allocations: 3.188 kB / 400.3 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001327/0.2293, allocations: 95.38 kB / 400.4 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.2295, allocations: 92.56 kB / 400.5 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.905e-05/0.2295, allocations: 16.25 kB / 400.5 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.991e-05/0.2295, allocations: 13.41 kB / 400.5 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.91e-05/0.2296, allocations: 55.19 kB / 400.6 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.367e-05/0.2297, allocations: 85.91 kB / 400.6 MB, free: 46.57 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001556/0.2299, allocations: 133.4 kB / 400.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.2299, allocations: 1.375 kB / 400.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2299, allocations: 0 / 400.8 MB, free: 46.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.2299, allocations: 0 / 400.8 MB, free: 46.48 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.0008702/0.2308, allocations: 0.5533 MB / 401.3 MB, free: 45.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.2308, allocations: 13.84 kB / 401.3 MB, free: 45.98 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.67e-05/0.2309, allocations: 20.06 kB / 401.4 MB, free: 45.97 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.796e-05/0.231, allocations: 177.3 kB / 401.5 MB, free: 45.77 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.231, allocations: 14.48 kB / 401.6 MB, free: 45.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.2311, allocations: 26.91 kB / 401.6 MB, free: 45.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.2316, allocations: 381.6 kB / 401.9 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.2316, allocations: 0 / 401.9 MB, free: 45.47 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.453e-05/0.2317, allocations: 12.05 kB / 402 MB, free: 45.46 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.2317, allocations: 9.172 kB / 402 MB, free: 45.46 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.2319, allocations: 67.19 kB / 402 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003315/0.2322, allocations: 373.9 kB / 402.4 MB, free: 45.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.2325, allocations: 174.6 kB / 402.6 MB, free: 44.95 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002183/0.2327, allocations: 157.3 kB / 402.7 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.413e-05/0.2327, allocations: 1.375 kB / 402.7 MB, free: 44.86 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007372/0.2335, allocations: 0.528 MB / 403.3 MB, free: 44.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.2335, allocations: 1.094 kB / 403.3 MB, free: 44.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009409/0.2344, allocations: 0.6424 MB / 403.9 MB, free: 44.19 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.2345, allocations: 64.09 kB / 404 MB, free: 44.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.2346, allocations: 123.6 kB / 404.1 MB, free: 44.01 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.902e-05/0.2346, allocations: 45.19 kB / 404.1 MB, free: 43.96 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.644e-05/0.2347, allocations: 94.92 kB / 404.2 MB, free: 43.87 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.952e-05/0.2347, allocations: 78.61 kB / 404.3 MB, free: 43.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.659e-05/0.2348, allocations: 54.48 kB / 404.3 MB, free: 43.77 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.349e-05/0.2349, allocations: 330.3 kB / 404.7 MB, free: 43.44 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.2351, allocations: 92.27 kB / 404.8 MB, free: 43.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.2353, allocations: 158.4 kB / 404.9 MB, free: 43.26 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003588/0.2356, allocations: 237.7 kB / 405.1 MB, free: 43.11 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.2356, allocations: 1.031 kB / 405.1 MB, free: 43.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003643/0.236, allocations: 242.8 kB / 405.4 MB, free: 42.99 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.665e-05/0.236, allocations: 8.594 kB / 405.4 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.236, allocations: 1.438 kB / 405.4 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.857e-05/0.2361, allocations: 1.469 kB / 405.4 MB, free: 42.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.2362, allocations: 22.08 kB / 405.4 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.2362, allocations: 2.969 kB / 405.4 MB, free: 42.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.2364, allocations: 43.64 kB / 405.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.316e-05/0.2364, allocations: 11.09 kB / 405.5 MB, free: 42.95 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.000171/0.2366, allocations: 157.9 kB / 405.6 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.969e-05/0.2367, allocations: 29.83 kB / 405.7 MB, free: 42.79 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.347e-05/0.2367, allocations: 35.83 kB / 405.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.2368, allocations: 2.812 kB / 405.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.2368, allocations: 0 / 405.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2368, allocations: 0 / 405.7 MB, free: 42.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002003/0.237, allocations: 286 kB / 406 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.237, allocations: 0.9375 kB / 406 MB, free: 42.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.06e-05/0.237, allocations: 12.11 kB / 406 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.237, allocations: 1.531 kB / 406 MB, free: 42.46 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.45e-05/0.2371, allocations: 27.8 kB / 406 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.2371, allocations: 1.531 kB / 406 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2371, allocations: 0 / 406 MB, free: 42.44 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006825/0.2378, allocations: 0.569 MB / 406.6 MB, free: 42.11 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.2379, allocations: 113.8 kB / 406.7 MB, free: 41.99 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.913e-05/0.238, allocations: 26.33 kB / 406.7 MB, free: 41.98 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002143/0.2382, allocations: 45.31 kB / 406.8 MB, free: 41.95 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000199/0.2384, allocations: 78.84 kB / 406.8 MB, free: 41.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.169e-05/0.2385, allocations: 44.77 kB / 406.9 MB, free: 41.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.161e-05/0.2386, allocations: 106 kB / 407 MB, free: 41.79 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2386, allocations: 0 / 407 MB, free: 41.79 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003149/0.2389, allocations: 79.36 kB / 407.1 MB, free: 41.78 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.0001392/0.239, allocations: 136.8 kB / 407.2 MB, free: 41.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005086/0.2395, allocations: 295.8 kB / 407.5 MB, free: 41.53 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2396, allocations: 0 / 407.5 MB, free: 41.53 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004748/0.24, allocations: 0.7279 MB / 408.2 MB, free: 40.87 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.2403, allocations: 56.08 kB / 408.3 MB, free: 40.81 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009141/0.2413, allocations: 439 kB / 408.7 MB, free: 40.35 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001615/0.2414, allocations: 0.7138 MB / 409.4 MB, free: 39.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.2415, allocations: 37.92 kB / 409.5 MB, free: 39.58 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.2417, allocations: 43.39 kB / 409.5 MB, free: 39.54 MB / 318.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2417, allocations: 4 kB / 409.5 MB, free: 39.53 MB / 318.1 MB Notification: Performance of Templates: time 0.006394/0.2481, allocations: 3.652 MB / 413.2 MB, free: 35.9 MB / 318.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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches