Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001684/0.001684, allocations: 196.9 kB / 16.26 MB, free: 6.625 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.318/1.318, allocations: 205.1 MB / 222.1 MB, free: 4.594 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.001141/0.001141, allocations: 55.92 kB / 278.2 MB, free: 12.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2193, allocations: 46.62 MB / 324.9 MB, free: 2.301 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase): time 0.0261/0.2454, allocations: 27.45 MB / 352.3 MB, free: 8.68 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01505/0.2605, allocations: 7.61 MB / 359.9 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004727/0.2653, allocations: 163.2 kB / 360.1 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004601/0.2699, allocations: 1.644 MB / 361.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007656/0.2776, allocations: 2.385 MB / 364.1 MB, free: 12.83 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.2816, allocations: 1.556 MB / 365.7 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01455/0.2961, allocations: 12.87 MB / 378.5 MB, free: 14.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01301/0.3092, allocations: 10.95 MB / 389.5 MB, free: 3.277 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009556/0.3188, allocations: 5.631 MB / 395.1 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01012/0.329, allocations: 6.722 MB / 401.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004349/0.3333, allocations: 1.66 MB / 403.5 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005447/0.3388, allocations: 1.871 MB / 405.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004392/0.3432, allocations: 3.787 MB / 409.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01145/0.3547, allocations: 6.894 MB / 416.1 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02591/0.3806, allocations: 21.45 MB / 437.5 MB, free: 3.125 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.088e-05/0.3807, allocations: 3.938 kB / 437.5 MB, free: 3.121 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3807, allocations: 0 / 437.5 MB, free: 3.121 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0007438/0.3815, allocations: 0 / 437.5 MB, free: 3.121 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2681 * Number of variables: 2681 Notification: Performance of Generate backend data structure: time 0.04026/0.4218, allocations: 13.17 MB / 450.7 MB, free: 5.832 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.909e-05/0.4218, allocations: 11.89 kB / 450.7 MB, free: 5.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01392/0.4358, allocations: 2.321 MB / 453 MB, free: 3.484 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3208/0.7566, allocations: 7.334 MB / 460.3 MB, free: 95.32 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007367/0.7574, allocations: 0.7445 MB / 461.1 MB, free: 94.98 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003475/0.7609, allocations: 0.9891 MB / 462.1 MB, free: 94.66 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02504/0.786, allocations: 14.42 MB / 476.5 MB, free: 87.66 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001859/0.7862, allocations: 14.06 kB / 476.5 MB, free: 87.66 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009347/0.7871, allocations: 413.9 kB / 476.9 MB, free: 87.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002677/0.7874, allocations: 458.3 kB / 477.4 MB, free: 87.27 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01886/0.8063, allocations: 12.53 MB / 489.9 MB, free: 75.4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06296/0.8693, allocations: 44.08 MB / 0.5215 GB, free: 31.14 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01974/0.889, allocations: 25.08 MB / 0.5459 GB, free: 3.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007518/0.8966, allocations: 4.937 MB / 0.5508 GB, free: 14.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02114/0.9178, allocations: 12.19 MB / 0.5627 GB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.855e-05/0.9179, allocations: 85.77 kB / 0.5628 GB, free: 2.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=425): time 5.56e-06/0.9179, allocations: 0 / 0.5628 GB, free: 2.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=431): time 0.04907/0.967, allocations: 21.95 MB / 0.5842 GB, free: 12.22 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.33e-05/0.9671, allocations: 98.8 kB / 0.5843 GB, free: 12.11 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008248/0.9753, allocations: 5.398 MB / 0.5895 GB, free: 6.73 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007081/0.9761, allocations: 101.6 kB / 0.5896 GB, free: 6.625 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002849/0.9789, allocations: 4.462 MB / 0.594 GB, free: 2.137 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001373/0.9803, allocations: 1.448 MB / 0.5954 GB, free: 0.6836 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001323/0.9817, allocations: 0.8757 MB / 0.5963 GB, free: 15.79 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.208e-05/0.9818, allocations: 305.1 kB / 0.5966 GB, free: 15.49 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003637/0.9854, allocations: 2.434 MB / 0.5989 GB, free: 13.05 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004319/0.9897, allocations: 3.691 MB / 0.6025 GB, free: 8.832 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008646/0.9984, allocations: 6.335 MB / 0.6087 GB, free: 1.977 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.321e-05/0.9985, allocations: 8 kB / 0.6087 GB, free: 1.969 MB / 446.1 MB Notification: Performance of matching and sorting (n=634) (initialization): time 0.219/1.217, allocations: 8.233 MB / 0.6168 GB, free: 143.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.246e-05/1.218, allocations: 18.75 kB / 0.6168 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.237e-05/1.218, allocations: 40.91 kB / 0.6168 GB, free: 143.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003211/1.221, allocations: 1.541 MB / 0.6183 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003586/1.224, allocations: 1.013 MB / 0.6193 GB, free: 143.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02056/1.245, allocations: 29.3 MB / 0.6479 GB, free: 119 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/1.25, allocations: 227.1 kB / 0.6482 GB, free: 118.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000854/1.251, allocations: 203.3 kB / 0.6484 GB, free: 118.9 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 166 * Number of states: 0 () * Number of discrete variables: 16 (idealCloser3.control[3],idealCloser3.control[2],idealCloser3.control[1],idealCloserM.control[5],idealCloserM.control[4],idealCloserM.control[3],idealCloserM.control[2],idealCloserM.control[1],rheostat3.booleanStep[3].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[1].y,rheostatM.booleanStep[5].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (546): * Single equations (assignments): 530 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 14 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(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): 14 systems {(1,1,100.0%), (1,5,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,1,100.0%), (4,22,68.8%), (2,6,100.0%), (2,6,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.006313/1.257, allocations: 3.301 MB / 0.6516 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001336/1.259, allocations: 0.5738 MB / 0.6521 GB, free: 117.3 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01185/1.271, allocations: 7.959 MB / 0.6599 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.668e-05/1.271, allocations: 53.25 kB / 0.66 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.075e-05/1.271, allocations: 27.81 kB / 0.66 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.406e-05/1.271, allocations: 20.2 kB / 0.66 GB, free: 113.7 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02445/1.295, allocations: 16.73 MB / 0.6763 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.578e-05/1.295, allocations: 0 / 0.6763 GB, free: 98.39 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001904/1.297, allocations: 471.5 kB / 0.6768 GB, free: 97.94 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004858/1.302, allocations: 2.365 MB / 0.6791 GB, free: 95.54 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000312/1.302, allocations: 95.97 kB / 0.6792 GB, free: 95.45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03017/1.333, allocations: 38.09 MB / 0.7164 GB, free: 55.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.638e-06/1.333, allocations: 3.938 kB / 0.7164 GB, free: 55.93 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01524/1.348, allocations: 11.37 MB / 0.7275 GB, free: 44.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002709/1.351, allocations: 1.197 MB / 0.7287 GB, free: 43.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008552/1.352, allocations: 88 kB / 0.7288 GB, free: 43.23 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002433/1.354, allocations: 227.8 kB / 0.729 GB, free: 43.01 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001042/1.355, allocations: 418.9 kB / 0.7294 GB, free: 42.59 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002369/1.355, allocations: 123.9 kB / 0.7295 GB, free: 42.47 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005261/1.361, allocations: 3.69 MB / 0.7331 GB, free: 38.81 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/1.361, allocations: 0 / 0.7331 GB, free: 38.81 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.006595/1.367, allocations: 1.881 MB / 0.7349 GB, free: 36.93 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 14 (aimsM.inertiaRotor.w,aimsM.stator.core.Phi.re,aimsM.stator.core.Phi.im,aimsM.rotor.zeroInductor.i0,aimsM.rotor.core.Phi.re,aimsM.rotor.core.Phi.im,aims3.inertiaRotor.w,aims3.stator.core.Phi.re,aims3.stator.core.Phi.im,aims3.rotor.zeroInductor.i0,aims3.rotor.core.Phi.re,aims3.rotor.core.Phi.im,quadraticLoadTorqueM.phi,quadraticLoadTorque3.phi) * Number of discrete variables: 16 (rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[4].y,rheostatM.booleanStep[5].y,rheostat3.booleanStep[1].y,rheostat3.booleanStep[2].y,rheostat3.booleanStep[3].y,idealCloserM.control[1],idealCloserM.control[2],idealCloserM.control[3],idealCloserM.control[4],idealCloserM.control[5],idealCloser3.control[1],idealCloser3.control[2],idealCloser3.control[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (245): * Single equations (assignments): 232 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,5,100.0%), (6,46,72.2%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (11,56,49.6%), (1,8,100.0%), (1,8,100.0%), (2,12,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.0008195/1.368, allocations: 239 kB / 0.7352 GB, free: 36.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02289/1.391, allocations: 12.27 MB / 0.7471 GB, free: 24.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 8.786e-06/1.391, allocations: 0 / 0.7471 GB, free: 24.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007376/1.398, allocations: 5.73 MB / 0.7527 GB, free: 18.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007168/1.406, allocations: 1.685 MB / 0.7544 GB, free: 16.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03232/1.438, allocations: 22.96 MB / 0.7768 GB, free: 9.691 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007628/1.446, allocations: 6.385 MB / 0.783 GB, free: 3.266 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004853/1.45, allocations: 1.295 MB / 0.7843 GB, free: 1.965 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001007/1.451, allocations: 351.4 kB / 0.7846 GB, free: 1.621 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/1.452, allocations: 0 / 0.7846 GB, free: 1.621 MB / 462.1 MB Notification: Performance of Templates: time 0.3352/1.787, allocations: 99.01 MB / 0.8813 GB, free: 69.6 MB / 462.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMS_Start_MultiPhase.pipe 2>&1)