Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.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.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.0009549/0.0009548, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.005537/0.005537, allocations: 170.6 kB / 16.27 MB, free: 6.66 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.37/1.37, allocations: 205.4 MB / 222.4 MB, free: 5.566 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.0004296/0.0004297, allocations: 8.516 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2426, allocations: 47.59 MB / 327 MB, free: 1.402 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.01532/0.258, allocations: 15.81 MB / 342.9 MB, free: 3.5 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01083/0.2688, allocations: 5.597 MB / 348.4 MB, free: 13.89 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002844/0.2717, allocations: 87.62 kB / 348.5 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003453/0.2752, allocations: 1.162 MB / 349.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005966/0.2812, allocations: 1.613 MB / 351.3 MB, free: 11.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00262/0.2838, allocations: 0.9631 MB / 352.3 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007923/0.2917, allocations: 6.931 MB / 359.2 MB, free: 3.086 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005179/0.297, allocations: 4.382 MB / 363.6 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004014/0.301, allocations: 2.082 MB / 365.7 MB, free: 12.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004099/0.3051, allocations: 2.726 MB / 368.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008862/0.306, allocations: 332 kB / 368.7 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001839/0.3078, allocations: 0.6128 MB / 369.3 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001119/0.309, allocations: 1.308 MB / 370.6 MB, free: 7.543 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003786/0.3128, allocations: 2.761 MB / 373.4 MB, free: 4.762 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009339/0.3221, allocations: 9.834 MB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3222, allocations: 0 / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.345e-06/0.3222, allocations: 4 kB / 383.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003103/0.3225, allocations: 0 / 383.2 MB, free: 10.89 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.01368/0.3362, allocations: 5.485 MB / 388.7 MB, free: 5.324 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.3363, allocations: 12.03 kB / 388.7 MB, free: 5.312 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005183/0.3414, allocations: 1.056 MB / 389.8 MB, free: 4.25 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005658/0.3471, allocations: 3.338 MB / 393.1 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002634/0.3474, allocations: 369.7 kB / 393.5 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000897/0.3483, allocations: 483.9 kB / 394 MB, free: 0 / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01158/0.3599, allocations: 6.873 MB / 400.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.744e-05/0.36, allocations: 15.89 kB / 400.9 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004394/0.3605, allocations: 199.9 kB / 401 MB, free: 8.836 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002017/0.3607, allocations: 241.8 kB / 401.3 MB, free: 8.598 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01025/0.3709, allocations: 5.945 MB / 407.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03183/0.4028, allocations: 21.05 MB / 428.3 MB, free: 13.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008894/0.4117, allocations: 9.968 MB / 438.2 MB, free: 2.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003916/0.4157, allocations: 2.501 MB / 440.7 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01178/0.4275, allocations: 6.54 MB / 447.3 MB, free: 8.992 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.157e-05/0.4276, allocations: 56.56 kB / 447.3 MB, free: 8.926 MB / 382.1 MB Notification: Performance of pre-optimization done (n=219): time 6.963e-06/0.4276, allocations: 0 / 447.3 MB, free: 8.926 MB / 382.1 MB Notification: Performance of matching and sorting (n=226): time 0.2141/0.6418, allocations: 9.77 MB / 457.1 MB, free: 106.6 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.6419, allocations: 78.73 kB / 457.2 MB, free: 106.6 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005261/0.6471, allocations: 2.986 MB / 460.2 MB, free: 105.7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004432/0.6476, allocations: 67.17 kB / 460.2 MB, free: 105.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.649, allocations: 2.158 MB / 462.4 MB, free: 104.6 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006113/0.6497, allocations: 0.7645 MB / 463.2 MB, free: 104.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003049/0.65, allocations: 214.7 kB / 463.4 MB, free: 104 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.659e-05/0.65, allocations: 301.1 kB / 463.7 MB, free: 103.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002081/0.6521, allocations: 1.302 MB / 465 MB, free: 103.2 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001974/0.6541, allocations: 1.935 MB / 466.9 MB, free: 102 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003968/0.6581, allocations: 3.372 MB / 470.3 MB, free: 100.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.878e-06/0.6581, allocations: 3.844 kB / 470.3 MB, free: 100.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.006248/0.6644, allocations: 4.275 MB / 474.6 MB, free: 98.23 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.861e-05/0.6644, allocations: 15.47 kB / 474.6 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.406e-05/0.6644, allocations: 18.41 kB / 474.6 MB, free: 98.23 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002504/0.6669, allocations: 0.7698 MB / 475.4 MB, free: 97.96 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002095/0.6691, allocations: 0.5739 MB / 475.9 MB, free: 97.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008188/0.6773, allocations: 10.05 MB / 486 MB, free: 88.76 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002806/0.6801, allocations: 112 kB / 486.1 MB, free: 88.65 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002169/0.6803, allocations: 107.9 kB / 486.2 MB, free: 88.54 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.002989/0.6833, allocations: 1.611 MB / 487.8 MB, free: 86.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006388/0.684, allocations: 312.2 kB / 488.1 MB, free: 86.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005524/0.6895, allocations: 3.942 MB / 492.1 MB, free: 82.61 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.6895, allocations: 24 kB / 492.1 MB, free: 82.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.22e-05/0.6896, allocations: 11.94 kB / 492.1 MB, free: 82.57 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.613e-05/0.6896, allocations: 7.969 kB / 492.1 MB, free: 82.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01127/0.7008, allocations: 8.602 MB / 0.489 GB, free: 73.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/0.7009, allocations: 7.844 kB / 0.489 GB, free: 73.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/0.7023, allocations: 343.8 kB / 0.4893 GB, free: 73.54 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002879/0.7052, allocations: 0.9253 MB / 0.4902 GB, free: 72.59 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000147/0.7053, allocations: 63.97 kB / 0.4903 GB, free: 72.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01154/0.7169, allocations: 14.43 MB / 0.5044 GB, free: 57.33 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.7169, allocations: 4.031 kB / 0.5044 GB, free: 57.33 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007735/0.7247, allocations: 5.735 MB / 0.51 GB, free: 51.5 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/0.7265, allocations: 0.6924 MB / 0.5106 GB, free: 50.78 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004514/0.7269, allocations: 51.98 kB / 0.5107 GB, free: 50.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001425/0.7284, allocations: 119.9 kB / 0.5108 GB, free: 50.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004359/0.7288, allocations: 189.7 kB / 0.511 GB, free: 50.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/0.7289, allocations: 67.97 kB / 0.511 GB, free: 50.36 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002642/0.7316, allocations: 2.066 MB / 0.5131 GB, free: 48.29 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7316, allocations: 0 / 0.5131 GB, free: 48.29 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002706/0.7343, allocations: 0.9363 MB / 0.514 GB, free: 47.36 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.0006083/0.7349, allocations: 261.4 kB / 0.5142 GB, free: 47.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005352/0.7403, allocations: 3.911 MB / 0.518 GB, free: 43.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.7403, allocations: 4.062 kB / 0.518 GB, free: 43.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003481/0.7438, allocations: 2.658 MB / 0.5206 GB, free: 40.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004952/0.7488, allocations: 0.8526 MB / 0.5215 GB, free: 39.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/0.7649, allocations: 11.76 MB / 0.533 GB, free: 27.73 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002772/0.7678, allocations: 3.422 MB / 0.5363 GB, free: 24.27 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002726/0.7705, allocations: 0.7526 MB / 0.537 GB, free: 23.51 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005252/0.771, allocations: 191.4 kB / 0.5372 GB, free: 23.32 MB / 382.1 MB Notification: Performance of SimCode: time 1.112e-06/0.771, allocations: 0 / 0.5372 GB, free: 23.32 MB / 382.1 MB Notification: Performance of Templates: time 0.07734/0.8484, allocations: 48.37 MB / 0.5845 GB, free: 6.883 MB / 414.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1)