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.001412/0.001412, allocations: 92.7 kB / 15.7 MB, free: 456 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001703/0.001703, allocations: 173.9 kB / 16.58 MB, free: 6.402 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.604/1.604, allocations: 205.4 MB / 222.8 MB, free: 5.871 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerGrids 1.0.3/package.mo): time 0.06039/0.06039, allocations: 14.15 MB / 285.2 MB, free: 7.379 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.0005805/0.0005807, allocations: 15.98 kB / 348.1 MB, free: 18.6 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.125/0.1256, allocations: 51.12 MB / 399.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerGrids.Electrical.Test.TestTapChangerLogicMax): time 0.001784/0.1274, allocations: 1.137 MB / 400.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00109/0.1285, allocations: 0.5313 MB / 400.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.052e-05/0.1286, allocations: 0 / 400.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.77e-05/0.1287, allocations: 0 / 400.9 MB, free: 13.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001007/0.1288, allocations: 7.875 kB / 400.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002465/0.129, allocations: 67.84 kB / 401 MB, free: 13.68 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002075/0.1292, allocations: 159.7 kB / 401.1 MB, free: 13.53 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.079e-05/0.1293, allocations: 7.984 kB / 401.1 MB, free: 13.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001446/0.1295, allocations: 91.8 kB / 401.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001411/0.1296, allocations: 91.72 kB / 401.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.779e-05/0.1297, allocations: 16 kB / 401.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.73e-05/0.1297, allocations: 12 kB / 401.3 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.495e-05/0.1298, allocations: 55.84 kB / 401.4 MB, free: 13.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.571e-05/0.1299, allocations: 53.7 kB / 401.5 MB, free: 13.2 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001585/0.1301, allocations: 88.09 kB / 401.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.1301, allocations: 0 / 401.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1301, allocations: 0 / 401.5 MB, free: 13.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.44e-06/0.1301, allocations: 0 / 401.5 MB, free: 13.11 MB / 302.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.001025/0.1311, allocations: 494.8 kB / 402 MB, free: 12.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.1312, allocations: 19.95 kB / 402 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001303/0.1313, allocations: 19.89 kB / 402.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001959/0.1315, allocations: 178.9 kB / 402.2 MB, free: 12.33 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.787e-05/0.1316, allocations: 7.984 kB / 402.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.705e-05/0.1316, allocations: 31.97 kB / 402.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006219/0.1323, allocations: 377.1 kB / 402.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.1323, allocations: 0 / 402.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.37e-05/0.1323, allocations: 11.92 kB / 402.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.1324, allocations: 0 / 402.7 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.1325, allocations: 67.94 kB / 402.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004681/0.133, allocations: 368.6 kB / 403.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002682/0.1333, allocations: 170.8 kB / 403.2 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.1335, allocations: 172.7 kB / 403.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.647e-05/0.1335, allocations: 3.984 kB / 403.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000849/0.1344, allocations: 0.5229 MB / 403.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.593e-06/0.1344, allocations: 3.938 kB / 403.9 MB, free: 10.54 MB / 302.1 MB Notification: Performance of matching and sorting (n=30): time 0.0009424/0.1354, allocations: 0.6419 MB / 404.6 MB, free: 9.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.1354, allocations: 59.41 kB / 404.6 MB, free: 9.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.1355, allocations: 137.2 kB / 404.8 MB, free: 9.676 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.1356, allocations: 45.69 kB / 404.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.127e-05/0.1356, allocations: 84.7 kB / 404.9 MB, free: 9.539 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.065e-05/0.1357, allocations: 79.2 kB / 405 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.408e-05/0.1357, allocations: 4 kB / 405 MB, free: 9.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1359, allocations: 334.8 kB / 405.3 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.136, allocations: 84.3 kB / 405.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002428/0.1363, allocations: 159.3 kB / 405.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/0.1364, allocations: 48.42 kB / 405.6 MB, free: 8.809 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.1364, allocations: 0 / 405.6 MB, free: 8.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003813/0.1368, allocations: 245.3 kB / 405.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.1368, allocations: 4 kB / 405.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.1368, allocations: 0 / 405.8 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.1369, allocations: 4 kB / 405.9 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.892e-05/0.137, allocations: 19.88 kB / 405.9 MB, free: 8.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.137, allocations: 7.984 kB / 405.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002125/0.1372, allocations: 48 kB / 405.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.255e-05/0.1372, allocations: 12 kB / 405.9 MB, free: 8.469 MB / 302.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 ($whenCondition19,$whenCondition20,$whenCondition21,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17,$whenCondition18,$PRE.state,state,$PRE.locked,$PRE.tap,tap,lookingToIncreaseTap,lookingToDecreaseTap,$PRE.tTapMoved,tTapMoved,$PRE.valueUnderStop,$PRE.valueAboveMax,$PRE.tValueAboveMaxWhileRunning,tValueAboveMaxWhileRunning,$PRE.running,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002217/0.1375, allocations: 165.3 kB / 406.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.1376, allocations: 27.8 kB / 406.1 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.223e-05/0.1377, allocations: 37.66 kB / 406.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.1377, allocations: 0 / 406.2 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.854e-06/0.1377, allocations: 4 kB / 406.2 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1377, allocations: 7.922 kB / 406.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.138, allocations: 273.4 kB / 406.4 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.138, allocations: 0 / 406.4 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.451e-05/0.138, allocations: 11.94 kB / 406.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.138, allocations: 0 / 406.5 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.499e-05/0.1381, allocations: 27.95 kB / 406.5 MB, free: 7.871 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.038e-06/0.1381, allocations: 4 kB / 406.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1381, allocations: 0 / 406.5 MB, free: 7.867 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001285/0.1394, allocations: 1.268 MB / 407.8 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000167/0.1395, allocations: 120.8 kB / 407.9 MB, free: 6.402 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.938e-05/0.1396, allocations: 23.97 kB / 407.9 MB, free: 6.379 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002079/0.1398, allocations: 51.94 kB / 407.9 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.1401, allocations: 107.7 kB / 408 MB, free: 6.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.201e-05/0.1401, allocations: 43.95 kB / 408.1 MB, free: 6.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.701e-05/0.1402, allocations: 99.22 kB / 408.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1402, allocations: 0 / 408.2 MB, free: 6.082 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004035/0.1406, allocations: 75.98 kB / 408.3 MB, free: 6.008 MB / 302.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001818/0.1408, allocations: 138.1 kB / 408.4 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005104/0.1413, allocations: 301 kB / 408.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1413, allocations: 0 / 408.7 MB, free: 5.574 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006858/0.142, allocations: 0.7225 MB / 409.4 MB, free: 4.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003212/0.1423, allocations: 47.94 kB / 409.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.1435, allocations: 0.6222 MB / 410.1 MB, free: 4.145 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000336/0.1438, allocations: 0.7258 MB / 410.8 MB, free: 3.395 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.144, allocations: 29.94 kB / 410.8 MB, free: 3.367 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001383/0.1441, allocations: 39.41 kB / 410.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1441, allocations: 0 / 410.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of Templates: time 0.007318/0.1514, allocations: 3.114 MB / 414 MB, free: 232 kB / 302.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","../files/PowerGrids_symb_jac_PowerGrids.Electrical.Test.TestTapChangerLogicMax.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches