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.0007116/0.0007117, allocations: 99.11 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.295/1.295, allocations: 223.3 MB / 240 MB, free: 5.516 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.0008995/0.0008995, allocations: 168.6 kB / 291.3 MB, free: 2.188 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03514/0.03514, allocations: 8.802 MB / 351.2 MB, free: 4.629 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003374/0.0003373, allocations: 14.38 kB / 414.5 MB, free: 42.74 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06547/0.06582, allocations: 52.56 MB / 467 MB, free: 13.16 MB / 302.1 MB Notification: Performance of NFInst.instantiate(HanserModelica.Magnetic.TestTransformer): time 0.003562/0.06942, allocations: 3.448 MB / 470.5 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001455/0.0709, allocations: 0.8998 MB / 471.4 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003001/0.07122, allocations: 8 kB / 471.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001891/0.07142, allocations: 63.47 kB / 471.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004058/0.07183, allocations: 127 kB / 471.6 MB, free: 8.582 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003304/0.07217, allocations: 143.9 kB / 471.7 MB, free: 8.441 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006357/0.07282, allocations: 0.6072 MB / 472.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003451/0.07318, allocations: 244 kB / 472.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002776/0.07346, allocations: 203.1 kB / 472.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002924/0.07376, allocations: 234.8 kB / 473 MB, free: 7.156 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.124e-05/0.07383, allocations: 32 kB / 473 MB, free: 7.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.922e-05/0.07391, allocations: 28 kB / 473 MB, free: 7.098 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.768e-05/0.07399, allocations: 91.61 kB / 473.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.07422, allocations: 288.2 kB / 473.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004131/0.07464, allocations: 0.5453 MB / 474 MB, free: 6.172 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.07465, allocations: 4 kB / 474 MB, free: 6.168 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.07466, allocations: 0 / 474 MB, free: 6.168 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.726e-05/0.07468, allocations: 0 / 474 MB, free: 6.168 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.001214/0.0759, allocations: 0.7488 MB / 474.7 MB, free: 5.371 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.07594, allocations: 8.031 kB / 474.7 MB, free: 5.363 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001057/0.07605, allocations: 60.28 kB / 474.8 MB, free: 5.305 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004158/0.07648, allocations: 367.5 kB / 475.1 MB, free: 4.91 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.066e-05/0.07653, allocations: 41.69 kB / 475.2 MB, free: 4.867 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.44e-05/0.07662, allocations: 48.38 kB / 475.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009231/0.07755, allocations: 0.5305 MB / 475.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.38e-05/0.07758, allocations: 3.938 kB / 475.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.694e-05/0.07763, allocations: 24 kB / 475.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.07765, allocations: 12 kB / 475.8 MB, free: 4.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008304/0.07849, allocations: 407.7 kB / 476.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002599/0.08109, allocations: 1.914 MB / 478.1 MB, free: 1.812 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006736/0.08178, allocations: 311.5 kB / 478.4 MB, free: 1.5 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005334/0.08233, allocations: 241.2 kB / 478.6 MB, free: 1.262 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.562e-05/0.08236, allocations: 12.2 kB / 478.7 MB, free: 1.25 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/0.08239, allocations: 42.78 kB / 478.7 MB, free: 1.199 MB / 302.1 MB Notification: Performance of pre-optimization done (n=33): time 1.583e-06/0.0824, allocations: 0 / 478.7 MB, free: 1.199 MB / 302.1 MB Notification: Performance of matching and sorting (n=47): time 0.004622/0.08703, allocations: 1.798 MB / 480.5 MB, free: 15.32 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.131e-05/0.08707, allocations: 59.84 kB / 480.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002919/0.08737, allocations: 295.2 kB / 480.8 MB, free: 14.96 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.451e-05/0.08742, allocations: 33.7 kB / 480.9 MB, free: 14.92 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.08757, allocations: 268.2 kB / 481.1 MB, free: 14.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001137/0.08769, allocations: 161.6 kB / 481.3 MB, free: 14.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.23e-05/0.08776, allocations: 41.7 kB / 481.3 MB, free: 14.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001052/0.08787, allocations: 350.8 kB / 481.7 MB, free: 14.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003659/0.08824, allocations: 161 kB / 481.8 MB, free: 13.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004202/0.08867, allocations: 246.5 kB / 482.1 MB, free: 13.66 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007844/0.08946, allocations: 425.1 kB / 482.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.08948, allocations: 0 / 482.5 MB, free: 13.22 MB / 318.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00112/0.0906, allocations: 0.5636 MB / 483.1 MB, free: 12.64 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.09063, allocations: 11.94 kB / 483.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.734e-06/0.09065, allocations: 4 kB / 483.1 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002703/0.09092, allocations: 101.7 kB / 483.2 MB, free: 12.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004651/0.0914, allocations: 103.9 kB / 483.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002514/0.09392, allocations: 3.241 MB / 486.5 MB, free: 8.902 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002795/0.09421, allocations: 23.98 kB / 486.5 MB, free: 8.879 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.09426, allocations: 24 kB / 486.6 MB, free: 8.855 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.0002096/0.09448, allocations: 181.7 kB / 486.7 MB, free: 8.668 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.002e-05/0.09456, allocations: 39.56 kB / 486.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001073/0.09467, allocations: 47.73 kB / 486.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.09468, allocations: 4 kB / 486.8 MB, free: 8.578 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/0.0947, allocations: 4 kB / 486.8 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.548e-06/0.09471, allocations: 0 / 486.8 MB, free: 8.574 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001711/0.09642, allocations: 1.144 MB / 488 MB, free: 7.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.09644, allocations: 0 / 488 MB, free: 7.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004223/0.09687, allocations: 87.88 kB / 488.1 MB, free: 7.281 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002369/0.09712, allocations: 101.5 kB / 488.2 MB, free: 7.176 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.717e-05/0.09716, allocations: 12.03 kB / 488.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002441/0.0996, allocations: 3.243 MB / 491.4 MB, free: 3.648 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.09962, allocations: 3.938 kB / 491.4 MB, free: 3.645 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.1011, allocations: 0.7841 MB / 492.2 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001382/0.1012, allocations: 144.7 kB / 492.3 MB, free: 2.676 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.1013, allocations: 16 kB / 492.4 MB, free: 2.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003031/0.1016, allocations: 27.98 kB / 492.4 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.78e-05/0.1017, allocations: 35.89 kB / 492.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.998e-05/0.1017, allocations: 19.98 kB / 492.4 MB, free: 2.578 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001867/0.1019, allocations: 206 kB / 492.6 MB, free: 2.379 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1019, allocations: 4 kB / 492.6 MB, free: 2.375 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005939/0.1025, allocations: 120 kB / 492.8 MB, free: 2.258 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.0001068/0.1026, allocations: 103.7 kB / 492.9 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.1038, allocations: 0.6705 MB / 493.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.1038, allocations: 0 / 493.5 MB, free: 1.449 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007375/0.1045, allocations: 497.6 kB / 494 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004495/0.105, allocations: 54.8 kB / 494.1 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.1069, allocations: 1.349 MB / 495.4 MB, free: 15.5 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003445/0.1072, allocations: 0.8356 MB / 496.3 MB, free: 14.64 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001175/0.1074, allocations: 31.44 kB / 496.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1074, allocations: 0 / 496.3 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Templates: time 0.01122/0.1186, allocations: 9.75 MB / 0.4942 GB, free: 4.871 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 -lv LOG_STATS > HanserModelica_HanserModelica.Magnetic.TestTransformer.pipe 2>&1)