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.001349/0.001349, allocations: 115.8 kB / 16.37 MB, free: 6 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.001492/0.001492, 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.294/1.294, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05991/0.05991, allocations: 14.17 MB / 284.7 MB, free: 13.89 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.001557/0.001557, allocations: 63.91 kB / 347.9 MB, free: 14.54 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2196/0.2212, allocations: 50.12 MB / 398.1 MB, free: 48.58 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002266/0.2235, allocations: 1.428 MB / 399.5 MB, free: 47.45 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008016/0.2243, allocations: 0.5301 MB / 400 MB, free: 47.04 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.449e-05/0.2244, allocations: 3.938 kB / 400 MB, free: 47.03 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.351e-05/0.2244, allocations: 3.938 kB / 400 MB, free: 47.03 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.175e-05/0.2245, allocations: 13.16 kB / 400 MB, free: 47.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002102/0.2247, allocations: 74.08 kB / 400.1 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001671/0.2249, allocations: 189.7 kB / 400.3 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.177e-05/0.225, allocations: 3.219 kB / 400.3 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001209/0.2251, allocations: 100.1 kB / 400.4 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001057/0.2252, allocations: 87.92 kB / 400.5 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.957e-05/0.2253, allocations: 12.81 kB / 400.5 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.817e-05/0.2253, allocations: 13.78 kB / 400.5 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.166e-05/0.2253, allocations: 54.19 kB / 400.6 MB, free: 46.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.223e-05/0.2254, allocations: 85.81 kB / 400.6 MB, free: 46.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.2256, allocations: 138.7 kB / 400.8 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2256, allocations: 0 / 400.8 MB, free: 46.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2256, allocations: 3.938 kB / 400.8 MB, free: 46.54 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.2256, allocations: 0 / 400.8 MB, free: 46.54 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.0008115/0.2264, allocations: 0.5507 MB / 401.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2265, allocations: 8.75 kB / 401.3 MB, free: 46.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.138e-05/0.2266, allocations: 27.83 kB / 401.4 MB, free: 46.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.51e-05/0.2267, allocations: 181.2 kB / 401.5 MB, free: 45.83 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.085e-05/0.2267, allocations: 15.08 kB / 401.6 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.303e-05/0.2268, allocations: 26.72 kB / 401.6 MB, free: 45.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.2273, allocations: 381.1 kB / 402 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.2273, allocations: 0 / 402 MB, free: 45.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.112e-05/0.2273, allocations: 13.17 kB / 402 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.2273, allocations: 1.344 kB / 402 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001682/0.2275, allocations: 62.72 kB / 402 MB, free: 45.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003199/0.2278, allocations: 380.1 kB / 402.4 MB, free: 45.12 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002406/0.2281, allocations: 176.2 kB / 402.6 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.2283, allocations: 156.8 kB / 402.7 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.388e-05/0.2283, allocations: 1.281 kB / 402.7 MB, free: 44.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007126/0.229, allocations: 0.5343 MB / 403.3 MB, free: 44.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.463e-06/0.2291, allocations: 0 / 403.3 MB, free: 44.59 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.001118/0.2302, allocations: 0.6431 MB / 403.9 MB, free: 44.25 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.2302, allocations: 60.06 kB / 404 MB, free: 44.19 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.773e-05/0.2303, allocations: 124 kB / 404.1 MB, free: 44.07 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.2304, allocations: 45.41 kB / 404.1 MB, free: 44.03 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.65e-05/0.2304, allocations: 94.83 kB / 404.2 MB, free: 43.94 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.908e-05/0.2305, allocations: 77.62 kB / 404.3 MB, free: 43.87 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.48e-05/0.2306, allocations: 54.98 kB / 404.4 MB, free: 43.83 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.826e-05/0.2306, allocations: 334.9 kB / 404.7 MB, free: 43.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000138/0.2308, allocations: 92.08 kB / 404.8 MB, free: 43.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002411/0.231, allocations: 158.5 kB / 404.9 MB, free: 43.32 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004829/0.2315, allocations: 225.5 kB / 405.1 MB, free: 43.19 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.2315, allocations: 0.75 kB / 405.1 MB, free: 43.19 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003562/0.2319, allocations: 246.6 kB / 405.4 MB, free: 43.06 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.2319, allocations: 8.188 kB / 405.4 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.232, allocations: 1.438 kB / 405.4 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.659e-05/0.232, allocations: 2.812 kB / 405.4 MB, free: 43.06 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.541e-05/0.2321, allocations: 21.08 kB / 405.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.2321, allocations: 3.812 kB / 405.4 MB, free: 43.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001932/0.2323, allocations: 39.02 kB / 405.5 MB, free: 43.03 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.262e-05/0.2323, allocations: 12.5 kB / 405.5 MB, free: 43.02 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.0001469/0.2325, allocations: 160.6 kB / 405.6 MB, free: 42.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.705e-05/0.2325, allocations: 25.66 kB / 405.7 MB, free: 42.86 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.503e-05/0.2326, allocations: 34.67 kB / 405.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.2326, allocations: 3.406 kB / 405.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.2326, allocations: 1.062 kB / 405.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2326, allocations: 0 / 405.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.2328, allocations: 285.8 kB / 406 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.2328, allocations: 1 kB / 406 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.596e-05/0.2329, allocations: 11.02 kB / 406 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.2329, allocations: 2.312 kB / 406 MB, free: 42.54 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.778e-05/0.2329, allocations: 27.7 kB / 406 MB, free: 42.52 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.2329, allocations: 5.094 kB / 406 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2329, allocations: 0 / 406 MB, free: 42.51 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007536/0.2337, allocations: 0.5655 MB / 406.6 MB, free: 42.18 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001293/0.2338, allocations: 122.5 kB / 406.7 MB, free: 42.06 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.613e-05/0.2339, allocations: 22.03 kB / 406.7 MB, free: 42.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.2341, allocations: 41.19 kB / 406.8 MB, free: 42.03 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000207/0.2343, allocations: 82.66 kB / 406.8 MB, free: 41.98 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.913e-05/0.2344, allocations: 44.84 kB / 406.9 MB, free: 41.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.417e-05/0.2344, allocations: 101.6 kB / 407 MB, free: 41.87 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2344, allocations: 0 / 407 MB, free: 41.87 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003271/0.2348, allocations: 78.58 kB / 407.1 MB, free: 41.85 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.0001354/0.2349, allocations: 141.8 kB / 407.2 MB, free: 41.73 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005208/0.2354, allocations: 295.5 kB / 407.5 MB, free: 41.6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2355, allocations: 0 / 407.5 MB, free: 41.6 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003943/0.2359, allocations: 0.7344 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.0002826/0.2362, allocations: 47.88 kB / 408.3 MB, free: 40.82 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008741/0.237, allocations: 442.9 kB / 408.7 MB, free: 40.36 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001553/0.2372, allocations: 0.7255 MB / 409.4 MB, free: 39.61 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.982e-05/0.2373, allocations: 25.95 kB / 409.5 MB, free: 39.59 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/0.2374, allocations: 43.39 kB / 409.5 MB, free: 39.55 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2374, allocations: 0 / 409.5 MB, free: 39.55 MB / 318.1 MB Notification: Performance of Templates: time 0.006191/0.2436, allocations: 3.648 MB / 413.1 MB, free: 35.91 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 cvode -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