Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001448/0.001448, allocations: 110.4 kB / 17.06 MB, free: 6.023 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.00149/0.00149, allocations: 191 kB / 17.99 MB, free: 5.109 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.566/1.566, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.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.001116/0.001116, allocations: 52.41 kB / 327.9 MB, free: 3.301 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09692, allocations: 46.62 MB / 374.5 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.2726/0.3695, allocations: 11.6 MB / 386.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0104/0.38, allocations: 3.957 MB / 390.1 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004014/0.3841, allocations: 67.06 kB / 390.1 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003595/0.3878, allocations: 0.859 MB / 391 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006044/0.3939, allocations: 0.9533 MB / 391.9 MB, free: 3.23 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002216/0.3961, allocations: 0.5213 MB / 392.5 MB, free: 2.902 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006522/0.4026, allocations: 3.298 MB / 395.8 MB, free: 1.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004415/0.4071, allocations: 2.982 MB / 398.7 MB, free: 0 / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004148/0.4112, allocations: 1.531 MB / 400.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005215/0.4165, allocations: 1.969 MB / 402.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001427/0.4179, allocations: 422.6 kB / 402.6 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002288/0.4202, allocations: 0.5199 MB / 403.2 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00169/0.4219, allocations: 1.226 MB / 404.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004016/0.426, allocations: 1.879 MB / 406.3 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009429/0.4354, allocations: 5.52 MB / 411.8 MB, free: 8.379 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.959e-06/0.4355, allocations: 3.938 kB / 411.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.4355, allocations: 0 / 411.8 MB, free: 8.375 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002415/0.4357, allocations: 0 / 411.8 MB, free: 8.375 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.01298/0.4487, allocations: 3.809 MB / 415.6 MB, free: 5.77 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/0.4488, allocations: 13.48 kB / 415.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001566/0.4504, allocations: 399.2 kB / 416 MB, free: 5.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004827/0.4552, allocations: 1.94 MB / 417.9 MB, free: 4.047 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001984/0.4554, allocations: 218.2 kB / 418.2 MB, free: 3.832 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000498/0.4559, allocations: 283.8 kB / 418.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007281/0.4632, allocations: 3.698 MB / 422.1 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.674e-05/0.4633, allocations: 11.91 kB / 422.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000305/0.4636, allocations: 116 kB / 422.3 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000155/0.4638, allocations: 141.4 kB / 422.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005886/0.4697, allocations: 3.109 MB / 425.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02291/0.4926, allocations: 11.5 MB / 437 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002788/0.4955, allocations: 1.908 MB / 438.9 MB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001804/0.4973, allocations: 1.077 MB / 440 MB, free: 13.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003335/0.4977, allocations: 203.2 kB / 440.2 MB, free: 13.22 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.4977, allocations: 47.5 kB / 440.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=125): time 3.897e-06/0.4977, allocations: 0 / 440.2 MB, free: 13.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=140): time 0.01513/0.5129, allocations: 6.527 MB / 446.8 MB, free: 6.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/0.513, allocations: 64.72 kB / 446.8 MB, free: 6.426 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005043/0.518, allocations: 1.995 MB / 448.8 MB, free: 4.391 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002168/0.5183, allocations: 49.7 kB / 448.9 MB, free: 4.336 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/0.5198, allocations: 1.416 MB / 450.3 MB, free: 2.902 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006482/0.5205, allocations: 481 kB / 450.8 MB, free: 2.426 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007745/0.5212, allocations: 327.2 kB / 451.1 MB, free: 2.098 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.5214, allocations: 305.1 kB / 451.4 MB, free: 1.797 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001571/0.523, allocations: 0.8199 MB / 452.2 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002432/0.5254, allocations: 1.383 MB / 453.6 MB, free: 15.34 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004285/0.5297, allocations: 2.372 MB / 456 MB, free: 12.73 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.602e-05/0.5298, allocations: 4 kB / 456 MB, free: 12.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005973/0.5357, allocations: 2.85 MB / 458.8 MB, free: 9.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.432e-05/0.5358, allocations: 20.08 kB / 458.8 MB, free: 9.812 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.677e-05/0.5359, allocations: 20 kB / 458.8 MB, free: 9.793 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.5369, allocations: 379.2 kB / 459.2 MB, free: 9.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.5385, allocations: 435.3 kB / 459.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00673/0.5453, allocations: 6.71 MB / 466.3 MB, free: 1.859 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002399/0.5477, allocations: 127.8 kB / 466.5 MB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000159/0.5479, allocations: 79.98 kB / 466.6 MB, free: 1.656 MB / 382.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.002099/0.55, allocations: 0.9116 MB / 467.5 MB, free: 0.7344 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005953/0.5506, allocations: 213.3 kB / 467.7 MB, free: 0.5234 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004318/0.5549, allocations: 2.417 MB / 470.1 MB, free: 14.07 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.555, allocations: 12 kB / 470.1 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/0.555, allocations: 7.938 kB / 470.1 MB, free: 14.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.536e-05/0.555, allocations: 7.969 kB / 470.1 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009623/0.5646, allocations: 5.509 MB / 475.6 MB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.5647, allocations: 8.062 kB / 475.6 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/0.5658, allocations: 259.6 kB / 475.9 MB, free: 8.113 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009938/0.5668, allocations: 403.7 kB / 476.3 MB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.731e-05/0.5669, allocations: 39.98 kB / 476.3 MB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007753/0.5746, allocations: 8.247 MB / 484.6 MB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.5747, allocations: 7.938 kB / 484.6 MB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006157/0.5808, allocations: 3.603 MB / 488.2 MB, free: 11.15 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001322/0.5822, allocations: 458.6 kB / 488.6 MB, free: 10.68 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002615/0.5824, allocations: 35.98 kB / 488.7 MB, free: 10.64 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001114/0.5836, allocations: 99.83 kB / 488.8 MB, free: 10.55 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002698/0.5839, allocations: 101 kB / 488.9 MB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.418e-05/0.584, allocations: 47.98 kB / 488.9 MB, free: 10.4 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00243/0.5864, allocations: 1.357 MB / 490.3 MB, free: 9.02 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.31e-07/0.5864, allocations: 4 kB / 490.3 MB, free: 9.016 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00291/0.5893, allocations: 0.5391 MB / 490.8 MB, free: 8.477 MB / 414.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.0006695/0.59, allocations: 194.2 kB / 491 MB, free: 8.281 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004693/0.5947, allocations: 2.512 MB / 493.5 MB, free: 5.711 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.346e-06/0.5947, allocations: 0 / 493.5 MB, free: 5.711 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002265/0.597, allocations: 1.487 MB / 495 MB, free: 4.176 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002971/0.6, allocations: 0.5399 MB / 495.5 MB, free: 3.633 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01273/0.6128, allocations: 5.657 MB / 0.4894 GB, free: 13.89 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002488/0.6153, allocations: 2.209 MB / 0.4916 GB, free: 11.65 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001951/0.6173, allocations: 0.494 MB / 0.4921 GB, free: 11.15 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004546/0.6177, allocations: 147.4 kB / 0.4922 GB, free: 11.01 MB / 430.1 MB Notification: Performance of SimCode: time 1.753e-06/0.6178, allocations: 0 / 0.4922 GB, free: 11.01 MB / 430.1 MB Notification: Performance of Templates: time 0.06374/0.6815, allocations: 30.12 MB / 0.5216 GB, free: 12.84 MB / 462.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)