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.00684/0.00684, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.002009/0.002009, allocations: 189.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.588/1.588, allocations: 205.1 MB / 222.5 MB, free: 4.383 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.001384/0.001384, allocations: 55.48 kB / 326.6 MB, free: 14.44 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1582, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.02049/0.1788, allocations: 10.88 MB / 384.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01155/0.1904, allocations: 3.677 MB / 387.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003338/0.1938, allocations: 59.69 kB / 387.8 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003909/0.1978, allocations: 0.8697 MB / 388.7 MB, free: 1.727 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004947/0.2028, allocations: 0.901 MB / 389.6 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0021/0.2049, allocations: 467.3 kB / 390 MB, free: 372 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00604/0.211, allocations: 2.95 MB / 393 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005293/0.2163, allocations: 2.675 MB / 395.7 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003007/0.2194, allocations: 1.374 MB / 397 MB, free: 9.281 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003387/0.2228, allocations: 1.755 MB / 398.8 MB, free: 7.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007194/0.2235, allocations: 372 kB / 399.2 MB, free: 7.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00118/0.2247, allocations: 475.9 kB / 399.6 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001066/0.2258, allocations: 1.068 MB / 400.7 MB, free: 5.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00236/0.2282, allocations: 1.672 MB / 402.4 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00582/0.234, allocations: 4.891 MB / 407.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2341, allocations: 0 / 407.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.2341, allocations: 0 / 407.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001809/0.2343, allocations: 0 / 407.2 MB, free: 15.04 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.009034/0.2433, allocations: 3.386 MB / 410.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.486e-05/0.2434, allocations: 11.89 kB / 410.6 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001044/0.2444, allocations: 341.1 kB / 411 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00327/0.2477, allocations: 1.702 MB / 412.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001552/0.2479, allocations: 193.4 kB / 412.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003539/0.2483, allocations: 255.8 kB / 413.1 MB, free: 9.035 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005988/0.2543, allocations: 3.279 MB / 416.4 MB, free: 5.676 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.447e-05/0.2544, allocations: 7.906 kB / 416.4 MB, free: 5.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002354/0.2546, allocations: 104 kB / 416.5 MB, free: 5.566 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/0.2548, allocations: 128.9 kB / 416.6 MB, free: 5.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005104/0.2599, allocations: 2.744 MB / 419.4 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01644/0.2763, allocations: 10.4 MB / 429.8 MB, free: 7.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.2783, allocations: 1.343 MB / 431.1 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001177/0.2795, allocations: 0.7542 MB / 431.9 MB, free: 5.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002907/0.2798, allocations: 203.2 kB / 432.1 MB, free: 5.516 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.46e-05/0.2799, allocations: 51.5 kB / 432.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.326e-06/0.2799, allocations: 0 / 432.1 MB, free: 5.453 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01585/0.2957, allocations: 7.026 MB / 439.1 MB, free: 14.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.2958, allocations: 64.41 kB / 439.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002788/0.2986, allocations: 1.793 MB / 441 MB, free: 12.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001621/0.2988, allocations: 49.7 kB / 441.1 MB, free: 12.39 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009919/0.2998, allocations: 1.275 MB / 442.3 MB, free: 11.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004752/0.3003, allocations: 422 kB / 442.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004533/0.3007, allocations: 295.2 kB / 443 MB, free: 10.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001092/0.3009, allocations: 317 kB / 443.3 MB, free: 10.07 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/0.3021, allocations: 0.773 MB / 444.1 MB, free: 9.301 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001582/0.3037, allocations: 1.289 MB / 445.4 MB, free: 7.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003582/0.3073, allocations: 2.222 MB / 447.6 MB, free: 5.328 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.825e-05/0.3073, allocations: 8 kB / 447.6 MB, free: 5.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.006231/0.3136, allocations: 2.47 MB / 450.1 MB, free: 2.828 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.551e-05/0.3137, allocations: 12.69 kB / 450.1 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.485e-05/0.3137, allocations: 20 kB / 450.1 MB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009532/0.3147, allocations: 235.2 kB / 450.4 MB, free: 2.555 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002152/0.3169, allocations: 423.3 kB / 450.8 MB, free: 2.141 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3039/0.6207, allocations: 3.224 MB / 454 MB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001876/0.6227, allocations: 128 kB / 454.1 MB, free: 67.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.6229, allocations: 72.97 kB / 454.2 MB, free: 67.21 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.001667/0.6245, allocations: 0.8195 MB / 455 MB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004717/0.625, allocations: 189.9 kB / 455.2 MB, free: 67.09 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003507/0.6285, allocations: 2.035 MB / 457.2 MB, free: 66.84 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.6286, allocations: 12.72 kB / 457.2 MB, free: 66.84 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.6286, allocations: 1.594 kB / 457.2 MB, free: 66.84 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.647e-05/0.6286, allocations: 5.906 kB / 457.3 MB, free: 66.84 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008575/0.6372, allocations: 4.739 MB / 462 MB, free: 64.95 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/0.6372, allocations: 2.625 kB / 462 MB, free: 64.95 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001153/0.6384, allocations: 268.1 kB / 462.3 MB, free: 64.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005563/0.639, allocations: 202.3 kB / 462.5 MB, free: 64.85 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.189e-05/0.6391, allocations: 24.69 kB / 462.5 MB, free: 64.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/0.6415, allocations: 3.205 MB / 465.7 MB, free: 61.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.125e-06/0.6415, allocations: 10.53 kB / 465.7 MB, free: 61.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004913/0.6464, allocations: 3.128 MB / 468.8 MB, free: 60.64 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001127/0.6476, allocations: 425.4 kB / 469.2 MB, free: 60.46 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002337/0.6478, allocations: 26.8 kB / 469.3 MB, free: 60.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009079/0.6487, allocations: 94.78 kB / 469.4 MB, free: 60.43 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.6489, allocations: 83.52 kB / 469.4 MB, free: 60.42 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.419e-05/0.649, allocations: 36.69 kB / 469.5 MB, free: 60.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001928/0.6509, allocations: 1.223 MB / 470.7 MB, free: 59.95 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.6509, allocations: 0 / 470.7 MB, free: 59.95 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002063/0.653, allocations: 487.2 kB / 471.2 MB, free: 59.91 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.000401/0.6534, allocations: 205.5 kB / 471.4 MB, free: 59.79 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003085/0.6565, allocations: 2.344 MB / 473.7 MB, free: 58.73 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.6565, allocations: 7.781 kB / 473.7 MB, free: 58.73 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001522/0.658, allocations: 1.334 MB / 475.1 MB, free: 58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00213/0.6602, allocations: 494.8 kB / 475.5 MB, free: 57.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006931/0.6671, allocations: 4.855 MB / 480.4 MB, free: 55.13 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00126/0.6684, allocations: 2.004 MB / 482.4 MB, free: 53.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001473/0.6699, allocations: 0.4997 MB / 482.9 MB, free: 52.6 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004154/0.6703, allocations: 139.4 kB / 483 MB, free: 52.46 MB / 382.1 MB Notification: Performance of SimCode: time 1.413e-06/0.6703, allocations: 0 / 483 MB, free: 52.46 MB / 382.1 MB Notification: Performance of Templates: time 0.03946/0.7098, allocations: 26.19 MB / 0.4973 GB, free: 26.25 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)