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.001086/0.001086, allocations: 111.6 kB / 16.65 MB, free: 6.777 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.001045/0.001045, allocations: 193.9 kB / 17.57 MB, free: 5.914 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.275/1.275, allocations: 205.1 MB / 223.4 MB, free: 12.42 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.05996/0.05996, allocations: 14.16 MB / 284.9 MB, free: 14.1 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.001346/0.001346, allocations: 75.84 kB / 347.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2108, allocations: 50.13 MB / 397.4 MB, free: 48.36 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002202/0.213, allocations: 1.486 MB / 398.9 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007567/0.2138, allocations: 0.5415 MB / 399.4 MB, free: 46.76 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.694e-05/0.2139, allocations: 4 kB / 399.4 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.979e-05/0.2139, allocations: 3.938 kB / 399.4 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.751e-05/0.214, allocations: 18.38 kB / 399.4 MB, free: 46.73 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001652/0.2141, allocations: 58.75 kB / 399.5 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.2143, allocations: 184.6 kB / 399.7 MB, free: 46.6 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.931e-05/0.2144, allocations: 10.7 kB / 399.7 MB, free: 46.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.338e-05/0.2145, allocations: 96.47 kB / 399.8 MB, free: 46.54 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.578e-05/0.2146, allocations: 87.86 kB / 399.9 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.401e-05/0.2146, allocations: 12.34 kB / 399.9 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.921e-05/0.2146, allocations: 17.88 kB / 399.9 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.122e-05/0.2147, allocations: 55.47 kB / 400 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.98e-05/0.2148, allocations: 84.16 kB / 400 MB, free: 46.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 8.48e-05/0.2149, allocations: 85.3 kB / 400.1 MB, free: 46.32 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.918e-06/0.2149, allocations: 0 / 400.1 MB, free: 46.32 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.053e-06/0.2149, allocations: 0 / 400.1 MB, free: 46.32 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2149, allocations: 5.094 kB / 400.1 MB, free: 46.32 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.0008108/0.2157, allocations: 0.5475 MB / 400.7 MB, free: 45.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2158, allocations: 8.469 kB / 400.7 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.068e-05/0.2158, allocations: 24.39 kB / 400.7 MB, free: 45.82 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.394e-05/0.2159, allocations: 181.6 kB / 400.9 MB, free: 45.61 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.216, allocations: 14.86 kB / 400.9 MB, free: 45.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.648e-05/0.216, allocations: 23.08 kB / 400.9 MB, free: 45.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004945/0.2165, allocations: 376.6 kB / 401.3 MB, free: 45.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.727e-06/0.2166, allocations: 7.922 kB / 401.3 MB, free: 45.31 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.713e-05/0.2166, allocations: 12.8 kB / 401.3 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.2166, allocations: 1.594 kB / 401.3 MB, free: 45.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.2168, allocations: 74.72 kB / 401.4 MB, free: 45.27 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003078/0.2171, allocations: 375.6 kB / 401.7 MB, free: 44.89 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002382/0.2174, allocations: 168.1 kB / 401.9 MB, free: 44.79 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002161/0.2176, allocations: 161.5 kB / 402.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.2176, allocations: 1.406 kB / 402.1 MB, free: 44.7 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006564/0.2183, allocations: 0.5226 MB / 402.6 MB, free: 44.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=30): time 1.633e-06/0.2183, allocations: 0 / 402.6 MB, free: 44.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=30): time 0.0008726/0.2192, allocations: 0.6564 MB / 403.3 MB, free: 44.02 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.312e-05/0.2192, allocations: 55.62 kB / 403.3 MB, free: 43.96 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.579e-05/0.2193, allocations: 130 kB / 403.4 MB, free: 43.84 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.987e-05/0.2193, allocations: 42.45 kB / 403.5 MB, free: 43.8 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.106e-05/0.2194, allocations: 102.9 kB / 403.6 MB, free: 43.7 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.489e-05/0.2194, allocations: 65.67 kB / 403.6 MB, free: 43.64 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.168e-05/0.2195, allocations: 59.06 kB / 403.7 MB, free: 43.6 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.578e-05/0.2195, allocations: 326.1 kB / 404 MB, free: 43.28 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001332/0.2197, allocations: 91.98 kB / 404.1 MB, free: 43.23 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001576/0.2198, allocations: 156 kB / 404.3 MB, free: 43.11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.2201, allocations: 241 kB / 404.5 MB, free: 42.96 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2202, allocations: 7.938 kB / 404.5 MB, free: 42.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003213/0.2205, allocations: 238.7 kB / 404.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2205, allocations: 5.656 kB / 404.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2205, allocations: 1.219 kB / 404.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.2205, allocations: 3.156 kB / 404.7 MB, free: 42.83 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.949e-05/0.2206, allocations: 17.23 kB / 404.8 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.2207, allocations: 7.031 kB / 404.8 MB, free: 42.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.2209, allocations: 39.66 kB / 404.8 MB, free: 42.8 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.393e-05/0.2209, allocations: 15.42 kB / 404.8 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.0001569/0.2211, allocations: 161.4 kB / 405 MB, free: 42.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.226e-05/0.2211, allocations: 29.64 kB / 405 MB, free: 42.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.906e-05/0.2212, allocations: 30.72 kB / 405 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.2212, allocations: 3.938 kB / 405 MB, free: 42.6 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.2212, allocations: 4 kB / 405 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.2212, allocations: 3.984 kB / 405 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001734/0.2214, allocations: 282.4 kB / 405.3 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2214, allocations: 0 / 405.3 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.156e-05/0.2214, allocations: 8.375 kB / 405.3 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.2214, allocations: 1.062 kB / 405.3 MB, free: 42.3 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.117e-05/0.2215, allocations: 31.61 kB / 405.4 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.2215, allocations: 2.156 kB / 405.4 MB, free: 42.28 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.2215, allocations: 3.984 kB / 405.4 MB, free: 42.27 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009876/0.2225, allocations: 1.502 MB / 406.9 MB, free: 41.04 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.2226, allocations: 117.6 kB / 407 MB, free: 40.92 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.545e-05/0.2227, allocations: 30.52 kB / 407 MB, free: 40.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.2229, allocations: 36.11 kB / 407.1 MB, free: 40.88 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001805/0.2231, allocations: 91.11 kB / 407.1 MB, free: 40.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.692e-05/0.2232, allocations: 44.98 kB / 407.2 MB, free: 40.8 MB / 318.1 MB Notification: Performance of sorting global known variables: time 3.937e-05/0.2232, allocations: 95.33 kB / 407.3 MB, free: 40.72 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2232, allocations: 0 / 407.3 MB, free: 40.72 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003959/0.2236, allocations: 74.64 kB / 407.4 MB, free: 40.71 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.000124/0.2237, allocations: 133.4 kB / 407.5 MB, free: 40.6 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004901/0.2242, allocations: 318 kB / 407.8 MB, free: 40.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2242, allocations: 5.125 kB / 407.8 MB, free: 40.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004763/0.2247, allocations: 0.727 MB / 408.5 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.000302/0.225, allocations: 54.84 kB / 408.6 MB, free: 39.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000963/0.226, allocations: 0.6546 MB / 409.2 MB, free: 39.38 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001206/0.2261, allocations: 0.7228 MB / 410 MB, free: 38.66 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001202/0.2263, allocations: 44.56 kB / 410 MB, free: 38.64 MB / 318.1 MB Notification: Performance of SimCode: time 3.31e-07/0.2263, allocations: 0 / 410 MB, free: 38.64 MB / 318.1 MB Notification: Performance of Templates: time 0.003315/0.2296, allocations: 2.59 MB / 412.6 MB, free: 36.07 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","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches