Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.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_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006006/0.006006, allocations: 102 kB / 15.73 MB, free: 6.051 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.001118/0.001117, allocations: 191.5 kB / 16.67 MB, free: 5.965 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.436/1.436, allocations: 205.1 MB / 222.5 MB, free: 12.22 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.001353/0.001353, allocations: 55.92 kB / 326.6 MB, free: 3.258 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09495/0.09631, allocations: 46.62 MB / 373.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2148/0.3111, allocations: 15.11 MB / 388.3 MB, free: 4.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0116/0.3228, allocations: 5.115 MB / 393.4 MB, free: 1.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004231/0.3271, allocations: 89.12 kB / 393.5 MB, free: 1.168 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004015/0.3312, allocations: 1.118 MB / 394.6 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007648/0.3388, allocations: 1.3 MB / 395.9 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004228/0.3431, allocations: 0.9011 MB / 396.8 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.007284/0.3504, allocations: 3.625 MB / 400.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006906/0.3573, allocations: 3.258 MB / 403.7 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004406/0.3617, allocations: 1.737 MB / 405.4 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004836/0.3666, allocations: 2.046 MB / 407.5 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001835/0.3684, allocations: 479.2 kB / 407.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003272/0.3717, allocations: 0.6808 MB / 408.6 MB, free: 9.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002269/0.374, allocations: 1.139 MB / 409.8 MB, free: 8.984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005108/0.3791, allocations: 2.042 MB / 411.8 MB, free: 7.484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008622/0.3878, allocations: 6.246 MB / 418.1 MB, free: 2.781 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.349e-05/0.3878, allocations: 9.359 kB / 418.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.176e-06/0.3878, allocations: 0 / 418.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002469/0.3881, allocations: 0 / 418.1 MB, free: 2.773 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.0106/0.3987, allocations: 4.243 MB / 422.3 MB, free: 14.5 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.3988, allocations: 11.89 kB / 422.3 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002664/0.4014, allocations: 0.6212 MB / 422.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003468/0.4049, allocations: 2.132 MB / 425.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001733/0.4051, allocations: 242.7 kB / 425.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000423/0.4055, allocations: 312.3 kB / 425.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006558/0.4121, allocations: 4.043 MB / 429.7 MB, free: 7.031 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.951e-05/0.4122, allocations: 3.984 kB / 429.7 MB, free: 7.027 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002799/0.4125, allocations: 128 kB / 429.8 MB, free: 6.902 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001364/0.4126, allocations: 146.2 kB / 429.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005207/0.4178, allocations: 3.378 MB / 433.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01974/0.4376, allocations: 13.16 MB / 446.5 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004111/0.4417, allocations: 3.962 MB / 450.4 MB, free: 1.297 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001485/0.4432, allocations: 0.9877 MB / 451.4 MB, free: 320 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004563/0.4478, allocations: 2.649 MB / 454.1 MB, free: 13.57 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.052e-05/0.4479, allocations: 51.5 kB / 454.1 MB, free: 13.51 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.635e-06/0.4479, allocations: 0 / 454.1 MB, free: 13.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01129/0.4592, allocations: 5.994 MB / 460.1 MB, free: 7.422 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.466e-05/0.4593, allocations: 64.72 kB / 460.2 MB, free: 7.344 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003144/0.4624, allocations: 1.896 MB / 462.1 MB, free: 5.402 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001342/0.4626, allocations: 49.64 kB / 462.1 MB, free: 5.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0011/0.4637, allocations: 1.505 MB / 463.6 MB, free: 3.824 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004394/0.4641, allocations: 492.9 kB / 464.1 MB, free: 3.336 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005611/0.4647, allocations: 331.2 kB / 464.4 MB, free: 3.004 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.4648, allocations: 301.1 kB / 464.7 MB, free: 2.707 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001243/0.4661, allocations: 0.7691 MB / 465.5 MB, free: 1.938 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001684/0.4678, allocations: 1.371 MB / 466.9 MB, free: 304 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003053/0.4709, allocations: 2.323 MB / 469.2 MB, free: 13.71 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.18e-05/0.4709, allocations: 7.938 kB / 469.2 MB, free: 13.7 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004433/0.4753, allocations: 2.473 MB / 471.7 MB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.282e-05/0.4754, allocations: 16 kB / 471.7 MB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.963e-05/0.4754, allocations: 20 kB / 471.7 MB, free: 11.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004725/0.4759, allocations: 122.9 kB / 471.8 MB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001913/0.4778, allocations: 491.2 kB / 472.3 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001285/0.4791, allocations: 1.41 MB / 473.7 MB, free: 9.012 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001736/0.4809, allocations: 112 kB / 473.8 MB, free: 8.902 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001573/0.4811, allocations: 83.98 kB / 473.9 MB, free: 8.82 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001973/0.483, allocations: 0.985 MB / 474.9 MB, free: 7.824 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005587/0.4836, allocations: 201.5 kB / 475.1 MB, free: 7.625 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003651/0.4873, allocations: 1.965 MB / 477.1 MB, free: 5.641 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.4873, allocations: 12 kB / 477.1 MB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.061e-05/0.4873, allocations: 11.98 kB / 477.1 MB, free: 5.617 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.788e-05/0.4873, allocations: 3.984 kB / 477.1 MB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00935/0.4967, allocations: 4.987 MB / 482.1 MB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.586e-06/0.4968, allocations: 0 / 482.1 MB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001382/0.4981, allocations: 315.8 kB / 482.4 MB, free: 212 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003221/0.4985, allocations: 94.47 kB / 482.5 MB, free: 108 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.4986, allocations: 31.98 kB / 482.5 MB, free: 76 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001083/0.4997, allocations: 1.375 MB / 483.9 MB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.663e-06/0.4997, allocations: 7.984 kB / 483.9 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004965/0.5047, allocations: 3.086 MB / 487 MB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.5061, allocations: 458.5 kB / 487.4 MB, free: 10.94 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006282/0.5067, allocations: 27.98 kB / 487.4 MB, free: 10.91 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.5082, allocations: 79.91 kB / 487.5 MB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002043/0.5084, allocations: 89.19 kB / 487.6 MB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.491e-05/0.5085, allocations: 40 kB / 487.6 MB, free: 10.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003118/0.5116, allocations: 1.285 MB / 488.9 MB, free: 9.398 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5117, allocations: 0 / 488.9 MB, free: 9.398 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002662/0.5143, allocations: 0.5312 MB / 489.5 MB, free: 8.867 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,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.0004268/0.5148, allocations: 166.9 kB / 489.6 MB, free: 8.691 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003779/0.5185, allocations: 2.219 MB / 491.8 MB, free: 6.418 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.5186, allocations: 0 / 491.8 MB, free: 6.418 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001674/0.5202, allocations: 1.175 MB / 493 MB, free: 5.191 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003229/0.5235, allocations: 0.5169 MB / 493.5 MB, free: 4.672 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.012/0.5355, allocations: 5.574 MB / 499.1 MB, free: 15.04 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002881/0.5384, allocations: 2.255 MB / 0.4896 GB, free: 12.75 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002063/0.5405, allocations: 0.5132 MB / 0.4901 GB, free: 12.24 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006388/0.5412, allocations: 155.4 kB / 0.4903 GB, free: 12.09 MB / 430.1 MB Notification: Performance of SimCode: time 1.122e-06/0.5412, allocations: 0 / 0.4903 GB, free: 12.09 MB / 430.1 MB Notification: Performance of Templates: time 0.05355/0.5947, allocations: 26.56 MB / 0.5162 GB, free: 1.469 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)