Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001045/0.001045, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009329/0.0009329, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.58/1.58, allocations: 205.4 MB / 222.1 MB, free: 5.531 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.0004464/0.0004467, allocations: 20 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2411/0.2416, allocations: 47.58 MB / 326.4 MB, free: 1.465 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses): time 0.01202/0.2536, allocations: 10.96 MB / 337.4 MB, free: 8.527 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009899/0.2636, allocations: 4.623 MB / 342 MB, free: 3.895 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002936/0.2666, allocations: 63.69 kB / 342.1 MB, free: 3.832 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00329/0.2699, allocations: 0.7968 MB / 342.9 MB, free: 3.031 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00491/0.2748, allocations: 1.203 MB / 344.1 MB, free: 1.824 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002578/0.2774, allocations: 0.6821 MB / 344.8 MB, free: 1.141 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006727/0.2842, allocations: 2.945 MB / 347.7 MB, free: 14.19 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004226/0.2884, allocations: 2.262 MB / 350 MB, free: 11.89 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002816/0.2913, allocations: 1.351 MB / 351.3 MB, free: 10.54 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003674/0.295, allocations: 1.622 MB / 353 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001343/0.2963, allocations: 216 kB / 353.2 MB, free: 8.695 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002471/0.2988, allocations: 0.519 MB / 353.7 MB, free: 8.176 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001691/0.3005, allocations: 0.9462 MB / 354.6 MB, free: 7.227 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002194/0.3027, allocations: 0.8043 MB / 355.4 MB, free: 6.414 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008956/0.3117, allocations: 5.898 MB / 361.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.3117, allocations: 0 / 361.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.587e-06/0.3118, allocations: 0 / 361.3 MB, free: 0.5 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.000328/0.3121, allocations: 0 / 361.3 MB, free: 0.5 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 877 * Number of variables: 877 Notification: Performance of Generate backend data structure: time 0.01416/0.3263, allocations: 4.26 MB / 365.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.816e-05/0.3263, allocations: 12.02 kB / 365.6 MB, free: 12.15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005218/0.3316, allocations: 0.8887 MB / 366.5 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006235/0.3378, allocations: 2.491 MB / 369 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003/0.3382, allocations: 250.7 kB / 369.2 MB, free: 8.445 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001055/0.3392, allocations: 335.9 kB / 369.6 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01091/0.3501, allocations: 4.504 MB / 374.1 MB, free: 3.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000105/0.3503, allocations: 7.984 kB / 374.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006197/0.3509, allocations: 132 kB / 374.2 MB, free: 3.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001812/0.3511, allocations: 154.7 kB / 374.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008744/0.3599, allocations: 3.883 MB / 378.2 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02769/0.3876, allocations: 14.18 MB / 392.4 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008954/0.3966, allocations: 6.947 MB / 399.4 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009285/0.406, allocations: 3.645 MB / 403 MB, free: 5.426 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.359e-05/0.4061, allocations: 52.56 kB / 403.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of pre-optimization done (n=169): time 5.19e-06/0.4061, allocations: 0 / 403.1 MB, free: 5.367 MB / 334.1 MB Notification: Performance of matching and sorting (n=189): time 0.01771/0.4238, allocations: 8.063 MB / 411.1 MB, free: 13.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.273e-05/0.4239, allocations: 69.41 kB / 411.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004854/0.4288, allocations: 2.572 MB / 413.8 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001628/0.4289, allocations: 53.7 kB / 413.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001247/0.4302, allocations: 1.603 MB / 415.4 MB, free: 8.773 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005939/0.4308, allocations: 0.6314 MB / 416 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001232/0.4309, allocations: 44 kB / 416.1 MB, free: 8.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002097/0.4312, allocations: 381.9 kB / 416.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001717/0.4329, allocations: 0.9019 MB / 417.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001989/0.4349, allocations: 1.288 MB / 418.7 MB, free: 5.375 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002057/0.437, allocations: 1.127 MB / 419.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.648e-06/0.437, allocations: 0 / 419.8 MB, free: 4.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=248) (initialization): time 0.006456/0.4434, allocations: 3.069 MB / 422.8 MB, free: 1.164 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.4435, allocations: 8 kB / 422.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.522e-05/0.4435, allocations: 12 kB / 422.9 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001594/0.4451, allocations: 0.548 MB / 423.4 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001817/0.447, allocations: 447.3 kB / 423.9 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009506/0.4565, allocations: 7.226 MB / 431.1 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001939/0.4585, allocations: 87.95 kB / 431.2 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003454/0.4588, allocations: 75.98 kB / 431.2 MB, free: 8.5 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (199): * Single equations (assignments): 195 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(7,63.3%) 35} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002801/0.4616, allocations: 1.161 MB / 432.4 MB, free: 7.328 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008125/0.4625, allocations: 260.8 kB / 432.7 MB, free: 7.07 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00658/0.4691, allocations: 2.905 MB / 435.6 MB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.843e-05/0.4691, allocations: 23.98 kB / 435.6 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.964e-05/0.4692, allocations: 8 kB / 435.6 MB, free: 4.105 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.347e-05/0.4692, allocations: 7.969 kB / 435.6 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01435/0.4836, allocations: 6.319 MB / 441.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.4836, allocations: 0 / 441.9 MB, free: 13.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.485, allocations: 291.7 kB / 442.2 MB, free: 13.4 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001739/0.4868, allocations: 0.6277 MB / 442.8 MB, free: 12.77 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001561/0.4869, allocations: 43.98 kB / 442.9 MB, free: 12.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01259/0.4995, allocations: 10.77 MB / 453.6 MB, free: 1.41 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.4996, allocations: 3.984 kB / 453.6 MB, free: 1.406 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2185/0.7182, allocations: 4.243 MB / 457.9 MB, free: 107.4 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001306/0.7195, allocations: 0.5371 MB / 458.4 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003094/0.7198, allocations: 40.41 kB / 458.5 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001086/0.7209, allocations: 96.95 kB / 458.6 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003323/0.7213, allocations: 138.7 kB / 458.7 MB, free: 107.3 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001364/0.7214, allocations: 52.45 kB / 458.8 MB, free: 107.3 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002629/0.724, allocations: 1.795 MB / 460.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.7241, allocations: 0 / 460.5 MB, free: 106.9 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002429/0.7265, allocations: 0.6979 MB / 461.2 MB, free: 106.8 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.stator.strayReluctance.Phi.re,aimc.stator.strayReluctance.Phi.im,loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (129): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 12,(1,100.0%) 6,(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001004/0.7275, allocations: 436.9 kB / 461.7 MB, free: 106.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004384/0.7319, allocations: 2.844 MB / 464.5 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.579e-06/0.7319, allocations: 0.625 kB / 464.5 MB, free: 105.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002635/0.7346, allocations: 1.966 MB / 466.5 MB, free: 104.3 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002046/0.7366, allocations: 0.5251 MB / 467 MB, free: 104.1 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009838/0.7465, allocations: 8.373 MB / 475.4 MB, free: 99.25 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002054/0.7486, allocations: 2.696 MB / 478.1 MB, free: 97.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001735/0.7503, allocations: 0.4982 MB / 478.6 MB, free: 96.68 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003882/0.7507, allocations: 167.4 kB / 478.7 MB, free: 96.52 MB / 382.1 MB Notification: Performance of SimCode: time 1.302e-06/0.7507, allocations: 4 kB / 478.7 MB, free: 96.52 MB / 382.1 MB Notification: Performance of Templates: time 0.05048/0.8012, allocations: 33.68 MB / 0.5004 GB, free: 62.8 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_withLosses.pipe 2>&1) Environment - environmentSimulation: