Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.008608/0.008608, allocations: 103 kB / 15.73 MB, free: 6.055 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.001595/0.001595, allocations: 190.1 kB / 16.67 MB, free: 5.973 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.629/1.629, allocations: 205.1 MB / 222.5 MB, free: 4.531 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.001881/0.001881, allocations: 55.33 kB / 326.6 MB, free: 14.57 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1468/0.1487, allocations: 46.61 MB / 373.2 MB, free: 1.434 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01569/0.1645, allocations: 10.89 MB / 384.1 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01044/0.175, allocations: 3.677 MB / 387.7 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003079/0.1781, allocations: 55.75 kB / 387.8 MB, free: 2.746 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003852/0.1821, allocations: 0.8189 MB / 388.6 MB, free: 1.922 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005275/0.1874, allocations: 0.858 MB / 389.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00225/0.1897, allocations: 467.3 kB / 389.9 MB, free: 0.6016 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.006571/0.1963, allocations: 2.959 MB / 392.9 MB, free: 13.63 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004503/0.2009, allocations: 2.679 MB / 395.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003083/0.204, allocations: 1.371 MB / 396.9 MB, free: 9.512 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003804/0.2078, allocations: 1.751 MB / 398.7 MB, free: 7.754 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009161/0.2088, allocations: 372 kB / 399.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001343/0.2101, allocations: 475.8 kB / 399.5 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001268/0.2114, allocations: 1.075 MB / 400.6 MB, free: 5.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003086/0.2145, allocations: 1.672 MB / 402.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006844/0.2214, allocations: 4.883 MB / 407.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.448e-06/0.2214, allocations: 0 / 407.1 MB, free: 15.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.206e-06/0.2215, allocations: 3.938 kB / 407.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002178/0.2217, allocations: 0 / 407.2 MB, free: 15.26 MB / 350.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.0111/0.2328, allocations: 3.386 MB / 410.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.58e-05/0.2329, allocations: 11.89 kB / 410.6 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001132/0.234, allocations: 337.1 kB / 410.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003919/0.2379, allocations: 1.706 MB / 412.6 MB, free: 9.707 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.2381, allocations: 185.4 kB / 412.8 MB, free: 9.523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004039/0.2385, allocations: 259.8 kB / 413 MB, free: 9.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007096/0.2456, allocations: 3.279 MB / 416.3 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.961e-05/0.2458, allocations: 15.83 kB / 416.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002388/0.246, allocations: 100 kB / 416.4 MB, free: 5.797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001647/0.2462, allocations: 124.9 kB / 416.5 MB, free: 5.672 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005727/0.2519, allocations: 2.748 MB / 419.3 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02505/0.277, allocations: 10.4 MB / 429.7 MB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.2797, allocations: 1.342 MB / 431 MB, free: 6.734 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001575/0.2813, allocations: 0.7501 MB / 431.8 MB, free: 5.977 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003933/0.2817, allocations: 208.3 kB / 432 MB, free: 5.738 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.866e-05/0.2818, allocations: 39.56 kB / 432 MB, free: 5.688 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.516e-06/0.2818, allocations: 0 / 432 MB, free: 5.688 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01982/0.3016, allocations: 7.034 MB / 439.1 MB, free: 14.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.192e-05/0.3018, allocations: 68.39 kB / 439.1 MB, free: 14.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004854/0.3067, allocations: 1.789 MB / 440.9 MB, free: 12.67 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002403/0.3069, allocations: 49.64 kB / 441 MB, free: 12.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001323/0.3083, allocations: 1.279 MB / 442.2 MB, free: 11.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000652/0.309, allocations: 425.9 kB / 442.7 MB, free: 10.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007167/0.3097, allocations: 295.2 kB / 442.9 MB, free: 10.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.3099, allocations: 309.1 kB / 443.2 MB, free: 10.3 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001501/0.3114, allocations: 0.7691 MB / 444 MB, free: 9.531 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00194/0.3133, allocations: 1.297 MB / 445.3 MB, free: 8.004 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003553/0.3169, allocations: 2.211 MB / 447.5 MB, free: 5.562 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-05/0.3169, allocations: 4 kB / 447.5 MB, free: 5.559 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005598/0.3225, allocations: 2.482 MB / 450 MB, free: 3.055 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.18e-05/0.3226, allocations: 12 kB / 450 MB, free: 3.043 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.78e-05/0.3227, allocations: 16 kB / 450 MB, free: 3.027 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008808/0.3236, allocations: 235.2 kB / 450.3 MB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001548/0.3252, allocations: 419.5 kB / 450.7 MB, free: 2.375 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3018/0.6269, allocations: 3.237 MB / 453.9 MB, free: 67.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002026/0.629, allocations: 125.4 kB / 454 MB, free: 67.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002263/0.6293, allocations: 71.02 kB / 454.1 MB, free: 67.75 MB / 382.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.002496/0.6318, allocations: 0.8182 MB / 454.9 MB, free: 67.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007787/0.6326, allocations: 185.5 kB / 455.1 MB, free: 67.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003802/0.6364, allocations: 2.041 MB / 457.1 MB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.838e-05/0.6364, allocations: 13.67 kB / 457.2 MB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.6364, allocations: 1.531 kB / 457.2 MB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.976e-05/0.6364, allocations: 5.953 kB / 457.2 MB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01067/0.6471, allocations: 4.732 MB / 461.9 MB, free: 65.2 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/0.6472, allocations: 5.047 kB / 461.9 MB, free: 65.2 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001115/0.6483, allocations: 264.6 kB / 462.2 MB, free: 65.2 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006016/0.6489, allocations: 206 kB / 462.4 MB, free: 65.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.866e-05/0.649, allocations: 24.09 kB / 462.4 MB, free: 65.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002376/0.6514, allocations: 3.217 MB / 465.6 MB, free: 62.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.6514, allocations: 2.125 kB / 465.6 MB, free: 62.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006111/0.6575, allocations: 3.125 MB / 468.7 MB, free: 60.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001811/0.6594, allocations: 426.4 kB / 469.1 MB, free: 60.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002514/0.6596, allocations: 22.81 kB / 469.2 MB, free: 60.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009554/0.6606, allocations: 96 kB / 469.3 MB, free: 60.7 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002/0.6608, allocations: 88.5 kB / 469.3 MB, free: 60.68 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.96e-05/0.6609, allocations: 33.44 kB / 469.4 MB, free: 60.67 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002147/0.663, allocations: 1.225 MB / 470.6 MB, free: 60.22 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.6631, allocations: 0 / 470.6 MB, free: 60.22 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002227/0.6653, allocations: 494.2 kB / 471.1 MB, free: 60.18 MB / 382.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.0003634/0.6657, allocations: 186.6 kB / 471.3 MB, free: 60.06 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003292/0.669, allocations: 2.349 MB / 473.6 MB, free: 59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.274e-06/0.669, allocations: 0 / 473.6 MB, free: 59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001556/0.6705, allocations: 1.336 MB / 475 MB, free: 58.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002175/0.6727, allocations: 498.2 kB / 475.4 MB, free: 58.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007452/0.6802, allocations: 4.852 MB / 480.3 MB, free: 55.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001424/0.6817, allocations: 2.017 MB / 482.3 MB, free: 53.51 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001574/0.6833, allocations: 0.4921 MB / 482.8 MB, free: 53.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005847/0.6838, allocations: 139.4 kB / 482.9 MB, free: 52.88 MB / 382.1 MB Notification: Performance of SimCode: time 1.042e-06/0.6839, allocations: 4 kB / 482.9 MB, free: 52.88 MB / 382.1 MB Notification: Performance of Templates: time 0.04508/0.7289, allocations: 26.59 MB / 0.4976 GB, free: 26.28 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource.pipe 2>&1)