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.001624/0.001624, allocations: 110.4 kB / 16.41 MB, free: 6.516 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.001768/0.001768, allocations: 189.5 kB / 17.34 MB, free: 5.734 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.59/1.59, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06211/0.06211, allocations: 14.16 MB / 284.7 MB, free: 13.86 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.001399/0.001399, allocations: 63.16 kB / 398.6 MB, free: 43.07 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1048, allocations: 50.14 MB / 448.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.002889/0.1077, allocations: 1.443 MB / 450.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001015/0.1088, allocations: 0.527 MB / 450.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.754e-05/0.1088, allocations: 0 / 450.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.079e-05/0.1089, allocations: 3.938 kB / 450.8 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.601e-05/0.109, allocations: 15.86 kB / 450.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002044/0.1092, allocations: 75.84 kB / 450.8 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001884/0.1094, allocations: 187.6 kB / 451 MB, free: 9.906 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.459e-05/0.1094, allocations: 4 kB / 451 MB, free: 9.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001118/0.1096, allocations: 103.7 kB / 451.1 MB, free: 9.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001193/0.1097, allocations: 87.73 kB / 451.2 MB, free: 9.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.077e-05/0.1097, allocations: 16 kB / 451.2 MB, free: 9.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.515e-05/0.1098, allocations: 12 kB / 451.2 MB, free: 9.688 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.762e-05/0.1098, allocations: 55.84 kB / 451.3 MB, free: 9.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.11, allocations: 75.78 kB / 451.4 MB, free: 9.559 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001849/0.1101, allocations: 131.6 kB / 451.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1102, allocations: 0 / 451.5 MB, free: 9.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1102, allocations: 4 kB / 451.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.992e-06/0.1102, allocations: 0 / 451.5 MB, free: 9.426 MB / 334.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.0009287/0.1111, allocations: 0.5536 MB / 452.1 MB, free: 8.824 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.1112, allocations: 8.031 kB / 452.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.374e-05/0.1113, allocations: 24.88 kB / 452.1 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001471/0.1114, allocations: 176.2 kB / 452.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.536e-05/0.1114, allocations: 20.36 kB / 452.3 MB, free: 8.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.746e-05/0.1115, allocations: 28.34 kB / 452.3 MB, free: 8.535 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005699/0.1121, allocations: 381.3 kB / 452.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.1121, allocations: 0 / 452.7 MB, free: 8.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.1122, allocations: 7.984 kB / 452.7 MB, free: 8.148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.1122, allocations: 7.938 kB / 452.7 MB, free: 8.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.1123, allocations: 67.88 kB / 452.8 MB, free: 8.074 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004292/0.1128, allocations: 372.6 kB / 453.1 MB, free: 7.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002822/0.1131, allocations: 178.5 kB / 453.3 MB, free: 7.477 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002472/0.1133, allocations: 161 kB / 453.5 MB, free: 7.316 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.157e-05/0.1133, allocations: 3.984 kB / 453.5 MB, free: 7.312 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007689/0.1141, allocations: 0.522 MB / 454 MB, free: 6.777 MB / 334.1 MB Notification: Performance of pre-optimization done (n=30): time 1.343e-06/0.1141, allocations: 0 / 454 MB, free: 6.777 MB / 334.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009739/0.1151, allocations: 0.6511 MB / 454.6 MB, free: 6.121 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.716e-05/0.1152, allocations: 59.39 kB / 454.7 MB, free: 6.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.1153, allocations: 125.8 kB / 454.8 MB, free: 5.918 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.1153, allocations: 49.69 kB / 454.9 MB, free: 5.863 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.903e-05/0.1154, allocations: 88.7 kB / 455 MB, free: 5.773 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.64e-05/0.1155, allocations: 75.56 kB / 455 MB, free: 5.699 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.565e-05/0.1156, allocations: 57.7 kB / 455.1 MB, free: 5.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1157, allocations: 330.8 kB / 455.4 MB, free: 5.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001452/0.1158, allocations: 84.3 kB / 455.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001968/0.116, allocations: 159.3 kB / 455.6 MB, free: 5.039 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003324/0.1164, allocations: 233.7 kB / 455.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1164, allocations: 0 / 455.9 MB, free: 4.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003415/0.1167, allocations: 237.3 kB / 456.1 MB, free: 4.555 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1168, allocations: 8 kB / 456.1 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.1168, allocations: 8.062 kB / 456.1 MB, free: 4.539 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.534e-05/0.1168, allocations: 4 kB / 456.1 MB, free: 4.535 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.837e-05/0.1169, allocations: 15.92 kB / 456.1 MB, free: 4.52 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/0.1169, allocations: 7.984 kB / 456.1 MB, free: 4.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002055/0.1171, allocations: 51.78 kB / 456.2 MB, free: 4.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.11e-05/0.1171, allocations: 8 kB / 456.2 MB, free: 4.453 MB / 334.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.0001924/0.1173, allocations: 161 kB / 456.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.236e-05/0.1174, allocations: 27.91 kB / 456.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.34e-05/0.1175, allocations: 37.55 kB / 456.4 MB, free: 4.223 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.1175, allocations: 4 kB / 456.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.1175, allocations: 0 / 456.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.699e-06/0.1175, allocations: 0 / 456.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002482/0.1178, allocations: 277.4 kB / 456.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.1178, allocations: 0 / 456.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.525e-05/0.1178, allocations: 19.97 kB / 456.7 MB, free: 3.879 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.426e-06/0.1178, allocations: 7.984 kB / 456.7 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.235e-05/0.1179, allocations: 23.95 kB / 456.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.1179, allocations: 0 / 456.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1179, allocations: 0 / 456.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001355/0.1193, allocations: 1.513 MB / 458.3 MB, free: 2.27 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001437/0.1194, allocations: 120.9 kB / 458.4 MB, free: 2.133 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.462e-05/0.1195, allocations: 23.91 kB / 458.4 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.1197, allocations: 43.94 kB / 458.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002005/0.1199, allocations: 79.84 kB / 458.5 MB, free: 1.988 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.183e-05/0.12, allocations: 47.95 kB / 458.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.794e-05/0.12, allocations: 95.27 kB / 458.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.12, allocations: 0 / 458.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003898/0.1204, allocations: 83.97 kB / 458.8 MB, free: 1.766 MB / 334.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.0001512/0.1206, allocations: 129.4 kB / 458.9 MB, free: 1.629 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004884/0.1211, allocations: 291.8 kB / 459.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1211, allocations: 0 / 459.2 MB, free: 1.344 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006064/0.1217, allocations: 0.7303 MB / 459.9 MB, free: 0.6133 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.122, allocations: 44.88 kB / 459.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001111/0.1231, allocations: 0.6117 MB / 460.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002992/0.1235, allocations: 0.7254 MB / 461.3 MB, free: 15.17 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.1236, allocations: 25.95 kB / 461.3 MB, free: 15.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.1237, allocations: 47.39 kB / 461.3 MB, free: 15.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1237, allocations: 7.938 kB / 461.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of Templates: time 0.007717/0.1314, allocations: 3.681 MB / 465 MB, free: 11.42 MB / 350.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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerGrids/PowerGrids.Electrical.Test.TestTapChangerLogicMax_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches