Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001205/0.001205, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 194.6 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.376/1.376, allocations: 205.1 MB / 222.4 MB, free: 4.559 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001378/0.001378, allocations: 47.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2249/0.2263, allocations: 46.64 MB / 325.3 MB, free: 1.867 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01901/0.2454, allocations: 16.76 MB / 342.1 MB, free: 3.109 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01235/0.2578, allocations: 5.705 MB / 347.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003545/0.2614, allocations: 95.56 kB / 347.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00363/0.265, allocations: 1.336 MB / 349.2 MB, free: 11.95 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005863/0.2709, allocations: 1.771 MB / 351 MB, free: 10.17 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.2738, allocations: 1.06 MB / 352 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008406/0.2822, allocations: 6.3 MB / 358.3 MB, free: 2.777 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009079/0.2914, allocations: 5.276 MB / 363.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006296/0.2977, allocations: 2.93 MB / 366.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005895/0.3036, allocations: 3.328 MB / 369.9 MB, free: 7.141 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002358/0.306, allocations: 0.7852 MB / 370.7 MB, free: 6.355 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004088/0.3101, allocations: 1.074 MB / 371.7 MB, free: 5.281 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002961/0.313, allocations: 1.866 MB / 373.6 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007147/0.3202, allocations: 3.345 MB / 376.9 MB, free: 52 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01173/0.332, allocations: 10.43 MB / 387.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.692e-06/0.332, allocations: 0 / 387.4 MB, free: 5.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.332, allocations: 4 kB / 387.4 MB, free: 5.578 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002907/0.3323, allocations: 0 / 387.4 MB, free: 5.578 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.01765/0.35, allocations: 6.514 MB / 393.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.039e-05/0.3501, allocations: 11.89 kB / 393.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005271/0.3554, allocations: 1.056 MB / 395 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008299/0.3637, allocations: 3.384 MB / 398.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002728/0.364, allocations: 361.7 kB / 398.7 MB, free: 10.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009727/0.365, allocations: 483.9 kB / 399.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0127/0.3777, allocations: 6.873 MB / 406 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.713e-05/0.3778, allocations: 4 kB / 406 MB, free: 2.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000481/0.3783, allocations: 200 kB / 406.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002503/0.3785, allocations: 245.8 kB / 406.5 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01108/0.3896, allocations: 5.933 MB / 412.4 MB, free: 12.27 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03504/0.4247, allocations: 20.93 MB / 433.4 MB, free: 6.906 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009478/0.4342, allocations: 9.96 MB / 443.3 MB, free: 11.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004034/0.4383, allocations: 2.485 MB / 445.8 MB, free: 9.426 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01149/0.4498, allocations: 6.513 MB / 452.3 MB, free: 2.801 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.634e-05/0.4499, allocations: 60.56 kB / 452.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.608e-06/0.4499, allocations: 0 / 452.4 MB, free: 2.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.1856/0.6355, allocations: 9.672 MB / 462 MB, free: 106.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.6356, allocations: 78.59 kB / 462.1 MB, free: 106.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003641/0.6392, allocations: 2.987 MB / 465.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001503/0.6394, allocations: 69.52 kB / 465.2 MB, free: 105.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009993/0.6404, allocations: 2.158 MB / 467.3 MB, free: 103.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004017/0.6408, allocations: 0.7583 MB / 468.1 MB, free: 103 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006143/0.6414, allocations: 470.6 kB / 468.5 MB, free: 102.8 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.505e-05/0.6415, allocations: 305.1 kB / 468.8 MB, free: 102.5 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001636/0.6431, allocations: 1.296 MB / 470.1 MB, free: 102 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001912/0.645, allocations: 1.921 MB / 472.1 MB, free: 100.8 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003431/0.6485, allocations: 3.339 MB / 475.4 MB, free: 98.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/0.6485, allocations: 3.812 kB / 475.4 MB, free: 98.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.005547/0.6541, allocations: 4.251 MB / 479.7 MB, free: 96.43 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.543e-05/0.6541, allocations: 12 kB / 479.7 MB, free: 96.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.958e-05/0.6541, allocations: 21.7 kB / 479.7 MB, free: 96.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001847/0.656, allocations: 0.7114 MB / 480.4 MB, free: 95.67 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001967/0.658, allocations: 0.5695 MB / 481 MB, free: 95.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007909/0.6659, allocations: 10.89 MB / 491.9 MB, free: 83.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002699/0.6686, allocations: 103.8 kB / 492 MB, free: 83.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001711/0.6688, allocations: 111.7 kB / 492.1 MB, free: 83.47 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,25,77.8%), (1,8,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002498/0.6713, allocations: 1.612 MB / 493.7 MB, free: 81.85 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005999/0.6719, allocations: 316.2 kB / 494 MB, free: 81.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005113/0.677, allocations: 3.914 MB / 497.9 MB, free: 77.56 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-05/0.6771, allocations: 20 kB / 497.9 MB, free: 77.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.6771, allocations: 12 kB / 497.9 MB, free: 77.53 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.6771, allocations: 11.95 kB / 497.9 MB, free: 77.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/0.6876, allocations: 8.571 MB / 0.4946 GB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.6876, allocations: 0 / 0.4946 GB, free: 68.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001379/0.689, allocations: 351.8 kB / 0.495 GB, free: 68.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002236/0.6913, allocations: 0.8702 MB / 0.4958 GB, free: 67.62 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001356/0.6914, allocations: 67.97 kB / 0.4959 GB, free: 67.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01132/0.7028, allocations: 15.7 MB / 0.5112 GB, free: 51.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.7028, allocations: 8.062 kB / 0.5112 GB, free: 51.06 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00718/0.71, allocations: 5.688 MB / 0.5168 GB, free: 45.28 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/0.7114, allocations: 0.6886 MB / 0.5175 GB, free: 44.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003963/0.7118, allocations: 55.94 kB / 0.5175 GB, free: 44.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001353/0.7132, allocations: 111.9 kB / 0.5176 GB, free: 44.41 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004006/0.7136, allocations: 185.7 kB / 0.5178 GB, free: 44.22 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00012/0.7137, allocations: 59.98 kB / 0.5179 GB, free: 44.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002328/0.716, allocations: 2.07 MB / 0.5199 GB, free: 42.09 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.716, allocations: 0 / 0.5199 GB, free: 42.09 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002643/0.7187, allocations: 0.935 MB / 0.5208 GB, free: 41.16 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,13,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005462/0.7192, allocations: 259.9 kB / 0.521 GB, free: 40.9 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008485/0.7277, allocations: 5.371 MB / 0.5263 GB, free: 35.47 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.7278, allocations: 2.859 kB / 0.5263 GB, free: 35.47 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003082/0.7309, allocations: 2.64 MB / 0.5289 GB, free: 32.75 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003539/0.7344, allocations: 0.9124 MB / 0.5298 GB, free: 31.84 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.7474, allocations: 9.505 MB / 0.539 GB, free: 22.28 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002428/0.7499, allocations: 3.429 MB / 0.5424 GB, free: 18.82 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002665/0.7525, allocations: 0.7604 MB / 0.5431 GB, free: 18.05 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005048/0.7531, allocations: 195.4 kB / 0.5433 GB, free: 17.86 MB / 382.1 MB Notification: Performance of SimCode: time 6.91e-07/0.7531, allocations: 0 / 0.5433 GB, free: 17.86 MB / 382.1 MB Notification: Performance of Templates: time 0.08105/0.8341, allocations: 51.03 MB / 0.5931 GB, free: 14.78 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)