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.00108/0.00108, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 188.3 kB / 16.25 MB, free: 6.625 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.382/1.382, allocations: 205.1 MB / 222.1 MB, free: 4.91 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.001254/0.001254, allocations: 47.92 kB / 278.2 MB, free: 12.9 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2196, allocations: 46.62 MB / 324.9 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01656/0.2362, allocations: 16.56 MB / 341.4 MB, free: 3.531 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.2471, allocations: 5.616 MB / 347 MB, free: 13.9 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003369/0.2505, allocations: 91.56 kB / 347.1 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003793/0.2543, allocations: 1.174 MB / 348.3 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005939/0.2603, allocations: 1.609 MB / 349.9 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002891/0.2632, allocations: 0.9709 MB / 350.9 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008326/0.2715, allocations: 6.448 MB / 357.3 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006304/0.2779, allocations: 5.28 MB / 362.6 MB, free: 14.2 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004859/0.2827, allocations: 2.832 MB / 365.4 MB, free: 11.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005277/0.288, allocations: 3.347 MB / 368.8 MB, free: 8 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002449/0.2905, allocations: 0.7852 MB / 369.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002639/0.2931, allocations: 1.058 MB / 370.6 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001587/0.2947, allocations: 1.866 MB / 372.5 MB, free: 4.285 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004831/0.2996, allocations: 3.338 MB / 375.8 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.3112, allocations: 10.41 MB / 386.2 MB, free: 6.484 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.083e-06/0.3113, allocations: 4 kB / 386.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.3113, allocations: 0 / 386.2 MB, free: 6.48 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003091/0.3116, allocations: 0 / 386.2 MB, free: 6.48 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.01819/0.3298, allocations: 6.502 MB / 392.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.056e-05/0.3299, allocations: 15.89 kB / 392.8 MB, free: 15.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005188/0.3351, allocations: 1.056 MB / 393.8 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006793/0.3419, allocations: 3.345 MB / 397.2 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003169/0.3422, allocations: 365.7 kB / 397.5 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001251/0.3435, allocations: 487.9 kB / 398 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01384/0.3573, allocations: 6.861 MB / 404.9 MB, free: 3.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.717e-05/0.3575, allocations: 7.938 kB / 404.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004877/0.358, allocations: 200 kB / 405.1 MB, free: 3.414 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002219/0.3582, allocations: 241.8 kB / 405.3 MB, free: 3.176 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01153/0.3697, allocations: 5.926 MB / 411.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03693/0.4067, allocations: 20.94 MB / 432.2 MB, free: 7.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009578/0.4163, allocations: 9.968 MB / 442.1 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003926/0.4203, allocations: 2.481 MB / 444.6 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01114/0.4315, allocations: 6.513 MB / 451.1 MB, free: 3.758 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.463e-05/0.4315, allocations: 60.56 kB / 451.2 MB, free: 3.688 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 4.108e-06/0.4315, allocations: 0 / 451.2 MB, free: 3.688 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.1871/0.6186, allocations: 9.683 MB / 460.9 MB, free: 106.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.797e-05/0.6187, allocations: 74.81 kB / 460.9 MB, free: 106.7 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004348/0.6231, allocations: 2.985 MB / 463.9 MB, free: 105.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002568/0.6233, allocations: 66.17 kB / 464 MB, free: 105.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001195/0.6245, allocations: 2.161 MB / 466.1 MB, free: 103.9 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005123/0.625, allocations: 0.7566 MB / 466.9 MB, free: 103.4 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006379/0.6257, allocations: 471.3 kB / 467.4 MB, free: 103.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.879e-05/0.6258, allocations: 311.2 kB / 467.7 MB, free: 102.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001753/0.6275, allocations: 1.288 MB / 469 MB, free: 102.3 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003128/0.6307, allocations: 1.917 MB / 470.9 MB, free: 101.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005681/0.6364, allocations: 3.35 MB / 474.2 MB, free: 99.21 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-05/0.6364, allocations: 7.438 kB / 474.2 MB, free: 99.21 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.009481/0.6459, allocations: 4.245 MB / 478.5 MB, free: 96.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.916e-05/0.646, allocations: 12 kB / 478.5 MB, free: 96.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.824e-05/0.646, allocations: 20 kB / 478.5 MB, free: 96.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003585/0.6496, allocations: 0.772 MB / 479.3 MB, free: 95.59 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003253/0.6529, allocations: 0.5655 MB / 479.8 MB, free: 95.02 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0122/0.6651, allocations: 10.89 MB / 490.7 MB, free: 83.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003975/0.6691, allocations: 107.8 kB / 490.8 MB, free: 83.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000477/0.6696, allocations: 100 kB / 490.9 MB, free: 83.4 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.004304/0.6739, allocations: 1.613 MB / 492.6 MB, free: 81.77 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001372/0.6753, allocations: 313.9 kB / 492.9 MB, free: 81.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00856/0.6839, allocations: 3.911 MB / 496.8 MB, free: 77.48 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.546e-05/0.6839, allocations: 20 kB / 496.8 MB, free: 77.46 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.133e-05/0.684, allocations: 12 kB / 496.8 MB, free: 77.45 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.684, allocations: 11.95 kB / 496.8 MB, free: 77.44 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01947/0.7035, allocations: 8.568 MB / 0.4935 GB, free: 68.78 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.48e-05/0.7036, allocations: 4 kB / 0.4935 GB, free: 68.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002006/0.7056, allocations: 347.8 kB / 0.4939 GB, free: 68.44 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004067/0.7097, allocations: 0.9407 MB / 0.4948 GB, free: 67.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003029/0.71, allocations: 51.98 kB / 0.4948 GB, free: 67.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/0.7227, allocations: 15.7 MB / 0.5102 GB, free: 50.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.7228, allocations: 4 kB / 0.5102 GB, free: 50.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008358/0.7312, allocations: 5.694 MB / 0.5157 GB, free: 45.15 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002046/0.7332, allocations: 0.6885 MB / 0.5164 GB, free: 44.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0012/0.7345, allocations: 55.7 kB / 0.5165 GB, free: 44.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00236/0.7368, allocations: 107.9 kB / 0.5166 GB, free: 44.28 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004879/0.7374, allocations: 193.7 kB / 0.5167 GB, free: 44.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/0.7375, allocations: 59.98 kB / 0.5168 GB, free: 44.03 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003538/0.7411, allocations: 2.063 MB / 0.5188 GB, free: 41.97 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.7411, allocations: 0 / 0.5188 GB, free: 41.97 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003645/0.7448, allocations: 0.9401 MB / 0.5197 GB, free: 41.03 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.000664/0.7454, allocations: 268.9 kB / 0.52 GB, free: 40.77 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.008996/0.7544, allocations: 5.373 MB / 0.5252 GB, free: 35.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.7545, allocations: 0 / 0.5252 GB, free: 35.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003427/0.7579, allocations: 2.627 MB / 0.5278 GB, free: 32.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004159/0.7621, allocations: 0.92 MB / 0.5287 GB, free: 31.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/0.7772, allocations: 11.58 MB / 0.54 GB, free: 20.12 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00264/0.7799, allocations: 3.429 MB / 0.5434 GB, free: 16.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002429/0.7824, allocations: 0.7604 MB / 0.5441 GB, free: 15.89 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005336/0.7829, allocations: 195.4 kB / 0.5443 GB, free: 15.7 MB / 382.1 MB Notification: Performance of SimCode: time 2.154e-06/0.7829, allocations: 0 / 0.5443 GB, free: 15.7 MB / 382.1 MB Notification: Performance of Templates: time 0.08212/0.8651, allocations: 50.8 MB / 0.5939 GB, free: 12.85 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)