Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.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.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001391/0.001391, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001725/0.001725, allocations: 196.4 kB / 16.26 MB, free: 6.621 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.59/1.59, allocations: 205.1 MB / 222.1 MB, free: 4.676 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.001281/0.001281, allocations: 47.88 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2749/0.2762, allocations: 46.63 MB / 324.9 MB, free: 1.961 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01318/0.2894, allocations: 10.8 MB / 335.7 MB, free: 9.277 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.009964/0.2994, allocations: 3.62 MB / 339.3 MB, free: 5.645 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004183/0.3037, allocations: 51.75 kB / 339.3 MB, free: 5.594 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003748/0.3075, allocations: 0.7342 MB / 340.1 MB, free: 4.855 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005968/0.3135, allocations: 0.7576 MB / 340.8 MB, free: 4.094 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002503/0.3161, allocations: 415.6 kB / 341.2 MB, free: 3.688 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.006814/0.3229, allocations: 2.935 MB / 344.2 MB, free: 0.7383 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005575/0.3285, allocations: 2.683 MB / 346.8 MB, free: 14 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003059/0.3316, allocations: 1.374 MB / 348.2 MB, free: 12.62 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003696/0.3354, allocations: 1.783 MB / 350 MB, free: 10.83 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001194/0.3366, allocations: 372 kB / 350.4 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001554/0.3382, allocations: 479.8 kB / 350.8 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001178/0.3393, allocations: 1.075 MB / 351.9 MB, free: 8.918 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002089/0.3414, allocations: 1.672 MB / 353.6 MB, free: 7.238 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004925/0.3464, allocations: 4.806 MB / 358.4 MB, free: 2.418 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.064e-05/0.3464, allocations: 8 kB / 358.4 MB, free: 2.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3464, allocations: 3.938 kB / 358.4 MB, free: 2.406 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.38e-05/0.3465, allocations: 4 kB / 358.4 MB, free: 2.402 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 660 * Number of variables: 660 Notification: Performance of Generate backend data structure: time 0.007033/0.3536, allocations: 3.394 MB / 361.8 MB, free: 14.94 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.811e-05/0.3536, allocations: 11.89 kB / 361.8 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009502/0.3546, allocations: 337.1 kB / 362.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003116/0.3577, allocations: 1.686 MB / 363.8 MB, free: 12.86 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002103/0.358, allocations: 205.3 kB / 364 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000378/0.3583, allocations: 247.9 kB / 364.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006057/0.3644, allocations: 3.279 MB / 367.5 MB, free: 9.051 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.046e-05/0.3645, allocations: 7.938 kB / 367.5 MB, free: 9.043 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002764/0.3648, allocations: 108 kB / 367.7 MB, free: 8.938 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001786/0.365, allocations: 124.9 kB / 367.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005134/0.3701, allocations: 2.748 MB / 370.5 MB, free: 6.051 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01948/0.3896, allocations: 10.52 MB / 381 MB, free: 11.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002155/0.3919, allocations: 1.349 MB / 382.4 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001313/0.3932, allocations: 0.7824 MB / 383.2 MB, free: 8.973 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003695/0.3936, allocations: 203.2 kB / 383.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.643e-05/0.3936, allocations: 47.56 kB / 383.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 5.541e-06/0.3936, allocations: 0 / 383.4 MB, free: 8.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01687/0.4105, allocations: 7.038 MB / 390.5 MB, free: 1.523 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.653e-05/0.4107, allocations: 68.34 kB / 390.5 MB, free: 1.441 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002813/0.4135, allocations: 1.789 MB / 392.3 MB, free: 15.65 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.796e-05/0.4136, allocations: 45.7 kB / 392.4 MB, free: 15.6 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009009/0.4145, allocations: 1.275 MB / 393.6 MB, free: 14.31 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003457/0.4149, allocations: 425.9 kB / 394 MB, free: 13.89 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004593/0.4153, allocations: 303.2 kB / 394.3 MB, free: 13.59 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.4154, allocations: 305.1 kB / 394.6 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.4166, allocations: 0.7691 MB / 395.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001537/0.4181, allocations: 1.301 MB / 396.7 MB, free: 10.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.4208, allocations: 2.211 MB / 398.9 MB, free: 8.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.087e-06/0.4209, allocations: 8 kB / 398.9 MB, free: 8.527 MB / 334.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.003972/0.4248, allocations: 2.467 MB / 401.4 MB, free: 6.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.846e-05/0.4249, allocations: 16 kB / 401.4 MB, free: 6.023 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.416e-05/0.4249, allocations: 19.98 kB / 401.4 MB, free: 6.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006205/0.4255, allocations: 239.3 kB / 401.7 MB, free: 5.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001389/0.4269, allocations: 419.3 kB / 402.1 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002864/0.4298, allocations: 3.23 MB / 405.3 MB, free: 1.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001487/0.4313, allocations: 131.8 kB / 405.4 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001161/0.4315, allocations: 71.98 kB / 405.5 MB, free: 1.641 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 75 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00145/0.4329, allocations: 0.8173 MB / 406.3 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003164/0.4332, allocations: 189.7 kB / 406.5 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003227/0.4365, allocations: 2.039 MB / 408.5 MB, free: 14.56 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.4365, allocations: 12 kB / 408.6 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.4365, allocations: 4 kB / 408.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.457e-05/0.4365, allocations: 7.922 kB / 408.6 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007235/0.4438, allocations: 4.752 MB / 413.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.221e-06/0.4438, allocations: 0 / 413.3 MB, free: 9.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.4449, allocations: 259.6 kB / 413.6 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005238/0.4454, allocations: 215.4 kB / 413.8 MB, free: 9.207 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.707e-05/0.4455, allocations: 27.94 kB / 413.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002826/0.4483, allocations: 3.207 MB / 417 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.4484, allocations: 8.016 kB / 417 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0048/0.4532, allocations: 3.125 MB / 420.1 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009048/0.4541, allocations: 422.7 kB / 420.6 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.4543, allocations: 32 kB / 420.6 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009538/0.4553, allocations: 95.86 kB / 420.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001783/0.4555, allocations: 80.83 kB / 420.8 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.437e-05/0.4556, allocations: 32 kB / 420.8 MB, free: 1.836 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001961/0.4575, allocations: 1.22 MB / 422 MB, free: 0.625 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4575, allocations: 4 kB / 422 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001729/0.4593, allocations: 496 kB / 422.5 MB, free: 140 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (120): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 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): 2 systems {(2,1,100.0%), (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.0005296/0.4598, allocations: 182.9 kB / 422.7 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005502/0.4653, allocations: 2.99 MB / 425.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.4654, allocations: 0 / 425.7 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001849/0.4672, allocations: 1.335 MB / 427 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002576/0.4698, allocations: 497.5 kB / 427.5 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009784/0.4796, allocations: 6.038 MB / 433.5 MB, free: 4.898 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002091/0.4817, allocations: 1.998 MB / 435.5 MB, free: 2.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001885/0.4836, allocations: 0.496 MB / 436 MB, free: 2.363 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004574/0.4841, allocations: 143.4 kB / 436.2 MB, free: 2.223 MB / 366.1 MB Notification: Performance of SimCode: time 1.543e-06/0.4841, allocations: 3.938 kB / 436.2 MB, free: 2.219 MB / 366.1 MB Notification: Performance of Templates: time 0.2503/0.7344, allocations: 25.7 MB / 461.9 MB, free: 104 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1)