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.001088/0.001088, 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.00105/0.00105, allocations: 197.1 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.341/1.341, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.001191/0.001191, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.267/0.2682, allocations: 46.64 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01722/0.2855, allocations: 15.11 MB / 340.4 MB, free: 4.75 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01168/0.2972, allocations: 5.102 MB / 345.5 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004088/0.3014, allocations: 87.62 kB / 345.6 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0033/0.3048, allocations: 1.056 MB / 346.7 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004176/0.309, allocations: 1.262 MB / 347.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002202/0.3112, allocations: 0.8962 MB / 348.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004441/0.3156, allocations: 3.608 MB / 352.4 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00379/0.3194, allocations: 3.258 MB / 355.7 MB, free: 5.363 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002548/0.322, allocations: 1.713 MB / 357.4 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002827/0.3248, allocations: 2.043 MB / 359.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008047/0.3257, allocations: 483.9 kB / 359.9 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001607/0.3273, allocations: 0.695 MB / 360.6 MB, free: 436 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.3283, allocations: 1.141 MB / 361.8 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002916/0.3313, allocations: 2.034 MB / 363.8 MB, free: 13.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006296/0.3376, allocations: 6.185 MB / 370 MB, free: 7.035 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3376, allocations: 4 kB / 370 MB, free: 7.031 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3376, allocations: 4 kB / 370 MB, free: 7.027 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001267/0.3378, allocations: 0 / 370 MB, free: 7.027 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01007/0.3478, allocations: 4.238 MB / 374.2 MB, free: 2.715 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.3479, allocations: 15.89 kB / 374.2 MB, free: 2.699 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002789/0.3507, allocations: 0.625 MB / 374.9 MB, free: 2.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003523/0.3542, allocations: 2.109 MB / 377 MB, free: 15.9 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002003/0.3545, allocations: 238.8 kB / 377.2 MB, free: 15.66 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004181/0.3549, allocations: 323.7 kB / 377.5 MB, free: 15.35 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006402/0.3613, allocations: 4.039 MB / 381.6 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.594e-05/0.3614, allocations: 11.84 kB / 381.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002784/0.3617, allocations: 128 kB / 381.7 MB, free: 11.11 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001436/0.3618, allocations: 150.2 kB / 381.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00567/0.3675, allocations: 3.37 MB / 385.2 MB, free: 7.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02011/0.3876, allocations: 13.34 MB / 398.6 MB, free: 9.797 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004346/0.392, allocations: 3.966 MB / 402.5 MB, free: 5.324 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001597/0.3936, allocations: 1.004 MB / 403.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004551/0.3982, allocations: 2.653 MB / 406.2 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.891e-05/0.3983, allocations: 51.5 kB / 406.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.085e-06/0.3983, allocations: 0 / 406.2 MB, free: 1.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01198/0.4103, allocations: 5.983 MB / 412.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.331e-05/0.4104, allocations: 68.72 kB / 412.3 MB, free: 11.37 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003092/0.4135, allocations: 1.889 MB / 414.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.698e-05/0.4136, allocations: 49.7 kB / 414.2 MB, free: 9.383 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001014/0.4146, allocations: 1.505 MB / 415.7 MB, free: 7.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004099/0.415, allocations: 492.9 kB / 416.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000507/0.4155, allocations: 335.2 kB / 416.5 MB, free: 7.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.478e-05/0.4156, allocations: 305.1 kB / 416.8 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.4169, allocations: 0.7691 MB / 417.6 MB, free: 5.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001608/0.4185, allocations: 1.375 MB / 419 MB, free: 4.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003026/0.4215, allocations: 2.312 MB / 421.3 MB, free: 1.742 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.897e-05/0.4216, allocations: 8 kB / 421.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004079/0.4257, allocations: 2.477 MB / 423.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.307e-05/0.4257, allocations: 12 kB / 423.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/0.4258, allocations: 23.94 kB / 423.8 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003672/0.4261, allocations: 119 kB / 423.9 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001766/0.4279, allocations: 491.2 kB / 424.4 MB, free: 14.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00111/0.429, allocations: 1.418 MB / 425.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.4306, allocations: 111.7 kB / 425.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001511/0.4308, allocations: 83.98 kB / 426 MB, free: 12.85 MB / 366.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.002107/0.4329, allocations: 0.9852 MB / 427 MB, free: 11.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005698/0.4335, allocations: 197.6 kB / 427.2 MB, free: 11.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00356/0.4371, allocations: 1.961 MB / 429.2 MB, free: 9.672 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/0.4371, allocations: 12 kB / 429.2 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.4371, allocations: 4 kB / 429.2 MB, free: 9.656 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.401e-05/0.4371, allocations: 11.91 kB / 429.2 MB, free: 9.645 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008756/0.4459, allocations: 4.989 MB / 434.2 MB, free: 4.551 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.4459, allocations: 3.984 kB / 434.2 MB, free: 4.547 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001385/0.4473, allocations: 323.5 kB / 434.5 MB, free: 4.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003039/0.4476, allocations: 94.78 kB / 434.6 MB, free: 4.129 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.68e-05/0.4478, allocations: 31.98 kB / 434.6 MB, free: 4.098 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00099/0.4488, allocations: 1.371 MB / 436 MB, free: 2.586 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/0.4488, allocations: 7.938 kB / 436 MB, free: 2.578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004513/0.4533, allocations: 3.085 MB / 439.1 MB, free: 15.44 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009241/0.4542, allocations: 450.5 kB / 439.5 MB, free: 14.98 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004049/0.4546, allocations: 27.98 kB / 439.5 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0011/0.4558, allocations: 83.84 kB / 439.6 MB, free: 14.87 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.4559, allocations: 97.12 kB / 439.7 MB, free: 14.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-05/0.456, allocations: 36 kB / 439.8 MB, free: 14.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00239/0.4584, allocations: 1.293 MB / 441 MB, free: 13.42 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4584, allocations: 0 / 441 MB, free: 13.42 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002255/0.4607, allocations: 0.5312 MB / 441.6 MB, free: 12.89 MB / 382.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.0004345/0.4612, allocations: 159 kB / 441.7 MB, free: 12.72 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005902/0.4671, allocations: 2.828 MB / 444.6 MB, free: 9.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.4671, allocations: 0 / 444.6 MB, free: 9.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001708/0.4688, allocations: 1.183 MB / 445.7 MB, free: 8.605 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003071/0.4719, allocations: 0.5176 MB / 446.3 MB, free: 8.082 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0115/0.4834, allocations: 5.64 MB / 451.9 MB, free: 2.387 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002782/0.4863, allocations: 2.263 MB / 454.2 MB, free: 96 kB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.179/0.6653, allocations: 0.5055 MB / 454.7 MB, free: 110.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006759/0.666, allocations: 150.7 kB / 454.8 MB, free: 110.1 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.666, allocations: 0 / 454.8 MB, free: 110.1 MB / 382.1 MB Notification: Performance of Templates: time 0.04752/0.7136, allocations: 26.03 MB / 480.9 MB, free: 93.33 MB / 382.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)