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.004067/0.004067, allocations: 98.17 kB / 15.73 MB, free: 6.012 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.272/1.272, allocations: 222.9 MB / 239.4 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.001236/0.001236, allocations: 184.5 kB / 289.7 MB, free: 2.23 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.0332/0.0332, allocations: 8.787 MB / 348.6 MB, free: 4.621 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002164/0.002164, allocations: 79.88 kB / 463.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.0933, allocations: 51.57 MB / 0.5034 GB, free: 9.523 MB / 350.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.004898/0.09824, allocations: 3.826 MB / 0.5071 GB, free: 5.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001596/0.09986, allocations: 0.9153 MB / 0.508 GB, free: 4.758 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003196/0.1002, allocations: 8 kB / 0.508 GB, free: 4.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002534/0.1005, allocations: 83.16 kB / 0.5081 GB, free: 4.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004689/0.1009, allocations: 154.6 kB / 0.5082 GB, free: 4.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000404/0.1014, allocations: 175.7 kB / 0.5084 GB, free: 4.344 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006776/0.1021, allocations: 0.6423 MB / 0.509 GB, free: 3.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003957/0.1025, allocations: 284.8 kB / 0.5093 GB, free: 3.414 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004299/0.1029, allocations: 255.1 kB / 0.5095 GB, free: 3.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000514/0.1034, allocations: 278.8 kB / 0.5098 GB, free: 2.891 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.1036, allocations: 68 kB / 0.5099 GB, free: 2.824 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001708/0.1037, allocations: 68 kB / 0.5099 GB, free: 2.758 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001393/0.1039, allocations: 135.5 kB / 0.5101 GB, free: 2.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003466/0.1042, allocations: 298.6 kB / 0.5104 GB, free: 2.332 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007799/0.105, allocations: 0.7395 MB / 0.5111 GB, free: 1.59 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1051, allocations: 0 / 0.5111 GB, free: 1.59 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1051, allocations: 0 / 0.5111 GB, free: 1.59 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.075e-06/0.1051, allocations: 0 / 0.5111 GB, free: 1.59 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.001435/0.1065, allocations: 0.8455 MB / 0.5119 GB, free: 0.6914 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.1066, allocations: 12.03 kB / 0.5119 GB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001137/0.1067, allocations: 60.56 kB / 0.512 GB, free: 0.6211 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005308/0.1072, allocations: 367.8 kB / 0.5123 GB, free: 228 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.072e-05/0.1073, allocations: 45.62 kB / 0.5124 GB, free: 184 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.085e-05/0.1073, allocations: 48.38 kB / 0.5124 GB, free: 136 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008606/0.1082, allocations: 0.5228 MB / 0.5129 GB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.376e-05/0.1082, allocations: 0 / 0.5129 GB, free: 15.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.129e-05/0.1083, allocations: 20 kB / 0.5129 GB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.195e-05/0.1083, allocations: 12 kB / 0.513 GB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007497/0.1091, allocations: 391.8 kB / 0.5133 GB, free: 15.17 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002555/0.1116, allocations: 1.891 MB / 0.5152 GB, free: 13.17 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006299/0.1123, allocations: 319.4 kB / 0.5155 GB, free: 12.85 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004887/0.1128, allocations: 229.3 kB / 0.5157 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.1128, allocations: 288 / 0.5157 GB, free: 12.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.648e-05/0.1128, allocations: 38.84 kB / 0.5157 GB, free: 12.58 MB / 366.1 MB Notification: Performance of pre-optimization done (n=33): time 1.152e-06/0.1128, allocations: 0 / 0.5157 GB, free: 12.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=47): time 0.004301/0.1171, allocations: 1.73 MB / 0.5174 GB, free: 10.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.842e-05/0.1172, allocations: 59.84 kB / 0.5175 GB, free: 10.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002947/0.1175, allocations: 303.2 kB / 0.5178 GB, free: 10.4 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.1175, allocations: 37.7 kB / 0.5178 GB, free: 10.36 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.1177, allocations: 272.9 kB / 0.5181 GB, free: 10.08 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.1178, allocations: 166.5 kB / 0.5182 GB, free: 9.918 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.1179, allocations: 86.25 kB / 0.5183 GB, free: 9.828 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.1181, allocations: 350.8 kB / 0.5186 GB, free: 9.477 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.1184, allocations: 153 kB / 0.5188 GB, free: 9.328 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003849/0.1188, allocations: 238.6 kB / 0.519 GB, free: 9.059 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007138/0.1195, allocations: 413.1 kB / 0.5194 GB, free: 8.625 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1195, allocations: 3.938 kB / 0.5194 GB, free: 8.621 MB / 366.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001022/0.1206, allocations: 0.5561 MB / 0.52 GB, free: 8.051 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.443e-05/0.1206, allocations: 12 kB / 0.52 GB, free: 8.039 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.1206, allocations: 4 kB / 0.52 GB, free: 8.035 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.1209, allocations: 97.55 kB / 0.5201 GB, free: 7.934 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004386/0.1213, allocations: 103.9 kB / 0.5202 GB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/0.124, allocations: 3.598 MB / 0.5237 GB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.1242, allocations: 20.02 kB / 0.5237 GB, free: 3.938 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.178e-05/0.1243, allocations: 24 kB / 0.5237 GB, free: 3.914 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.0001967/0.1245, allocations: 185.6 kB / 0.5239 GB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.403e-05/0.1245, allocations: 39.77 kB / 0.5239 GB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.727e-05/0.1247, allocations: 55.8 kB / 0.524 GB, free: 3.629 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.641e-06/0.1247, allocations: 4 kB / 0.524 GB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.1247, allocations: 0 / 0.524 GB, free: 3.625 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.1247, allocations: 3.984 kB / 0.524 GB, free: 3.621 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001614/0.1263, allocations: 1.125 MB / 0.5251 GB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.614e-06/0.1263, allocations: 0 / 0.5251 GB, free: 2.434 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003643/0.1267, allocations: 83.89 kB / 0.5252 GB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002308/0.1269, allocations: 101.5 kB / 0.5253 GB, free: 2.246 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.127, allocations: 12.03 kB / 0.5253 GB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1815/0.3085, allocations: 3.591 MB / 0.5288 GB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.3085, allocations: 3 kB / 0.5288 GB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00124/0.3098, allocations: 0.7708 MB / 0.5295 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000127/0.3099, allocations: 151.7 kB / 0.5297 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.354e-05/0.31, allocations: 13.44 kB / 0.5297 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002705/0.3103, allocations: 25.7 kB / 0.5297 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.284e-05/0.3103, allocations: 33.39 kB / 0.5298 GB, free: 22.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.499e-05/0.3104, allocations: 13.17 kB / 0.5298 GB, free: 22.55 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001706/0.3106, allocations: 213.6 kB / 0.53 GB, free: 22.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3106, allocations: 0 / 0.53 GB, free: 22.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005771/0.3111, allocations: 118.8 kB / 0.5301 GB, free: 22.47 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 9.471e-05/0.3112, allocations: 109.3 kB / 0.5302 GB, free: 22.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009977/0.3122, allocations: 0.657 MB / 0.5308 GB, free: 22.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.155e-06/0.3123, allocations: 0 / 0.5308 GB, free: 22.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000587/0.3129, allocations: 491.4 kB / 0.5313 GB, free: 21.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003763/0.3132, allocations: 55.7 kB / 0.5314 GB, free: 21.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001577/0.3148, allocations: 1.02 MB / 0.5324 GB, free: 21.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/0.3151, allocations: 0.8421 MB / 0.5332 GB, free: 20.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001638/0.3153, allocations: 39.81 kB / 0.5332 GB, free: 20.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.916e-05/0.3154, allocations: 32.47 kB / 0.5332 GB, free: 20.8 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3154, allocations: 3.594 kB / 0.5332 GB, free: 20.8 MB / 366.1 MB Notification: Performance of Templates: time 0.009864/0.3253, allocations: 4.871 MB / 0.538 GB, free: 20.54 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)