Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.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.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006694/0.006694, allocations: 105 kB / 15.79 MB, free: 6.379 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.001439/0.001439, allocations: 193.1 kB / 16.73 MB, free: 6.301 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.484/1.484, allocations: 207.6 MB / 225.1 MB, free: 4.18 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.001726/0.001726, allocations: 52.53 kB / 334.1 MB, free: 10.33 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1051, allocations: 49.12 MB / 383.2 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02678/0.1318, allocations: 23.65 MB / 406.9 MB, free: 1.301 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01566/0.1475, allocations: 6.925 MB / 413.8 MB, free: 10.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005215/0.1527, allocations: 139.4 kB / 413.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005996/0.1587, allocations: 1.704 MB / 415.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008679/0.1674, allocations: 2.466 MB / 418.1 MB, free: 6.023 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004435/0.1718, allocations: 1.446 MB / 419.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01411/0.1859, allocations: 8.913 MB / 428.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007786/0.1937, allocations: 4.998 MB / 433.5 MB, free: 6.535 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006621/0.2003, allocations: 4.074 MB / 437.5 MB, free: 2.449 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008289/0.2086, allocations: 4.807 MB / 442.4 MB, free: 13.62 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00319/0.2118, allocations: 1.105 MB / 443.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004446/0.2163, allocations: 1.378 MB / 444.8 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004158/0.2204, allocations: 2.754 MB / 447.6 MB, free: 8.379 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009184/0.2296, allocations: 4.676 MB / 452.3 MB, free: 3.684 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2083/0.4379, allocations: 14.5 MB / 466.8 MB, free: 26.92 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.4379, allocations: 1.188 kB / 466.8 MB, free: 26.92 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.394e-06/0.4379, allocations: 3.734 kB / 466.8 MB, free: 26.92 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005925/0.4385, allocations: 0 / 466.8 MB, free: 26.92 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1778 * Number of variables: 1778 Notification: Performance of Generate backend data structure: time 0.03123/0.4698, allocations: 9.103 MB / 475.9 MB, free: 23.11 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.4698, allocations: 8.562 kB / 475.9 MB, free: 23.11 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008041/0.4778, allocations: 1.344 MB / 477.2 MB, free: 22.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01191/0.4898, allocations: 5.116 MB / 482.3 MB, free: 20.71 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004824/0.4902, allocations: 0.5009 MB / 482.8 MB, free: 20.69 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003016/0.4933, allocations: 0.661 MB / 483.5 MB, free: 20.68 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02373/0.517, allocations: 9.455 MB / 493 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/0.5172, allocations: 11.88 kB / 493 MB, free: 15.14 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001802/0.519, allocations: 282.5 kB / 493.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002325/0.5192, allocations: 295.6 kB / 493.5 MB, free: 14.89 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01788/0.5371, allocations: 8.08 MB / 0.4899 GB, free: 10.12 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06529/0.6024, allocations: 29.09 MB / 0.5183 GB, free: 13 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01413/0.6165, allocations: 11.66 MB / 0.5297 GB, free: 220 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006688/0.6232, allocations: 3.121 MB / 0.5327 GB, free: 13.09 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01973/0.643, allocations: 7.973 MB / 0.5405 GB, free: 5.129 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.801e-05/0.6431, allocations: 72.95 kB / 0.5406 GB, free: 5.047 MB / 430.1 MB Notification: Performance of pre-optimization done (n=305): time 5.59e-06/0.6431, allocations: 0 / 0.5406 GB, free: 5.047 MB / 430.1 MB Notification: Performance of matching and sorting (n=324): time 0.03805/0.6811, allocations: 15.92 MB / 0.5561 GB, free: 4.695 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.6812, allocations: 85.95 kB / 0.5562 GB, free: 4.598 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008804/0.69, allocations: 4 MB / 0.5601 GB, free: 0.5742 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006362/0.6906, allocations: 81.7 kB / 0.5602 GB, free: 500 kB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003254/0.6939, allocations: 3.184 MB / 0.5633 GB, free: 13.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001656/0.6955, allocations: 1.141 MB / 0.5644 GB, free: 12.24 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001966/0.6975, allocations: 0.6848 MB / 0.5651 GB, free: 11.55 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001438/0.6976, allocations: 301.1 kB / 0.5653 GB, free: 11.25 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00354/0.7012, allocations: 1.862 MB / 0.5672 GB, free: 9.391 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004496/0.7057, allocations: 2.841 MB / 0.5699 GB, free: 6.168 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007606/0.7133, allocations: 4.905 MB / 0.5747 GB, free: 0.9609 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.637e-05/0.7133, allocations: 8 kB / 0.5747 GB, free: 0.9531 MB / 462.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.01208/0.7254, allocations: 6.401 MB / 0.581 GB, free: 10.64 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.7254, allocations: 19.91 kB / 0.581 GB, free: 10.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.985e-05/0.7255, allocations: 36.09 kB / 0.581 GB, free: 10.58 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003207/0.7287, allocations: 1.264 MB / 0.5823 GB, free: 9.281 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003586/0.7323, allocations: 0.8199 MB / 0.5831 GB, free: 8.512 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02323/0.7555, allocations: 22.54 MB / 0.6051 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003992/0.7595, allocations: 192 kB / 0.6053 GB, free: 368 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004085/0.7599, allocations: 156 kB / 0.6054 GB, free: 212 kB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 130 * Number of states: 0 () * Number of discrete variables: 9 (rheostatE.booleanStep[3].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[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 (424): * Single equations (assignments): 410 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 3 systems {(2,100.0%), (2,100.0%), (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): 11 systems {(1,8,100.0%), (2,14,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004754/0.7647, allocations: 2.184 MB / 0.6076 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/0.7657, allocations: 465 kB / 0.608 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01096/0.7767, allocations: 6.025 MB / 0.6139 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.839e-05/0.7767, allocations: 28 kB / 0.6139 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.225e-05/0.7767, allocations: 16 kB / 0.6139 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.683e-05/0.7768, allocations: 15.94 kB / 0.6139 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02388/0.8007, allocations: 12.32 MB / 0.626 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.344e-05/0.8007, allocations: 4.375 kB / 0.626 GB, free: 10.95 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002175/0.8028, allocations: 452.1 kB / 0.6264 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004298/0.8071, allocations: 1.617 MB / 0.628 GB, free: 8.863 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003288/0.8075, allocations: 79.97 kB / 0.6281 GB, free: 8.785 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2695/1.077, allocations: 32.89 MB / 0.6602 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.077, allocations: 9.125 kB / 0.6602 GB, free: 164.1 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01272/1.09, allocations: 8.633 MB / 0.6686 GB, free: 160.4 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002831/1.093, allocations: 0.9336 MB / 0.6695 GB, free: 160 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001279/1.094, allocations: 70.05 kB / 0.6696 GB, free: 160 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002476/1.096, allocations: 185.1 kB / 0.6698 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007751/1.097, allocations: 275.6 kB / 0.67 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002302/1.097, allocations: 83.94 kB / 0.6701 GB, free: 159.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.005353/1.103, allocations: 2.723 MB / 0.6728 GB, free: 158.9 MB / 0.5137 GB Notification: Performance of sort global known variables: time 9e-08/1.103, allocations: 0 / 0.6728 GB, free: 158.9 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.007639/1.11, allocations: 1.329 MB / 0.6741 GB, free: 158.7 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 16 (aimsM.inertiaRotor.w,aimsM.stator.zeroInductor.i0,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aimsE.inertiaRotor.w,aimsE.i_0_s,aimsE.idq_sr[1],aimsE.idq_sr[2],aimsE.idq_rr[1],aimsE.idq_rr[2],aimsE.i_0_r,quadraticLoadTorqueM.phi,quadraticLoadTorqueE.phi) * Number of discrete variables: 9 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatE.booleanStep[1].y,rheostatE.booleanStep[2].y,rheostatE.booleanStep[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 16 * 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): 16 systems {(2,14,100.0%), (1,1,100.0%), (1,8,100.0%), (2,1,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,1,100.0%), (1,8,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.0009441/1.111, allocations: 282 kB / 0.6743 GB, free: 158.6 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.008057/1.119, allocations: 6.149 MB / 0.6803 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.933e-06/1.119, allocations: 0 / 0.6803 GB, free: 155.4 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.005935/1.125, allocations: 4.635 MB / 0.6849 GB, free: 151.5 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007551/1.133, allocations: 1.33 MB / 0.6862 GB, free: 150.4 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02357/1.156, allocations: 13.46 MB / 0.6993 GB, free: 138.1 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004252/1.161, allocations: 4.484 MB / 0.7037 GB, free: 133.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003497/1.164, allocations: 1.05 MB / 0.7047 GB, free: 132.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007985/1.165, allocations: 279.4 kB / 0.705 GB, free: 132.2 MB / 0.5137 GB Notification: Performance of SimCode: time 2.735e-06/1.165, allocations: 0 / 0.705 GB, free: 132.2 MB / 0.5137 GB Notification: Performance of Templates: time 0.1136/1.279, allocations: 72.33 MB / 0.7756 GB, free: 59.85 MB / 0.5137 GB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start.pipe 2>&1)