Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.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.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009398/0.0009399, allocations: 92.41 kB / 16.3 MB, free: 5.996 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.0009876/0.0009878, allocations: 184.4 kB / 17.2 MB, free: 5.91 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.581/1.581, allocations: 205.4 MB / 223.4 MB, free: 5.535 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.0004785/0.0004786, allocations: 16 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2906/0.2911, allocations: 47.58 MB / 327.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.01662/0.3077, allocations: 12.81 MB / 340.5 MB, free: 6.68 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01424/0.322, allocations: 5.145 MB / 345.7 MB, free: 1.523 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004558/0.3266, allocations: 87.56 kB / 345.7 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004291/0.331, allocations: 0.9404 MB / 346.7 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007644/0.3387, allocations: 1.379 MB / 348.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00366/0.3423, allocations: 0.7328 MB / 348.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.007324/0.3497, allocations: 2.692 MB / 351.5 MB, free: 11.67 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005019/0.3547, allocations: 2.532 MB / 354 MB, free: 9.098 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00284/0.3576, allocations: 1.257 MB / 355.3 MB, free: 7.836 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00342/0.3611, allocations: 1.595 MB / 356.9 MB, free: 6.234 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001115/0.3622, allocations: 200 kB / 357.1 MB, free: 6.039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002142/0.3644, allocations: 391.7 kB / 357.5 MB, free: 5.656 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001621/0.366, allocations: 0.8605 MB / 358.3 MB, free: 4.793 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001863/0.3679, allocations: 0.7575 MB / 359.1 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007143/0.375, allocations: 5.516 MB / 364.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.921e-06/0.3751, allocations: 0 / 364.6 MB, free: 14.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.3751, allocations: 3.938 kB / 364.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002533/0.3754, allocations: 0 / 364.6 MB, free: 14.49 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01088/0.3862, allocations: 3.944 MB / 368.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.3863, allocations: 11.97 kB / 368.5 MB, free: 10.46 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00369/0.39, allocations: 0.6706 MB / 369.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006114/0.3961, allocations: 2.291 MB / 371.5 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003986/0.3966, allocations: 270.9 kB / 371.8 MB, free: 7.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001357/0.3979, allocations: 343.9 kB / 372.1 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01072/0.4087, allocations: 4.402 MB / 376.5 MB, free: 2.387 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.701e-05/0.4088, allocations: 11.92 kB / 376.5 MB, free: 2.375 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003182/0.4091, allocations: 136 kB / 376.7 MB, free: 2.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001631/0.4093, allocations: 166.7 kB / 376.8 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006685/0.416, allocations: 3.716 MB / 380.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02759/0.4436, allocations: 14.48 MB / 395 MB, free: 15.45 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00592/0.4496, allocations: 5.36 MB / 400.4 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006867/0.4565, allocations: 3.209 MB / 403.6 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.113e-05/0.4566, allocations: 47.86 kB / 403.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of pre-optimization done (n=138): time 4.268e-06/0.4566, allocations: 0 / 403.6 MB, free: 6.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=143): time 0.01222/0.4688, allocations: 5.766 MB / 409.4 MB, free: 128 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.4689, allocations: 64.72 kB / 409.5 MB, free: 52 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004215/0.4731, allocations: 1.999 MB / 411.5 MB, free: 14.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.4733, allocations: 53.7 kB / 411.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00145/0.4747, allocations: 1.642 MB / 413.2 MB, free: 12.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005139/0.4753, allocations: 0.4929 MB / 413.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.4754, allocations: 40 kB / 413.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002517/0.4757, allocations: 385.9 kB / 414.1 MB, free: 11.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.477, allocations: 0.7457 MB / 414.8 MB, free: 10.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001861/0.4789, allocations: 1.357 MB / 416.2 MB, free: 8.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/0.4808, allocations: 0.9863 MB / 417.2 MB, free: 8.008 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.462e-05/0.4808, allocations: 8 kB / 417.2 MB, free: 8 MB / 350.1 MB Notification: Performance of matching and sorting (n=242) (initialization): time 0.004752/0.4856, allocations: 2.58 MB / 419.7 MB, free: 5.383 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.4856, allocations: 12 kB / 419.7 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-05/0.4857, allocations: 20 kB / 419.8 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000461/0.4862, allocations: 147 kB / 419.9 MB, free: 5.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001863/0.488, allocations: 487.2 kB / 420.4 MB, free: 4.723 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003022/0.4911, allocations: 3.09 MB / 423.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001842/0.4929, allocations: 116 kB / 423.6 MB, free: 1.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002168/0.4932, allocations: 87.98 kB / 423.7 MB, free: 1.164 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 89 * 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 (235): * Single equations (assignments): 232 * 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: 2 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002479/0.4957, allocations: 1.048 MB / 424.7 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000641/0.4963, allocations: 209.4 kB / 424.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004426/0.5007, allocations: 2.294 MB / 427.2 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.55e-05/0.5008, allocations: 12 kB / 427.2 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.931e-05/0.5008, allocations: 8 kB / 427.2 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.675e-05/0.5008, allocations: 11.91 kB / 427.3 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01109/0.5119, allocations: 5.413 MB / 432.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.626e-06/0.512, allocations: 0 / 432.7 MB, free: 7.949 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/0.5131, allocations: 251.8 kB / 432.9 MB, free: 7.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007154/0.5138, allocations: 275.3 kB / 433.2 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001235/0.514, allocations: 32 kB / 433.2 MB, free: 7.391 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007232/0.5212, allocations: 7.163 MB / 440.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.5213, allocations: 8.094 kB / 440.4 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005978/0.5272, allocations: 3.521 MB / 443.9 MB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001535/0.5288, allocations: 466.2 kB / 444.4 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007501/0.5296, allocations: 31.98 kB / 444.4 MB, free: 11.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001648/0.5312, allocations: 75.92 kB / 444.5 MB, free: 11.39 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002867/0.5316, allocations: 101.1 kB / 444.6 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.5317, allocations: 43.98 kB / 444.6 MB, free: 11.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002746/0.5344, allocations: 1.348 MB / 446 MB, free: 9.879 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5344, allocations: 0 / 446 MB, free: 9.879 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002827/0.5373, allocations: 0.5704 MB / 446.5 MB, free: 9.309 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 6 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.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 (123): * Single equations (assignments): 119 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004179/0.5377, allocations: 171.3 kB / 446.7 MB, free: 9.129 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004007/0.5417, allocations: 2.178 MB / 448.9 MB, free: 6.906 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.5417, allocations: 0 / 448.9 MB, free: 6.906 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002436/0.5442, allocations: 1.432 MB / 450.3 MB, free: 5.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002593/0.5468, allocations: 0.4988 MB / 450.8 MB, free: 4.922 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1871/0.7339, allocations: 7.418 MB / 458.2 MB, free: 107.8 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002854/0.7368, allocations: 2.487 MB / 460.7 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00204/0.7389, allocations: 0.4982 MB / 461.2 MB, free: 107 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004796/0.7394, allocations: 154.1 kB / 461.4 MB, free: 107 MB / 382.1 MB Notification: Performance of SimCode: time 1.383e-06/0.7394, allocations: 0 / 461.4 MB, free: 107 MB / 382.1 MB Notification: Performance of Templates: time 0.04587/0.7853, allocations: 25.97 MB / 487.3 MB, free: 87.46 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1) Environment - environmentSimulation: