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.008881/0.00888, allocations: 102.7 kB / 15.73 MB, free: 6.035 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.505/1.505, allocations: 222.9 MB / 239.4 MB, free: 4.543 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.00174/0.00174, allocations: 180.5 kB / 289.7 MB, free: 2.258 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03394/0.03394, allocations: 8.794 MB / 348.6 MB, free: 4.602 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 79.88 kB / 463.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1264, allocations: 51.56 MB / 0.5034 GB, free: 9.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.004856/0.1313, allocations: 3.83 MB / 0.5071 GB, free: 5.645 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001571/0.1329, allocations: 0.9113 MB / 0.508 GB, free: 4.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000242/0.1331, allocations: 8 kB / 0.508 GB, free: 4.719 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002123/0.1334, allocations: 87.16 kB / 0.5081 GB, free: 4.633 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003846/0.1338, allocations: 158.6 kB / 0.5082 GB, free: 4.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003477/0.1341, allocations: 171.8 kB / 0.5084 GB, free: 4.309 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006024/0.1347, allocations: 0.6423 MB / 0.509 GB, free: 3.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003839/0.1351, allocations: 280.9 kB / 0.5093 GB, free: 3.383 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002832/0.1354, allocations: 251.1 kB / 0.5095 GB, free: 3.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003198/0.1358, allocations: 278.8 kB / 0.5098 GB, free: 2.863 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.362e-05/0.1358, allocations: 68 kB / 0.5099 GB, free: 2.797 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.725e-05/0.1359, allocations: 71.94 kB / 0.5099 GB, free: 2.727 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001249/0.1361, allocations: 139.6 kB / 0.5101 GB, free: 2.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002704/0.1363, allocations: 298.6 kB / 0.5104 GB, free: 2.297 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006643/0.137, allocations: 0.732 MB / 0.5111 GB, free: 1.562 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.171e-06/0.137, allocations: 0 / 0.5111 GB, free: 1.562 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.374e-06/0.137, allocations: 0 / 0.5111 GB, free: 1.562 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.648e-06/0.1371, allocations: 0 / 0.5111 GB, free: 1.562 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.001402/0.1385, allocations: 0.8344 MB / 0.5119 GB, free: 0.6758 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.1385, allocations: 8.031 kB / 0.5119 GB, free: 0.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001188/0.1386, allocations: 60.28 kB / 0.512 GB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005378/0.1392, allocations: 375.5 kB / 0.5123 GB, free: 208 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.972e-05/0.1392, allocations: 41.69 kB / 0.5124 GB, free: 168 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.541e-05/0.1393, allocations: 48.38 kB / 0.5124 GB, free: 120 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008831/0.1402, allocations: 0.5266 MB / 0.5129 GB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1402, allocations: 0 / 0.5129 GB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.369e-05/0.1403, allocations: 20 kB / 0.5129 GB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.1403, allocations: 16 kB / 0.5129 GB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007643/0.1411, allocations: 387.7 kB / 0.5133 GB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/0.1436, allocations: 1.883 MB / 0.5152 GB, free: 13.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006481/0.1443, allocations: 315.3 kB / 0.5155 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004881/0.1448, allocations: 229.3 kB / 0.5157 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.763e-05/0.1448, allocations: 4.281 kB / 0.5157 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.861e-05/0.1449, allocations: 38.84 kB / 0.5157 GB, free: 12.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.373e-06/0.1449, allocations: 7.938 kB / 0.5157 GB, free: 12.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004392/0.1493, allocations: 1.726 MB / 0.5174 GB, free: 10.76 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.707e-05/0.1493, allocations: 59.84 kB / 0.5175 GB, free: 10.69 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.1496, allocations: 295.3 kB / 0.5177 GB, free: 10.39 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.1497, allocations: 41.7 kB / 0.5178 GB, free: 10.35 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.1498, allocations: 264.2 kB / 0.518 GB, free: 10.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001131/0.15, allocations: 157.7 kB / 0.5182 GB, free: 9.926 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001313/0.1501, allocations: 82.25 kB / 0.5183 GB, free: 9.84 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001311/0.1503, allocations: 350.8 kB / 0.5186 GB, free: 9.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000351/0.1506, allocations: 157 kB / 0.5188 GB, free: 9.336 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003933/0.151, allocations: 242.5 kB / 0.519 GB, free: 9.062 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007339/0.1518, allocations: 409.1 kB / 0.5194 GB, free: 8.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.1518, allocations: 4 kB / 0.5194 GB, free: 8.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001068/0.1528, allocations: 0.5597 MB / 0.5199 GB, free: 8.055 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.679e-05/0.1529, allocations: 4 kB / 0.5199 GB, free: 8.051 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.574e-06/0.1529, allocations: 4 kB / 0.5199 GB, free: 8.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002795/0.1532, allocations: 97.55 kB / 0.52 GB, free: 7.945 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004592/0.1536, allocations: 107.9 kB / 0.5201 GB, free: 7.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002997/0.1566, allocations: 3.59 MB / 0.5236 GB, free: 3.973 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.1569, allocations: 23.98 kB / 0.5237 GB, free: 3.949 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.596e-05/0.157, allocations: 20 kB / 0.5237 GB, free: 3.93 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.0002324/0.1572, allocations: 193.6 kB / 0.5239 GB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.964e-05/0.1573, allocations: 39.53 kB / 0.5239 GB, free: 3.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.626e-05/0.1574, allocations: 47.73 kB / 0.5239 GB, free: 3.645 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.581e-06/0.1574, allocations: 8 kB / 0.5239 GB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.1574, allocations: 0 / 0.5239 GB, free: 3.637 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.1574, allocations: 3.984 kB / 0.524 GB, free: 3.633 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.1592, allocations: 1.125 MB / 0.5251 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1592, allocations: 0 / 0.5251 GB, free: 2.445 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004034/0.1597, allocations: 91.81 kB / 0.5251 GB, free: 2.355 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002535/0.1599, allocations: 97.64 kB / 0.5252 GB, free: 2.254 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.315e-05/0.16, allocations: 8 kB / 0.5252 GB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2402/0.4002, allocations: 3.594 MB / 0.5288 GB, free: 22.73 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4002, allocations: 0 / 0.5288 GB, free: 22.73 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001305/0.4015, allocations: 0.7738 MB / 0.5295 GB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001492/0.4017, allocations: 143 kB / 0.5296 GB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.282e-05/0.4017, allocations: 16.19 kB / 0.5297 GB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002755/0.402, allocations: 22.77 kB / 0.5297 GB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.4021, allocations: 34.08 kB / 0.5297 GB, free: 22.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.626e-05/0.4022, allocations: 15.88 kB / 0.5297 GB, free: 22.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002012/0.4024, allocations: 209.8 kB / 0.5299 GB, free: 22.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4024, allocations: 0 / 0.5299 GB, free: 22.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006626/0.4031, allocations: 120.5 kB / 0.53 GB, free: 22.41 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.0001237/0.4032, allocations: 106.8 kB / 0.5301 GB, free: 22.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001135/0.4043, allocations: 0.6684 MB / 0.5308 GB, free: 22.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4043, allocations: 0 / 0.5308 GB, free: 22.1 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006331/0.405, allocations: 492.5 kB / 0.5313 GB, free: 21.88 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000389/0.4054, allocations: 55.33 kB / 0.5313 GB, free: 21.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.4071, allocations: 0.9938 MB / 0.5323 GB, free: 21.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002555/0.4074, allocations: 0.8413 MB / 0.5331 GB, free: 20.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001589/0.4075, allocations: 40.36 kB / 0.5331 GB, free: 20.77 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.233e-05/0.4076, allocations: 33.02 kB / 0.5332 GB, free: 20.77 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4076, allocations: 6.062 kB / 0.5332 GB, free: 20.76 MB / 366.1 MB Notification: Performance of Templates: time 0.01154/0.4192, allocations: 4.864 MB / 0.5379 GB, free: 20.51 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)