Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009583/0.0009583, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.00127/0.00127, allocations: 168.7 kB / 15.95 MB, free: 204 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.568/1.568, allocations: 205.4 MB / 222.1 MB, free: 5.648 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.000466/0.000466, allocations: 8 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3032/0.3036, allocations: 47.6 MB / 326.5 MB, free: 1.605 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.01321/0.3169, allocations: 12.03 MB / 338.5 MB, free: 7.582 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01001/0.327, allocations: 4.19 MB / 342.7 MB, free: 3.383 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003173/0.3302, allocations: 67.69 kB / 342.8 MB, free: 3.316 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003064/0.3333, allocations: 0.7729 MB / 343.5 MB, free: 2.539 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005162/0.3385, allocations: 1.146 MB / 344.7 MB, free: 1.387 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002595/0.3411, allocations: 0.6159 MB / 345.3 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007918/0.349, allocations: 4.751 MB / 350.1 MB, free: 12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004999/0.354, allocations: 2.541 MB / 352.6 MB, free: 9.41 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003303/0.3573, allocations: 1.49 MB / 354.1 MB, free: 7.914 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003808/0.3612, allocations: 1.914 MB / 356 MB, free: 5.992 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006386/0.3618, allocations: 240 kB / 356.2 MB, free: 5.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00158/0.3634, allocations: 423.8 kB / 356.7 MB, free: 5.344 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008854/0.3643, allocations: 0.9108 MB / 357.6 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.3656, allocations: 0.8473 MB / 358.4 MB, free: 3.574 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006664/0.3723, allocations: 6.33 MB / 364.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.3723, allocations: 0 / 364.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3723, allocations: 0 / 364.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002112/0.3725, allocations: 4 kB / 364.7 MB, free: 13.22 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: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01104/0.3836, allocations: 4.3 MB / 369 MB, free: 8.852 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.004e-05/0.3837, allocations: 12.03 kB / 369.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00476/0.3884, allocations: 0.881 MB / 369.9 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005065/0.3935, allocations: 2.511 MB / 372.5 MB, free: 5.391 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002094/0.3937, allocations: 279.2 kB / 372.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005729/0.3943, allocations: 359.9 kB / 373.1 MB, free: 4.766 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009356/0.4037, allocations: 5.013 MB / 378.1 MB, free: 15.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-05/0.4038, allocations: 7.938 kB / 378.1 MB, free: 15.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003316/0.4041, allocations: 144 kB / 378.2 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001519/0.4043, allocations: 163.1 kB / 378.4 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007616/0.4119, allocations: 4.377 MB / 382.8 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02721/0.4391, allocations: 15.99 MB / 398.8 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008472/0.4476, allocations: 7.791 MB / 406.6 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002805/0.4505, allocations: 1.726 MB / 408.3 MB, free: 236 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008191/0.4587, allocations: 4.675 MB / 413 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.474e-05/0.4588, allocations: 51.88 kB / 413 MB, free: 11.4 MB / 350.1 MB Notification: Performance of pre-optimization done (n=161): time 2.765e-06/0.4588, allocations: 0 / 413 MB, free: 11.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=164): time 0.01694/0.4757, allocations: 8.193 MB / 421.2 MB, free: 2.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.473e-05/0.4758, allocations: 68.72 kB / 421.3 MB, free: 2.906 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00324/0.479, allocations: 2.139 MB / 423.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001407/0.4792, allocations: 57.69 kB / 423.5 MB, free: 0.668 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00135/0.4806, allocations: 1.619 MB / 425.1 MB, free: 15.03 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005105/0.4811, allocations: 0.5468 MB / 425.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.4812, allocations: 36 kB / 425.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.4814, allocations: 389.8 kB / 426 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001565/0.4829, allocations: 0.9486 MB / 427 MB, free: 13.1 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001886/0.4848, allocations: 1.461 MB / 428.5 MB, free: 11.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001769/0.4866, allocations: 1.173 MB / 429.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.375e-06/0.4866, allocations: 4 kB / 429.6 MB, free: 10.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.005599/0.4922, allocations: 3.356 MB / 433 MB, free: 6.852 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.467e-05/0.4923, allocations: 12 kB / 433 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.169e-05/0.4923, allocations: 19.98 kB / 433 MB, free: 6.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001801/0.4941, allocations: 0.7277 MB / 433.7 MB, free: 6.078 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001381/0.4955, allocations: 387.3 kB / 434.1 MB, free: 5.699 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01193/0.5075, allocations: 10.39 MB / 444.5 MB, free: 10.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002106/0.5096, allocations: 99.94 kB / 444.6 MB, free: 10.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001526/0.5098, allocations: 72.38 kB / 444.7 MB, free: 10.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 1,(1,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002635/0.5124, allocations: 1.223 MB / 445.9 MB, free: 9.371 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004362/0.5129, allocations: 225.3 kB / 446.1 MB, free: 9.148 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005485/0.5184, allocations: 3.171 MB / 449.3 MB, free: 5.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.698e-05/0.5184, allocations: 23.89 kB / 449.3 MB, free: 5.887 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.334e-05/0.5184, allocations: 8 kB / 449.3 MB, free: 5.879 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.5184, allocations: 7.969 kB / 449.3 MB, free: 5.871 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2542/0.7727, allocations: 6.574 MB / 455.9 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.575e-05/0.7727, allocations: 1.375 kB / 455.9 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001135/0.7739, allocations: 180.3 kB / 456.1 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002665/0.7766, allocations: 0.921 MB / 457 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001977/0.7768, allocations: 44 kB / 457.1 MB, free: 107.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01386/0.7906, allocations: 14.79 MB / 471.8 MB, free: 97.17 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.7907, allocations: 0 / 471.8 MB, free: 97.17 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00666/0.7973, allocations: 4.522 MB / 476.4 MB, free: 95.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001143/0.7985, allocations: 0.5229 MB / 476.9 MB, free: 94.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002642/0.7988, allocations: 42.53 kB / 476.9 MB, free: 94.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009386/0.7997, allocations: 85.8 kB / 477 MB, free: 94.93 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004646/0.8002, allocations: 158.8 kB / 477.2 MB, free: 94.91 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.475e-05/0.8003, allocations: 43.8 kB / 477.2 MB, free: 94.89 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002123/0.8024, allocations: 1.469 MB / 478.7 MB, free: 94.3 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8024, allocations: 0 / 478.7 MB, free: 94.3 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002368/0.8048, allocations: 0.7036 MB / 479.4 MB, free: 94.24 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003622/0.8052, allocations: 169.1 kB / 479.5 MB, free: 94.11 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004018/0.8092, allocations: 3.131 MB / 482.7 MB, free: 92.04 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.8092, allocations: 0 / 482.7 MB, free: 92.04 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.812, allocations: 2.276 MB / 485 MB, free: 89.73 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002575/0.8145, allocations: 0.6186 MB / 485.6 MB, free: 89.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01112/0.8257, allocations: 8.16 MB / 493.7 MB, free: 80.94 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002027/0.8277, allocations: 2.676 MB / 496.4 MB, free: 78.24 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001865/0.8296, allocations: 484 kB / 496.9 MB, free: 77.76 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003287/0.83, allocations: 135.4 kB / 497 MB, free: 77.63 MB / 382.1 MB Notification: Performance of SimCode: time 1.253e-06/0.83, allocations: 0 / 497 MB, free: 77.63 MB / 382.1 MB Notification: Performance of Templates: time 0.05572/0.8857, allocations: 35.43 MB / 0.52 GB, free: 42.16 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)