Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001153/0.001153, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001343/0.001343, allocations: 194.4 kB / 16.25 MB, free: 6.625 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.1 MB, free: 4.699 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.001085/0.001085, allocations: 51.88 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2537, allocations: 46.62 MB / 324.8 MB, free: 1.93 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01572/0.2694, allocations: 14.94 MB / 339.8 MB, free: 5.125 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01012/0.2796, allocations: 5.013 MB / 344.8 MB, free: 100 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003918/0.2835, allocations: 83.62 kB / 344.9 MB, free: 16 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004053/0.2877, allocations: 0.9366 MB / 345.8 MB, free: 15.07 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004935/0.2926, allocations: 1.131 MB / 346.9 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002725/0.2954, allocations: 0.8225 MB / 347.8 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.005707/0.3011, allocations: 3.686 MB / 351.5 MB, free: 9.406 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005655/0.3068, allocations: 3.258 MB / 354.7 MB, free: 6.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002836/0.3096, allocations: 1.655 MB / 356.4 MB, free: 4.422 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00341/0.3131, allocations: 2.047 MB / 358.4 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001429/0.3145, allocations: 480 kB / 358.9 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002244/0.3168, allocations: 0.6911 MB / 359.6 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001836/0.3186, allocations: 1.134 MB / 360.7 MB, free: 72 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003408/0.3221, allocations: 2.038 MB / 362.7 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00618/0.3283, allocations: 6.177 MB / 368.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.3283, allocations: 0 / 368.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.51e-07/0.3283, allocations: 0 / 368.9 MB, free: 7.828 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001396/0.3284, allocations: 0 / 368.9 MB, free: 7.828 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.00956/0.338, allocations: 4.242 MB / 373.2 MB, free: 3.512 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.689e-05/0.3381, allocations: 15.83 kB / 373.2 MB, free: 3.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002708/0.3408, allocations: 0.6289 MB / 373.8 MB, free: 2.863 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.3446, allocations: 2.082 MB / 375.9 MB, free: 0.7266 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/0.3449, allocations: 246.8 kB / 376.1 MB, free: 496 kB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005267/0.3454, allocations: 311.8 kB / 376.4 MB, free: 184 kB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007829/0.3533, allocations: 4.047 MB / 380.5 MB, free: 12.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.308e-05/0.3534, allocations: 7.984 kB / 380.5 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002794/0.3537, allocations: 127.9 kB / 380.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001424/0.3538, allocations: 150.2 kB / 380.8 MB, free: 11.79 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005771/0.3596, allocations: 3.374 MB / 384.1 MB, free: 8.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02202/0.3816, allocations: 13.33 MB / 397.5 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004204/0.3859, allocations: 3.962 MB / 401.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001673/0.3876, allocations: 0.9997 MB / 402.4 MB, free: 5.156 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005757/0.3934, allocations: 2.661 MB / 405.1 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.212e-05/0.3934, allocations: 55.48 kB / 405.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 3.196e-06/0.3935, allocations: 0 / 405.1 MB, free: 2.348 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01269/0.4062, allocations: 5.98 MB / 411.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.737e-05/0.4063, allocations: 68.72 kB / 411.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003747/0.41, allocations: 1.889 MB / 413.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001373/0.4102, allocations: 49.7 kB / 413.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001211/0.4114, allocations: 1.505 MB / 414.6 MB, free: 8.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004848/0.4119, allocations: 492.9 kB / 415.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005653/0.4125, allocations: 339.2 kB / 415.4 MB, free: 7.855 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.4126, allocations: 309 kB / 415.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001259/0.4138, allocations: 0.7652 MB / 416.5 MB, free: 6.785 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001736/0.4156, allocations: 1.379 MB / 417.9 MB, free: 5.137 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00314/0.4187, allocations: 2.312 MB / 420.2 MB, free: 2.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-05/0.4188, allocations: 4 kB / 420.2 MB, free: 2.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004403/0.4232, allocations: 2.469 MB / 422.7 MB, free: 64 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.313e-05/0.4232, allocations: 12 kB / 422.7 MB, free: 52 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.735e-05/0.4233, allocations: 35.91 kB / 422.7 MB, free: 16 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004388/0.4237, allocations: 119.1 kB / 422.8 MB, free: 15.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001752/0.4255, allocations: 495.2 kB / 423.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001146/0.4267, allocations: 1.406 MB / 424.7 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001631/0.4283, allocations: 115.8 kB / 424.8 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/0.4285, allocations: 80 kB / 424.9 MB, free: 13.66 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.002002/0.4305, allocations: 0.989 MB / 425.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006294/0.4311, allocations: 201.5 kB / 426.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003507/0.4346, allocations: 1.965 MB / 428.1 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.4347, allocations: 15.98 kB / 428.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.197e-06/0.4347, allocations: 0 / 428.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.4347, allocations: 7.969 kB / 428.1 MB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009579/0.4443, allocations: 4.996 MB / 433.1 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.875e-06/0.4443, allocations: 0 / 433.1 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001382/0.4457, allocations: 315.6 kB / 433.4 MB, free: 5.047 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003289/0.4461, allocations: 98.72 kB / 433.5 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.4462, allocations: 31.98 kB / 433.5 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.4472, allocations: 1.375 MB / 434.9 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.388e-06/0.4473, allocations: 4 kB / 434.9 MB, free: 3.391 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004778/0.452, allocations: 3.077 MB / 438 MB, free: 264 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001191/0.4533, allocations: 454.5 kB / 438.4 MB, free: 15.79 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006051/0.4539, allocations: 28 kB / 438.5 MB, free: 15.77 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001358/0.4552, allocations: 79.91 kB / 438.5 MB, free: 15.69 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001995/0.4555, allocations: 93.12 kB / 438.6 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.4556, allocations: 39.98 kB / 438.7 MB, free: 15.56 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002786/0.4584, allocations: 1.285 MB / 439.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.4584, allocations: 0 / 439.9 MB, free: 14.25 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002476/0.4609, allocations: 0.5312 MB / 440.5 MB, free: 13.72 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.0004368/0.4613, allocations: 162.9 kB / 440.6 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005978/0.4673, allocations: 2.832 MB / 443.5 MB, free: 10.66 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.326e-05/0.4673, allocations: 7.938 kB / 443.5 MB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001639/0.469, allocations: 1.175 MB / 444.7 MB, free: 9.426 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003243/0.4722, allocations: 0.5137 MB / 445.2 MB, free: 8.906 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01205/0.4843, allocations: 7.008 MB / 452.2 MB, free: 1.848 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.25/0.7343, allocations: 2.253 MB / 454.4 MB, free: 110.7 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.005172/0.7395, allocations: 0.5069 MB / 454.9 MB, free: 110.7 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/0.7411, allocations: 154.2 kB / 455.1 MB, free: 110.7 MB / 382.1 MB Notification: Performance of SimCode: time 2.595e-06/0.7411, allocations: 0 / 455.1 MB, free: 110.7 MB / 382.1 MB Notification: Performance of Templates: time 0.04936/0.7905, allocations: 26.04 MB / 481.1 MB, free: 93.5 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)