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.001091/0.001092, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001051/0.001051, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.351/1.351, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001269/0.001269, allocations: 51.94 kB / 279.3 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09811/0.09939, allocations: 46.63 MB / 326 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0188/0.1182, allocations: 15.63 MB / 341.6 MB, free: 5.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.1293, allocations: 5.323 MB / 346.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003169/0.1326, allocations: 87.56 kB / 347 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003971/0.1366, allocations: 0.9637 MB / 348 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005114/0.1417, allocations: 1.209 MB / 349.2 MB, free: 13.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003019/0.1447, allocations: 0.8889 MB / 350.1 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005836/0.1506, allocations: 4.084 MB / 354.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003827/0.1545, allocations: 2.993 MB / 357.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002306/0.1568, allocations: 1.572 MB / 358.7 MB, free: 3.922 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003033/0.1598, allocations: 2.128 MB / 360.8 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008887/0.1608, allocations: 312 kB / 361.2 MB, free: 1.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00169/0.1625, allocations: 0.5388 MB / 361.7 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001034/0.1635, allocations: 1.067 MB / 362.8 MB, free: 15.87 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002642/0.1662, allocations: 2.017 MB / 364.8 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006835/0.173, allocations: 6.655 MB / 371.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1731, allocations: 0 / 371.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1731, allocations: 0 / 371.4 MB, free: 7.168 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001658/0.1732, allocations: 0 / 371.4 MB, free: 7.168 MB / 318.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.01405/0.1873, allocations: 4.65 MB / 376.1 MB, free: 2.445 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.333e-05/0.1874, allocations: 8.031 kB / 376.1 MB, free: 2.438 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003362/0.1907, allocations: 0.6831 MB / 376.8 MB, free: 1.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1621/0.3529, allocations: 2.329 MB / 379.1 MB, free: 48.82 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002296/0.3531, allocations: 270.5 kB / 379.4 MB, free: 48.81 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007508/0.3539, allocations: 348.8 kB / 379.7 MB, free: 48.81 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008607/0.3625, allocations: 4.454 MB / 384.2 MB, free: 47.09 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.614e-05/0.3626, allocations: 7.531 kB / 384.2 MB, free: 47.09 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003043/0.3629, allocations: 139.9 kB / 384.3 MB, free: 46.98 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001585/0.3631, allocations: 167.3 kB / 384.5 MB, free: 46.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006853/0.37, allocations: 3.735 MB / 388.2 MB, free: 45.57 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02001/0.39, allocations: 14.49 MB / 402.7 MB, free: 35.91 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003785/0.3938, allocations: 5.366 MB / 408.1 MB, free: 30.87 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.3955, allocations: 1.276 MB / 409.3 MB, free: 29.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005399/0.4009, allocations: 3.806 MB / 413.1 MB, free: 25.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.401, allocations: 48.97 kB / 413.2 MB, free: 25.88 MB / 318.1 MB Notification: Performance of pre-optimization done (n=127): time 3.226e-06/0.401, allocations: 0 / 413.2 MB, free: 25.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=131): time 0.008156/0.4091, allocations: 5.471 MB / 418.7 MB, free: 20.23 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.524e-05/0.4092, allocations: 64.72 kB / 418.7 MB, free: 20.16 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002607/0.4118, allocations: 2.102 MB / 420.8 MB, free: 18.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001152/0.4119, allocations: 45.7 kB / 420.9 MB, free: 17.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007222/0.4127, allocations: 1.656 MB / 422.5 MB, free: 16.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002554/0.4129, allocations: 464.6 kB / 423 MB, free: 15.86 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003923/0.4133, allocations: 344.7 kB / 423.3 MB, free: 15.52 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.485e-05/0.4134, allocations: 305.1 kB / 423.6 MB, free: 15.22 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009041/0.4143, allocations: 0.7145 MB / 424.3 MB, free: 14.5 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001085/0.4154, allocations: 1.349 MB / 425.7 MB, free: 12.87 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002084/0.4175, allocations: 2.229 MB / 427.9 MB, free: 10.36 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.794e-06/0.4175, allocations: 4 kB / 427.9 MB, free: 10.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003209/0.4207, allocations: 2.514 MB / 430.4 MB, free: 7.801 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.4207, allocations: 16.09 kB / 430.4 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.288e-05/0.4208, allocations: 24 kB / 430.5 MB, free: 7.762 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003466/0.4211, allocations: 134.5 kB / 430.6 MB, free: 7.621 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00146/0.4226, allocations: 475.2 kB / 431.1 MB, free: 7.156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001769/0.4244, allocations: 3.082 MB / 434.1 MB, free: 3.805 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001587/0.426, allocations: 107.8 kB / 434.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001123/0.4261, allocations: 87.98 kB / 434.3 MB, free: 3.613 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 2 * 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001602/0.4277, allocations: 1.044 MB / 435.4 MB, free: 2.559 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003476/0.4281, allocations: 221.3 kB / 435.6 MB, free: 2.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/0.431, allocations: 2.173 MB / 437.8 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.786e-06/0.431, allocations: 12 kB / 437.8 MB, free: 104 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.431, allocations: 4 kB / 437.8 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.431, allocations: 13.94 kB / 437.8 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008846/0.4399, allocations: 5.167 MB / 443 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.159e-05/0.4399, allocations: 4 kB / 443 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001084/0.441, allocations: 232 kB / 443.2 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007829/0.4418, allocations: 267.2 kB / 443.5 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.216e-05/0.4419, allocations: 35.98 kB / 443.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006329/0.4483, allocations: 7.111 MB / 450.6 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.023e-05/0.4483, allocations: 4 kB / 450.6 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004759/0.4531, allocations: 3.183 MB / 453.8 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009347/0.4541, allocations: 450.7 kB / 454.2 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00027/0.4543, allocations: 28 kB / 454.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009744/0.4553, allocations: 67.92 kB / 454.3 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002319/0.4556, allocations: 104.7 kB / 454.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.001e-05/0.4557, allocations: 39.94 kB / 454.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002486/0.4581, allocations: 1.431 MB / 455.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4582, allocations: 0 / 455.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.002315/0.4605, allocations: 0.5557 MB / 456.5 MB, free: 12.64 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (112): * Single equations (assignments): 108 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003479/0.4608, allocations: 162.2 kB / 456.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003182/0.464, allocations: 2.091 MB / 458.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4641, allocations: 0 / 458.7 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00191/0.466, allocations: 1.374 MB / 460.1 MB, free: 8.922 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002514/0.4685, allocations: 0.5236 MB / 460.6 MB, free: 8.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.4795, allocations: 7.61 MB / 468.2 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002216/0.4818, allocations: 2.413 MB / 470.6 MB, free: 14.29 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001825/0.4836, allocations: 0.4907 MB / 471.1 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004588/0.4841, allocations: 155.4 kB / 471.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of SimCode: time 6.62e-07/0.4841, allocations: 0 / 471.3 MB, free: 13.64 MB / 366.1 MB Notification: Performance of Templates: time 0.04904/0.5331, allocations: 27.41 MB / 498.7 MB, free: 2.207 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (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)