Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HanserModelica_HanserModelica.Magnetic.TestTransformer.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/Modelica 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/HanserModelica 2.0.0-master/package.mo", uses=false) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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 Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 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) Running command: translateModel(HanserModelica.Magnetic.TestTransformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Magnetic.TestTransformer") translateModel(HanserModelica.Magnetic.TestTransformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1600,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Magnetic.TestTransformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 110.4 kB / 16.41 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.392/1.392, allocations: 222.9 MB / 240.1 MB, free: 4.562 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001944/0.001944, allocations: 188.4 kB / 290.4 MB, free: 2.277 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03593/0.03593, allocations: 8.789 MB / 349.3 MB, free: 4.641 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 87.81 kB / 464.6 MB, free: 13.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1129, allocations: 51.56 MB / 0.504 GB, free: 9.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.005711/0.1186, allocations: 3.822 MB / 0.5078 GB, free: 5.707 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.1207, allocations: 0.9114 MB / 0.5087 GB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005982/0.1213, allocations: 15.94 kB / 0.5087 GB, free: 4.773 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.1218, allocations: 83.16 kB / 0.5088 GB, free: 4.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008019/0.1226, allocations: 154.6 kB / 0.5089 GB, free: 4.539 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005598/0.1232, allocations: 175.7 kB / 0.5091 GB, free: 4.367 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009563/0.1242, allocations: 0.6463 MB / 0.5097 GB, free: 3.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004739/0.1247, allocations: 280.9 kB / 0.51 GB, free: 3.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004587/0.1251, allocations: 247.1 kB / 0.5102 GB, free: 3.195 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005453/0.1257, allocations: 278.8 kB / 0.5105 GB, free: 2.922 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001566/0.1259, allocations: 68 kB / 0.5105 GB, free: 2.855 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000183/0.126, allocations: 71.94 kB / 0.5106 GB, free: 2.785 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.1262, allocations: 139.5 kB / 0.5107 GB, free: 2.648 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003754/0.1266, allocations: 302.6 kB / 0.511 GB, free: 2.352 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007829/0.1274, allocations: 0.7281 MB / 0.5117 GB, free: 1.621 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.1274, allocations: 4 kB / 0.5117 GB, free: 1.617 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1274, allocations: 0 / 0.5117 GB, free: 1.617 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.658e-05/0.1274, allocations: 0 / 0.5117 GB, free: 1.617 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.00174/0.1292, allocations: 0.8266 MB / 0.5125 GB, free: 0.7383 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.481e-05/0.1292, allocations: 8.031 kB / 0.5126 GB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.1294, allocations: 60.28 kB / 0.5126 GB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005822/0.13, allocations: 379.4 kB / 0.513 GB, free: 268 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.863e-05/0.13, allocations: 37.69 kB / 0.513 GB, free: 232 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.347e-05/0.1301, allocations: 60.34 kB / 0.5131 GB, free: 172 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009694/0.1311, allocations: 0.5112 MB / 0.5136 GB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.352e-05/0.1311, allocations: 0 / 0.5136 GB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.751e-05/0.1312, allocations: 27.98 kB / 0.5136 GB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.212e-05/0.1312, allocations: 16 kB / 0.5136 GB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007625/0.1319, allocations: 383.8 kB / 0.514 GB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002624/0.1346, allocations: 1.883 MB / 0.5158 GB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006996/0.1353, allocations: 311.4 kB / 0.5161 GB, free: 12.91 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005198/0.1358, allocations: 232 kB / 0.5163 GB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.1359, allocations: 4.281 kB / 0.5163 GB, free: 12.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.532e-05/0.1359, allocations: 42.83 kB / 0.5164 GB, free: 12.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 2.144e-06/0.1359, allocations: 3.938 kB / 0.5164 GB, free: 12.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004788/0.1407, allocations: 1.735 MB / 0.5181 GB, free: 10.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.1408, allocations: 55.84 kB / 0.5181 GB, free: 10.75 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/0.1412, allocations: 295.3 kB / 0.5184 GB, free: 10.45 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.45e-05/0.1412, allocations: 41.7 kB / 0.5184 GB, free: 10.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001887/0.1414, allocations: 272.1 kB / 0.5187 GB, free: 10.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001346/0.1416, allocations: 157.7 kB / 0.5189 GB, free: 9.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001418/0.1417, allocations: 82.25 kB / 0.5189 GB, free: 9.891 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1418, allocations: 346.8 kB / 0.5193 GB, free: 9.543 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003564/0.1422, allocations: 153 kB / 0.5194 GB, free: 9.395 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004152/0.1426, allocations: 238.6 kB / 0.5196 GB, free: 9.125 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007927/0.1434, allocations: 417.1 kB / 0.52 GB, free: 8.688 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.1435, allocations: 0 / 0.52 GB, free: 8.688 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001153/0.1446, allocations: 0.5635 MB / 0.5206 GB, free: 8.109 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.1446, allocations: 8 kB / 0.5206 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.1447, allocations: 0 / 0.5206 GB, free: 8.102 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003012/0.145, allocations: 93.61 kB / 0.5207 GB, free: 8.004 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004722/0.1455, allocations: 111.9 kB / 0.5208 GB, free: 7.895 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003077/0.1485, allocations: 3.586 MB / 0.5243 GB, free: 4.031 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000323/0.1489, allocations: 19.98 kB / 0.5243 GB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/0.1489, allocations: 16 kB / 0.5243 GB, free: 3.996 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002813/0.1492, allocations: 193.7 kB / 0.5245 GB, free: 3.797 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.7e-05/0.1493, allocations: 35.53 kB / 0.5245 GB, free: 3.762 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.1494, allocations: 55.95 kB / 0.5246 GB, free: 3.707 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.1494, allocations: 7.938 kB / 0.5246 GB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.992e-05/0.1495, allocations: 11.98 kB / 0.5246 GB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.1495, allocations: 0 / 0.5246 GB, free: 3.688 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001833/0.1513, allocations: 1.128 MB / 0.5257 GB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.878e-06/0.1513, allocations: 0 / 0.5257 GB, free: 2.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003889/0.1517, allocations: 83.88 kB / 0.5258 GB, free: 2.414 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000243/0.152, allocations: 101.6 kB / 0.5259 GB, free: 2.309 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.152, allocations: 11.98 kB / 0.5259 GB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2425/0.3945, allocations: 3.575 MB / 0.5294 GB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/0.3946, allocations: 6.906 kB / 0.5294 GB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001387/0.396, allocations: 0.7698 MB / 0.5302 GB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.3962, allocations: 154 kB / 0.5303 GB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.552e-05/0.3962, allocations: 8.312 kB / 0.5303 GB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/0.3965, allocations: 25.62 kB / 0.5303 GB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.3966, allocations: 39.22 kB / 0.5304 GB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.3967, allocations: 13.16 kB / 0.5304 GB, free: 22.66 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002056/0.3969, allocations: 209.8 kB / 0.5306 GB, free: 22.58 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3969, allocations: 0.75 kB / 0.5306 GB, free: 22.58 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006503/0.3975, allocations: 121 kB / 0.5307 GB, free: 22.58 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (transformer.converter1.i,transformer.eddyCurrent.Phi) * Number of discrete variables: 1 (switch.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001432/0.3977, allocations: 109.9 kB / 0.5308 GB, free: 22.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.3989, allocations: 0.662 MB / 0.5315 GB, free: 22.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.3989, allocations: 0 / 0.5315 GB, free: 22.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006712/0.3996, allocations: 488 kB / 0.5319 GB, free: 22.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004146/0.4, allocations: 54.05 kB / 0.532 GB, free: 22.04 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001831/0.4018, allocations: 1.034 MB / 0.533 GB, free: 21.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000309/0.4022, allocations: 0.8393 MB / 0.5338 GB, free: 20.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001187/0.4023, allocations: 35.22 kB / 0.5338 GB, free: 20.91 MB / 366.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4023, allocations: 3.188 kB / 0.5338 GB, free: 20.91 MB / 366.1 MB Notification: Performance of Templates: time 0.01547/0.4178, allocations: 9.859 MB / 0.5435 GB, free: 19 MB / 366.1 MB make -j1 -f HanserModelica_HanserModelica.Magnetic.TestTransformer.makefile (rm -f HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; mkfifo HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe >> ../files/HanserModelica_HanserModelica.Magnetic.TestTransformer.sim & ./HanserModelica_HanserModelica.Magnetic.TestTransformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)