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.001059/0.001059, allocations: 104.3 kB / 16.36 MB, free: 6.289 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.305/1.305, allocations: 222.9 MB / 240 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.001387/0.001387, allocations: 196.4 kB / 290.3 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.03544/0.03544, allocations: 8.802 MB / 349.3 MB, free: 4.645 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 80.12 kB / 412.5 MB, free: 41.71 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08054/0.08203, allocations: 51.56 MB / 464.1 MB, free: 13.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.004876/0.08694, allocations: 3.819 MB / 467.9 MB, free: 9.762 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.08838, allocations: 0.927 MB / 468.8 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001952/0.08859, allocations: 8 kB / 468.8 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002124/0.08882, allocations: 83.16 kB / 468.9 MB, free: 8.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003252/0.08915, allocations: 154.6 kB / 469.1 MB, free: 8.586 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000309/0.08947, allocations: 167.8 kB / 469.2 MB, free: 8.422 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005762/0.09005, allocations: 0.6463 MB / 469.9 MB, free: 7.773 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003983/0.09046, allocations: 284.8 kB / 470.2 MB, free: 7.484 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002597/0.09073, allocations: 247.2 kB / 470.4 MB, free: 7.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003084/0.09104, allocations: 282.8 kB / 470.7 MB, free: 6.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.897e-05/0.09113, allocations: 64 kB / 470.7 MB, free: 6.902 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.112e-05/0.09122, allocations: 68 kB / 470.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.09134, allocations: 131.6 kB / 470.9 MB, free: 6.707 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002452/0.09159, allocations: 314.5 kB / 471.2 MB, free: 6.398 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005774/0.09217, allocations: 0.7242 MB / 472 MB, free: 5.672 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.09218, allocations: 4 kB / 472 MB, free: 5.668 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.09219, allocations: 4 kB / 472 MB, free: 5.664 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.116e-06/0.0922, allocations: 0 / 472 MB, free: 5.664 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.00129/0.0935, allocations: 0.8266 MB / 472.8 MB, free: 4.785 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.09354, allocations: 8.031 kB / 472.8 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.567e-05/0.09364, allocations: 56.28 kB / 472.9 MB, free: 4.723 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004895/0.09414, allocations: 375.5 kB / 473.2 MB, free: 4.32 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.389e-05/0.09418, allocations: 37.69 kB / 473.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.106e-05/0.09426, allocations: 56.38 kB / 473.3 MB, free: 4.23 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008403/0.09511, allocations: 0.5188 MB / 473.8 MB, free: 3.695 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.09513, allocations: 3.938 kB / 473.8 MB, free: 3.691 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.606e-05/0.09519, allocations: 24 kB / 473.9 MB, free: 3.668 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.0952, allocations: 12 kB / 473.9 MB, free: 3.656 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007699/0.09598, allocations: 391.8 kB / 474.3 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.09846, allocations: 1.879 MB / 476.1 MB, free: 1.281 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006592/0.09913, allocations: 319.3 kB / 476.4 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.09963, allocations: 238.4 kB / 476.7 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.09967, allocations: 8.281 kB / 476.7 MB, free: 0.7188 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.144e-05/0.0997, allocations: 38.78 kB / 476.7 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.683e-06/0.0997, allocations: 0 / 476.7 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004332/0.104, allocations: 1.728 MB / 478.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.1041, allocations: 59.84 kB / 478.5 MB, free: 14.8 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002901/0.1044, allocations: 295.3 kB / 478.8 MB, free: 14.51 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.282e-05/0.1044, allocations: 33.7 kB / 478.8 MB, free: 14.47 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001464/0.1046, allocations: 268.2 kB / 479.1 MB, free: 14.2 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001011/0.1047, allocations: 161.6 kB / 479.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000136/0.1048, allocations: 90.16 kB / 479.3 MB, free: 13.95 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.1049, allocations: 346.8 kB / 479.7 MB, free: 13.6 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003428/0.1053, allocations: 153 kB / 479.8 MB, free: 13.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003688/0.1057, allocations: 234.6 kB / 480.1 MB, free: 13.19 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007036/0.1064, allocations: 417.1 kB / 480.5 MB, free: 12.75 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1064, allocations: 0 / 480.5 MB, free: 12.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001021/0.1074, allocations: 0.5559 MB / 481 MB, free: 12.18 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.1075, allocations: 4 kB / 481 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/0.1075, allocations: 4 kB / 481 MB, free: 12.18 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002776/0.1077, allocations: 105.6 kB / 481.1 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000452/0.1082, allocations: 107.8 kB / 481.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002739/0.111, allocations: 3.593 MB / 484.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002721/0.1112, allocations: 16.27 kB / 484.8 MB, free: 8.066 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.417e-05/0.1113, allocations: 20 kB / 484.9 MB, free: 8.047 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.0002215/0.1115, allocations: 197.7 kB / 485.1 MB, free: 7.844 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.774e-05/0.1116, allocations: 39.61 kB / 485.1 MB, free: 7.805 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.302e-05/0.1117, allocations: 43.75 kB / 485.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.27e-06/0.1117, allocations: 7.984 kB / 485.1 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.1117, allocations: 0 / 485.1 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1117, allocations: 0 / 485.1 MB, free: 7.754 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.1134, allocations: 1.132 MB / 486.3 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.966e-06/0.1134, allocations: 0 / 486.3 MB, free: 6.559 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.1138, allocations: 91.91 kB / 486.4 MB, free: 6.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002196/0.114, allocations: 89.61 kB / 486.5 MB, free: 6.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/0.114, allocations: 15.98 kB / 486.5 MB, free: 6.359 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002625/0.1167, allocations: 3.589 MB / 490.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.1167, allocations: 0 / 490.1 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.118, allocations: 0.7801 MB / 490.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001553/0.1182, allocations: 140.6 kB / 491 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.01e-05/0.1182, allocations: 12 kB / 491 MB, free: 1.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002877/0.1185, allocations: 31.91 kB / 491 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.813e-05/0.1186, allocations: 31.95 kB / 491.1 MB, free: 1.449 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.715e-05/0.1186, allocations: 12 kB / 491.1 MB, free: 1.438 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001985/0.1189, allocations: 218 kB / 491.3 MB, free: 1.227 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1189, allocations: 3.938 kB / 491.3 MB, free: 1.223 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006172/0.1195, allocations: 120 kB / 491.4 MB, free: 1.105 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.0001224/0.1196, allocations: 103.2 kB / 491.5 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001278/0.1209, allocations: 0.6626 MB / 492.2 MB, free: 316 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1209, allocations: 3.938 kB / 492.2 MB, free: 312 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007408/0.1217, allocations: 489.6 kB / 492.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.1221, allocations: 51.17 kB / 492.7 MB, free: 15.75 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001819/0.1239, allocations: 1.006 MB / 493.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003699/0.1243, allocations: 0.8395 MB / 494.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001754/0.1245, allocations: 39.27 kB / 494.6 MB, free: 13.81 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.771e-05/0.1246, allocations: 35.42 kB / 494.6 MB, free: 13.78 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1246, allocations: 8 kB / 494.6 MB, free: 13.77 MB / 334.1 MB Notification: Performance of Templates: time 0.009279/0.1338, allocations: 4.749 MB / 499.4 MB, free: 9.066 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 gbode -lv LOG_STATS > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)