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.00154/0.001539, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00137/0.00137, allocations: 198.5 kB / 16.14 MB, free: 6.707 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.342/1.342, allocations: 205.1 MB / 222 MB, free: 5.004 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.001694/0.001694, allocations: 55.91 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2566, allocations: 46.62 MB / 324.7 MB, free: 1.836 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01568/0.2723, allocations: 14.93 MB / 339.6 MB, free: 5.203 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01006/0.2824, allocations: 5.048 MB / 344.7 MB, free: 144 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003291/0.2857, allocations: 83.62 kB / 344.7 MB, free: 60 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002855/0.2887, allocations: 0.9171 MB / 345.7 MB, free: 15.14 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004103/0.2928, allocations: 1.139 MB / 346.8 MB, free: 13.99 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002028/0.2948, allocations: 0.8304 MB / 347.6 MB, free: 13.16 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.004717/0.2995, allocations: 3.744 MB / 351.4 MB, free: 9.395 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002822/0.3024, allocations: 2.735 MB / 354.1 MB, free: 6.594 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00178/0.3042, allocations: 1.436 MB / 355.5 MB, free: 5.152 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001826/0.306, allocations: 1.914 MB / 357.5 MB, free: 3.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004078/0.3064, allocations: 292 kB / 357.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001036/0.3075, allocations: 0.5075 MB / 358.3 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007264/0.3082, allocations: 0.9422 MB / 359.2 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001611/0.3098, allocations: 1.846 MB / 361 MB, free: 15.63 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00446/0.3143, allocations: 6.044 MB / 367.1 MB, free: 9.574 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.249e-06/0.3143, allocations: 3.938 kB / 367.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.3143, allocations: 0 / 367.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.517e-05/0.3144, allocations: 3.938 kB / 367.1 MB, free: 9.566 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.009891/0.3243, allocations: 4.234 MB / 371.3 MB, free: 5.258 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.468e-05/0.3244, allocations: 8.031 kB / 371.3 MB, free: 5.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.3274, allocations: 0.6211 MB / 372 MB, free: 4.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003815/0.3312, allocations: 2.097 MB / 374.1 MB, free: 2.473 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002222/0.3315, allocations: 242.8 kB / 374.3 MB, free: 2.234 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004265/0.3319, allocations: 319.8 kB / 374.6 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007666/0.3396, allocations: 4.039 MB / 378.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.159e-05/0.3397, allocations: 4 kB / 378.6 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.34, allocations: 124 kB / 378.8 MB, free: 13.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001441/0.3401, allocations: 150.2 kB / 378.9 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005837/0.346, allocations: 3.374 MB / 382.3 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01976/0.3657, allocations: 13.34 MB / 395.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004094/0.3699, allocations: 3.955 MB / 399.6 MB, free: 7.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001552/0.3715, allocations: 1.007 MB / 400.6 MB, free: 6.902 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004168/0.3756, allocations: 2.669 MB / 403.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.434e-05/0.3757, allocations: 43.56 kB / 403.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of pre-optimization done (n=108): time 2.204e-06/0.3757, allocations: 0 / 403.3 MB, free: 4.098 MB / 334.1 MB Notification: Performance of matching and sorting (n=142): time 0.01148/0.3872, allocations: 5.979 MB / 409.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.856e-05/0.3873, allocations: 72.66 kB / 409.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002828/0.3901, allocations: 1.889 MB / 411.2 MB, free: 12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.3902, allocations: 49.7 kB / 411.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001157/0.3914, allocations: 1.501 MB / 412.8 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003827/0.3918, allocations: 496.8 kB / 413.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005153/0.3923, allocations: 335.2 kB / 413.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001106/0.3924, allocations: 309.1 kB / 413.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001204/0.3936, allocations: 0.7691 MB / 414.7 MB, free: 8.531 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001658/0.3953, allocations: 1.375 MB / 416 MB, free: 6.887 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003077/0.3984, allocations: 2.316 MB / 418.4 MB, free: 4.301 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.897e-06/0.3984, allocations: 4 kB / 418.4 MB, free: 4.297 MB / 350.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003937/0.4023, allocations: 2.466 MB / 420.8 MB, free: 1.812 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.523e-05/0.4024, allocations: 12 kB / 420.8 MB, free: 1.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.536e-05/0.4024, allocations: 23.94 kB / 420.9 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000395/0.4028, allocations: 126.5 kB / 421 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00171/0.4045, allocations: 487.6 kB / 421.5 MB, free: 1.168 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.4056, allocations: 1.315 MB / 422.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.407, allocations: 107.8 kB / 422.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001407/0.4071, allocations: 87.98 kB / 423 MB, free: 15.53 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.001785/0.4089, allocations: 0.9812 MB / 424 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/0.4093, allocations: 201.5 kB / 424.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003327/0.4126, allocations: 1.961 MB / 426.1 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.418e-05/0.4126, allocations: 19.94 kB / 426.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.4127, allocations: 3.984 kB / 426.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.371e-05/0.4127, allocations: 3.984 kB / 426.1 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007581/0.4203, allocations: 4.989 MB / 431.1 MB, free: 7.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.4203, allocations: 11.92 kB / 431.1 MB, free: 7.219 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001336/0.4216, allocations: 319.8 kB / 431.5 MB, free: 6.906 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002815/0.4219, allocations: 94.47 kB / 431.5 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.341e-05/0.422, allocations: 31.98 kB / 431.6 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000882/0.4229, allocations: 1.28 MB / 432.9 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.4229, allocations: 0 / 432.9 MB, free: 5.359 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004348/0.4273, allocations: 3.089 MB / 435.9 MB, free: 2.215 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008456/0.4281, allocations: 450.5 kB / 436.4 MB, free: 1.754 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.4284, allocations: 31.94 kB / 436.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009684/0.4294, allocations: 75.91 kB / 436.5 MB, free: 1.648 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001774/0.4296, allocations: 89.19 kB / 436.6 MB, free: 1.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.017e-05/0.4296, allocations: 35.98 kB / 436.6 MB, free: 1.527 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001833/0.4315, allocations: 1.289 MB / 437.9 MB, free: 220 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4315, allocations: 0 / 437.9 MB, free: 220 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.001644/0.4331, allocations: 0.5352 MB / 438.4 MB, free: 15.68 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.0003143/0.4335, allocations: 174.7 kB / 438.6 MB, free: 15.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003099/0.4366, allocations: 2.201 MB / 440.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.4366, allocations: 4.062 kB / 440.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001509/0.4381, allocations: 1.173 MB / 442 MB, free: 12.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00212/0.4402, allocations: 498.7 kB / 442.5 MB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009686/0.4499, allocations: 7.015 MB / 449.5 MB, free: 4.453 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001901/0.4519, allocations: 2.263 MB / 451.8 MB, free: 2.16 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001795/0.4537, allocations: 0.5092 MB / 452.3 MB, free: 1.648 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004343/0.4541, allocations: 151.4 kB / 452.4 MB, free: 1.5 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4541, allocations: 4 kB / 452.4 MB, free: 1.496 MB / 382.1 MB Notification: Performance of Templates: time 0.2219/0.676, allocations: 25.07 MB / 477.5 MB, free: 96.43 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)