Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001599/0.001599, allocations: 195.4 kB / 16.53 MB, free: 6.664 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.683/1.683, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.001756/0.001757, allocations: 59.92 kB / 278.7 MB, free: 12.33 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4078/0.4096, allocations: 46.62 MB / 325.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01842/0.4281, allocations: 11.61 MB / 336.9 MB, free: 8.289 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01392/0.4421, allocations: 3.957 MB / 340.9 MB, free: 4.316 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004736/0.4469, allocations: 63.69 kB / 340.9 MB, free: 4.254 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0038/0.4508, allocations: 0.8575 MB / 341.8 MB, free: 3.391 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006778/0.4576, allocations: 0.959 MB / 342.8 MB, free: 2.426 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002665/0.4603, allocations: 0.5149 MB / 343.3 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007289/0.4676, allocations: 3.282 MB / 346.6 MB, free: 14.61 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004851/0.4725, allocations: 2.981 MB / 349.5 MB, free: 11.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003752/0.4763, allocations: 1.518 MB / 351.1 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004582/0.4809, allocations: 1.981 MB / 353 MB, free: 8.062 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001305/0.4823, allocations: 420 kB / 353.4 MB, free: 7.652 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002085/0.4844, allocations: 0.5233 MB / 354 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001581/0.486, allocations: 1.216 MB / 355.2 MB, free: 5.91 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00376/0.4897, allocations: 1.894 MB / 357.1 MB, free: 4.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00774/0.4975, allocations: 5.433 MB / 362.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/0.4976, allocations: 0 / 362.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.4976, allocations: 0 / 362.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002464/0.4978, allocations: 0 / 362.5 MB, free: 14.56 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.0126/0.5105, allocations: 3.817 MB / 366.3 MB, free: 10.67 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.394e-05/0.5106, allocations: 11.89 kB / 366.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001636/0.5122, allocations: 392.6 kB / 366.7 MB, free: 10.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004625/0.5169, allocations: 1.927 MB / 368.7 MB, free: 8.293 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002512/0.5171, allocations: 226 kB / 368.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005438/0.5177, allocations: 280 kB / 369.1 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009165/0.5269, allocations: 3.689 MB / 372.8 MB, free: 4.035 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001051/0.5271, allocations: 19.89 kB / 372.9 MB, free: 4.016 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003012/0.5274, allocations: 116 kB / 373 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001858/0.5276, allocations: 137.5 kB / 373.1 MB, free: 3.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006857/0.5344, allocations: 3.109 MB / 376.2 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02648/0.561, allocations: 11.63 MB / 387.8 MB, free: 4.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003048/0.5641, allocations: 1.913 MB / 389.8 MB, free: 2.637 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001808/0.5659, allocations: 1.092 MB / 390.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00039/0.5663, allocations: 215.7 kB / 391.1 MB, free: 1.289 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.972e-05/0.5664, allocations: 51.44 kB / 391.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 4.96e-06/0.5664, allocations: 0 / 391.1 MB, free: 1.23 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.0146/0.581, allocations: 6.504 MB / 397.6 MB, free: 10.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.362e-05/0.5812, allocations: 68.7 kB / 397.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004413/0.5856, allocations: 1.994 MB / 399.7 MB, free: 8.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004897/0.5861, allocations: 45.7 kB / 399.7 MB, free: 8.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001785/0.5879, allocations: 1.412 MB / 401.1 MB, free: 7 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008729/0.5888, allocations: 492.9 kB / 401.6 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006665/0.5895, allocations: 323.3 kB / 401.9 MB, free: 6.191 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.5896, allocations: 305.1 kB / 402.2 MB, free: 5.891 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.5912, allocations: 0.8237 MB / 403.1 MB, free: 5.066 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.5932, allocations: 1.371 MB / 404.4 MB, free: 3.453 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003788/0.597, allocations: 2.372 MB / 406.8 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.434e-05/0.597, allocations: 4 kB / 406.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.006266/0.6033, allocations: 2.85 MB / 409.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.791e-05/0.6034, allocations: 15.94 kB / 409.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.329e-05/0.6034, allocations: 20 kB / 409.7 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.6044, allocations: 395.5 kB / 410.1 MB, free: 13.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001667/0.6061, allocations: 435.3 kB / 410.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007464/0.6136, allocations: 6.697 MB / 417.2 MB, free: 5.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002971/0.6166, allocations: 131.8 kB / 417.3 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003157/0.617, allocations: 79.98 kB / 417.4 MB, free: 5.758 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002733/0.6197, allocations: 0.912 MB / 418.3 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007029/0.6204, allocations: 209.3 kB / 418.5 MB, free: 4.629 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004623/0.625, allocations: 2.421 MB / 420.9 MB, free: 2.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.6251, allocations: 15.94 kB / 421 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.6251, allocations: 4 kB / 421 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.569e-05/0.6251, allocations: 7.969 kB / 421 MB, free: 2.133 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0117/0.6368, allocations: 5.524 MB / 426.5 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.717e-05/0.6369, allocations: 8.031 kB / 426.5 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00121/0.6381, allocations: 267.5 kB / 426.8 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.6393, allocations: 403.5 kB / 427.1 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001167/0.6394, allocations: 39.98 kB / 427.2 MB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008306/0.6477, allocations: 8.252 MB / 435.4 MB, free: 2.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.29e-06/0.6478, allocations: 4 kB / 435.4 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006147/0.6539, allocations: 3.613 MB / 439.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001423/0.6554, allocations: 466.4 kB / 439.5 MB, free: 14.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003555/0.6558, allocations: 32 kB / 439.5 MB, free: 14.7 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/0.6569, allocations: 91.88 kB / 439.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002965/0.6572, allocations: 105.1 kB / 439.7 MB, free: 14.51 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.182e-05/0.6573, allocations: 44.09 kB / 439.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002219/0.6595, allocations: 1.365 MB / 441.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6595, allocations: 0 / 441.1 MB, free: 13.08 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002506/0.662, allocations: 0.543 MB / 441.7 MB, free: 12.54 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000477/0.6625, allocations: 195.4 kB / 441.9 MB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006022/0.6686, allocations: 3.203 MB / 445.1 MB, free: 9.074 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.045e-05/0.6686, allocations: 4.062 kB / 445.1 MB, free: 9.07 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002445/0.6711, allocations: 1.487 MB / 446.6 MB, free: 7.531 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003192/0.6743, allocations: 0.5406 MB / 447.1 MB, free: 6.988 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0136/0.6879, allocations: 5.739 MB / 452.9 MB, free: 1.168 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2735/0.9615, allocations: 2.194 MB / 455 MB, free: 110.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004619/0.9662, allocations: 0.4958 MB / 455.5 MB, free: 110.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001247/0.9675, allocations: 153.1 kB / 455.7 MB, free: 110.1 MB / 382.1 MB Notification: Performance of SimCode: time 2.474e-06/0.9676, allocations: 0 / 455.7 MB, free: 110.1 MB / 382.1 MB Notification: Performance of Templates: time 0.06764/1.035, allocations: 29.54 MB / 485.2 MB, free: 88.85 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)