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.001392/0.001392, allocations: 116.2 kB / 16.37 MB, free: 6.004 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.435/1.435, allocations: 222.9 MB / 240 MB, free: 4.512 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.001257/0.001257, allocations: 192.5 kB / 290.3 MB, free: 2.234 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03421/0.03421, allocations: 8.786 MB / 349.3 MB, free: 4.617 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 76.31 kB / 412.5 MB, free: 41.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09977/0.1015, allocations: 51.57 MB / 464.1 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.00514/0.1066, allocations: 3.815 MB / 467.9 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001763/0.1084, allocations: 0.927 MB / 468.8 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002508/0.1087, allocations: 8 kB / 468.8 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002385/0.109, allocations: 87.09 kB / 468.9 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003843/0.1094, allocations: 158.6 kB / 469.1 MB, free: 8.527 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003435/0.1097, allocations: 167.8 kB / 469.2 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005905/0.1103, allocations: 0.6423 MB / 469.9 MB, free: 7.719 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003982/0.1107, allocations: 280.9 kB / 470.2 MB, free: 7.434 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002732/0.111, allocations: 243.2 kB / 470.4 MB, free: 7.195 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003275/0.1113, allocations: 290.7 kB / 470.7 MB, free: 6.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.283e-05/0.1114, allocations: 68 kB / 470.7 MB, free: 6.844 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.419e-05/0.1115, allocations: 68 kB / 470.8 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001131/0.1117, allocations: 139.5 kB / 470.9 MB, free: 6.641 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002817/0.1119, allocations: 294.7 kB / 471.2 MB, free: 6.352 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006755/0.1126, allocations: 0.732 MB / 472 MB, free: 5.617 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1126, allocations: 0 / 472 MB, free: 5.617 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.968e-06/0.1127, allocations: 0 / 472 MB, free: 5.617 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.1127, allocations: 3.938 kB / 472 MB, free: 5.613 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.001421/0.1141, allocations: 0.8344 MB / 472.8 MB, free: 4.727 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.1141, allocations: 8.031 kB / 472.8 MB, free: 4.719 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001042/0.1143, allocations: 64.28 kB / 472.9 MB, free: 4.656 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005622/0.1148, allocations: 371.5 kB / 473.2 MB, free: 4.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.1149, allocations: 41.69 kB / 473.3 MB, free: 4.219 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.378e-05/0.115, allocations: 48.38 kB / 473.3 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008756/0.1158, allocations: 0.5189 MB / 473.8 MB, free: 3.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.1159, allocations: 4 kB / 473.9 MB, free: 3.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.207e-05/0.1159, allocations: 20 kB / 473.9 MB, free: 3.613 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.1159, allocations: 12 kB / 473.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007436/0.1167, allocations: 383.8 kB / 474.3 MB, free: 3.227 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002654/0.1193, allocations: 1.89 MB / 476.1 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000701/0.1201, allocations: 323.3 kB / 476.5 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004856/0.1206, allocations: 233.2 kB / 476.7 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.1206, allocations: 4.281 kB / 476.7 MB, free: 0.6641 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.1206, allocations: 38.78 kB / 476.7 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.774e-06/0.1206, allocations: 0 / 476.7 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004561/0.1252, allocations: 1.724 MB / 478.5 MB, free: 14.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.887e-05/0.1253, allocations: 55.84 kB / 478.5 MB, free: 14.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003603/0.1256, allocations: 299.3 kB / 478.8 MB, free: 14.45 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.706e-05/0.1257, allocations: 33.7 kB / 478.8 MB, free: 14.41 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002117/0.1259, allocations: 268.2 kB / 479.1 MB, free: 14.15 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000144/0.1261, allocations: 165.5 kB / 479.3 MB, free: 13.99 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.1262, allocations: 90.16 kB / 479.3 MB, free: 13.89 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001847/0.1264, allocations: 346.7 kB / 479.7 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004131/0.1268, allocations: 157 kB / 479.8 MB, free: 13.39 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.1272, allocations: 238.6 kB / 480.1 MB, free: 13.13 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008143/0.1281, allocations: 409.1 kB / 480.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1281, allocations: 0 / 480.5 MB, free: 12.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001072/0.1292, allocations: 0.5598 MB / 481 MB, free: 12.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.382e-05/0.1292, allocations: 8.031 kB / 481 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.1292, allocations: 4 kB / 481 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003475/0.1296, allocations: 97.61 kB / 481.1 MB, free: 12.01 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004689/0.13, allocations: 99.88 kB / 481.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00347/0.1335, allocations: 3.605 MB / 484.8 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.1339, allocations: 19.98 kB / 484.9 MB, free: 8.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.234e-05/0.1339, allocations: 16 kB / 484.9 MB, free: 7.988 MB / 318.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.000294/0.1342, allocations: 181.7 kB / 485.1 MB, free: 7.801 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.089e-05/0.1343, allocations: 35.62 kB / 485.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.697e-05/0.1344, allocations: 55.8 kB / 485.1 MB, free: 7.711 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.108e-06/0.1344, allocations: 4 kB / 485.1 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.13e-05/0.1344, allocations: 192 / 485.1 MB, free: 7.707 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.1344, allocations: 7.984 kB / 485.2 MB, free: 7.699 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/0.1362, allocations: 1.132 MB / 486.3 MB, free: 6.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.1362, allocations: 4 kB / 486.3 MB, free: 6.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003602/0.1366, allocations: 79.88 kB / 486.4 MB, free: 6.422 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002236/0.1368, allocations: 97.55 kB / 486.5 MB, free: 6.32 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.026e-05/0.1369, allocations: 20.02 kB / 486.5 MB, free: 6.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/0.1402, allocations: 3.581 MB / 490.1 MB, free: 2.434 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1402, allocations: 3.984 kB / 490.1 MB, free: 2.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001315/0.1415, allocations: 0.7762 MB / 490.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.1417, allocations: 144.6 kB / 491 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.9e-05/0.1418, allocations: 12 kB / 491 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002787/0.142, allocations: 27.98 kB / 491 MB, free: 1.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.572e-05/0.1421, allocations: 39.94 kB / 491.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.975e-05/0.1422, allocations: 12 kB / 491.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001973/0.1424, allocations: 209.9 kB / 491.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.196e-06/0.1424, allocations: 0 / 491.3 MB, free: 1.176 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006078/0.143, allocations: 123.9 kB / 491.4 MB, free: 1.055 MB / 318.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.0001712/0.1432, allocations: 111.2 kB / 491.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001273/0.1445, allocations: 0.6627 MB / 492.2 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.1445, allocations: 4 kB / 492.2 MB, free: 252 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007/0.1452, allocations: 481.1 kB / 492.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.1456, allocations: 59.11 kB / 492.7 MB, free: 15.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/0.1474, allocations: 1.009 MB / 493.7 MB, free: 14.66 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005676/0.148, allocations: 0.8395 MB / 494.6 MB, free: 13.8 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001725/0.1482, allocations: 43.27 kB / 494.6 MB, free: 13.75 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.479e-05/0.1483, allocations: 27.44 kB / 494.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of SimCode: time 4.4e-07/0.1483, allocations: 0 / 494.6 MB, free: 13.72 MB / 334.1 MB Notification: Performance of Templates: time 0.008983/0.1573, allocations: 4.76 MB / 499.4 MB, free: 9.008 MB / 334.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 -s cvode -lv LOG_STATS > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)