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.001175/0.001175, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001278/0.001278, allocations: 196.2 kB / 16.14 MB, free: 6.707 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.348/1.348, allocations: 205.1 MB / 222 MB, free: 4.77 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.001082/0.001082, allocations: 55.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2021, allocations: 46.63 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start): time 0.02179/0.224, allocations: 23.25 MB / 347.9 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01287/0.2369, allocations: 6.832 MB / 354.8 MB, free: 5.965 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004328/0.2413, allocations: 131.4 kB / 354.9 MB, free: 5.836 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00451/0.2458, allocations: 1.391 MB / 356.3 MB, free: 4.438 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008483/0.2543, allocations: 2.18 MB / 358.5 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004761/0.2591, allocations: 1.31 MB / 359.8 MB, free: 0.9336 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01281/0.2719, allocations: 9.919 MB / 369.7 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008071/0.28, allocations: 5.779 MB / 375.5 MB, free: 1.105 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00489/0.285, allocations: 3.32 MB / 378.8 MB, free: 13.77 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006366/0.2914, allocations: 4.444 MB / 383.2 MB, free: 9.309 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002431/0.2938, allocations: 0.6445 MB / 383.9 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003694/0.2975, allocations: 0.9293 MB / 384.8 MB, free: 7.734 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003089/0.3006, allocations: 2.231 MB / 387 MB, free: 5.496 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007243/0.3079, allocations: 4.164 MB / 391.2 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01701/0.3249, allocations: 13.94 MB / 405.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.166e-06/0.325, allocations: 0 / 405.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.325, allocations: 0 / 405.2 MB, free: 3.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0004829/0.3255, allocations: 0 / 405.2 MB, free: 3.332 MB / 334.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.03194/0.3575, allocations: 8.896 MB / 414 MB, free: 10.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3575, allocations: 12.03 kB / 414.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01037/0.3679, allocations: 1.311 MB / 415.4 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01696/0.3849, allocations: 4.989 MB / 420.4 MB, free: 3.953 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009922/0.386, allocations: 0.498 MB / 420.9 MB, free: 3.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003766/0.3898, allocations: 0.6718 MB / 421.5 MB, free: 2.781 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02552/0.4153, allocations: 9.442 MB / 431 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003234/0.4157, allocations: 19.83 kB / 431 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001922/0.4176, allocations: 280 kB / 431.3 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003114/0.4179, allocations: 297.4 kB / 431.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01794/0.4359, allocations: 8.075 MB / 439.6 MB, free: 0.543 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3549/0.7908, allocations: 29.38 MB / 469 MB, free: 89.19 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01015/0.801, allocations: 11.98 MB / 481 MB, free: 79.85 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005484/0.8065, allocations: 3.385 MB / 484.4 MB, free: 78.61 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0141/0.8206, allocations: 7.994 MB / 492.4 MB, free: 73.61 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.809e-05/0.8207, allocations: 65.62 kB / 492.4 MB, free: 73.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=305): time 5.751e-06/0.8208, allocations: 0 / 492.4 MB, free: 73.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=324): time 0.03105/0.8518, allocations: 15.83 MB / 0.4963 GB, free: 60.72 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.591e-05/0.8519, allocations: 85.95 kB / 0.4964 GB, free: 60.62 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00629/0.8582, allocations: 4 MB / 0.5003 GB, free: 56.6 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006742/0.8589, allocations: 77.7 kB / 0.5004 GB, free: 56.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00172/0.8606, allocations: 3.094 MB / 0.5034 GB, free: 53.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001004/0.8617, allocations: 1.1 MB / 0.5045 GB, free: 52.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001386/0.8631, allocations: 0.6728 MB / 0.5052 GB, free: 51.64 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.871e-05/0.8631, allocations: 305.1 kB / 0.5055 GB, free: 51.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002728/0.8658, allocations: 1.862 MB / 0.5073 GB, free: 49.47 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003064/0.8689, allocations: 2.847 MB / 0.5101 GB, free: 46.23 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005705/0.8746, allocations: 4.9 MB / 0.5148 GB, free: 40.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.09e-05/0.8747, allocations: 8 kB / 0.5148 GB, free: 40.9 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.009643/0.8843, allocations: 6.406 MB / 0.5211 GB, free: 34.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.249e-05/0.8844, allocations: 16 kB / 0.5211 GB, free: 34.36 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.424e-05/0.8845, allocations: 35.98 kB / 0.5211 GB, free: 34.32 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002659/0.8871, allocations: 1.264 MB / 0.5224 GB, free: 33.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003147/0.8903, allocations: 0.819 MB / 0.5232 GB, free: 32.2 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01464/0.905, allocations: 20.74 MB / 0.5434 GB, free: 10 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003486/0.9085, allocations: 187.9 kB / 0.5436 GB, free: 9.816 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006891/0.9092, allocations: 156 kB / 0.5438 GB, free: 9.664 MB / 382.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.004472/0.9137, allocations: 2.184 MB / 0.5459 GB, free: 7.469 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00129/0.915, allocations: 446.5 kB / 0.5463 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009823/0.9248, allocations: 6.053 MB / 0.5522 GB, free: 0.793 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.9249, allocations: 32 kB / 0.5523 GB, free: 0.7617 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.571e-05/0.925, allocations: 16 kB / 0.5523 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.259e-05/0.925, allocations: 15.94 kB / 0.5523 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02474/0.9497, allocations: 12.36 MB / 0.5644 GB, free: 4.148 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.835e-05/0.9498, allocations: 4 kB / 0.5644 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002156/0.952, allocations: 455.7 kB / 0.5648 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004201/0.9562, allocations: 1.628 MB / 0.5664 GB, free: 2.02 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004802/0.9567, allocations: 75.97 kB / 0.5665 GB, free: 1.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02872/0.9854, allocations: 30.18 MB / 0.5959 GB, free: 1.648 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.769e-06/0.9855, allocations: 4 kB / 0.5959 GB, free: 1.645 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0159/1.001, allocations: 8.645 MB / 0.6044 GB, free: 8.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002525/1.004, allocations: 0.9173 MB / 0.6053 GB, free: 7.809 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001127/1.005, allocations: 71.92 kB / 0.6054 GB, free: 7.738 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002398/1.007, allocations: 183.8 kB / 0.6055 GB, free: 7.559 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007347/1.008, allocations: 273.9 kB / 0.6058 GB, free: 7.289 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000262/1.009, allocations: 87.97 kB / 0.6059 GB, free: 7.203 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005093/1.014, allocations: 2.721 MB / 0.6085 GB, free: 4.477 MB / 446.1 MB Notification: Performance of sort global known variables: time 2e-07/1.014, allocations: 0 / 0.6085 GB, free: 4.477 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005509/1.019, allocations: 1.331 MB / 0.6098 GB, free: 3.148 MB / 446.1 MB 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.0008155/1.02, allocations: 265.8 kB / 0.6101 GB, free: 2.879 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.1819/1.202, allocations: 6.319 MB / 0.6163 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.202, allocations: 1.188 kB / 0.6163 GB, free: 150.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006786/1.209, allocations: 4.778 MB / 0.6209 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007699/1.216, allocations: 1.265 MB / 0.6222 GB, free: 148.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03887/1.255, allocations: 16.27 MB / 0.638 GB, free: 139.4 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009905/1.265, allocations: 4.487 MB / 0.6424 GB, free: 137.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.007609/1.273, allocations: 1.057 MB / 0.6435 GB, free: 137.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001855/1.275, allocations: 268.4 kB / 0.6437 GB, free: 137.7 MB / 446.1 MB Notification: Performance of SimCode: time 1.403e-06/1.275, allocations: 0 / 0.6437 GB, free: 137.7 MB / 446.1 MB Notification: Performance of Templates: time 0.1505/1.425, allocations: 71.2 MB / 0.7133 GB, free: 68.12 MB / 446.1 MB 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)