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.00693/0.00693, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001367/0.001367, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.623/1.623, allocations: 205.1 MB / 222.6 MB, free: 4.492 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.001735/0.001735, allocations: 46.84 kB / 326.6 MB, free: 14.35 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1313, allocations: 46.63 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_CurrentSource): time 0.01303/0.1444, allocations: 10.88 MB / 384.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009135/0.1535, allocations: 3.669 MB / 387.7 MB, free: 2.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003476/0.1571, allocations: 63.69 kB / 387.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003343/0.1605, allocations: 0.8697 MB / 388.7 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004829/0.1654, allocations: 0.9009 MB / 389.6 MB, free: 0.8398 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.1671, allocations: 471.3 kB / 390 MB, free: 388 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004042/0.1711, allocations: 2.943 MB / 393 MB, free: 13.42 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002913/0.174, allocations: 2.683 MB / 395.7 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002081/0.1761, allocations: 1.378 MB / 397 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002069/0.1782, allocations: 1.751 MB / 398.8 MB, free: 7.531 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004377/0.1787, allocations: 372 kB / 399.2 MB, free: 7.168 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008014/0.1795, allocations: 479.7 kB / 399.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009502/0.1804, allocations: 1.068 MB / 400.7 MB, free: 5.633 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001544/0.182, allocations: 1.676 MB / 402.4 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004469/0.1865, allocations: 4.883 MB / 407.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.1865, allocations: 0 / 407.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.1865, allocations: 0 / 407.3 MB, free: 15.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.547e-05/0.1866, allocations: 0 / 407.3 MB, free: 15.05 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.006609/0.1932, allocations: 3.386 MB / 410.6 MB, free: 11.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.465e-05/0.1933, allocations: 15.89 kB / 410.7 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008004/0.1941, allocations: 337.1 kB / 411 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.1969, allocations: 1.706 MB / 412.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000149/0.1971, allocations: 189.4 kB / 412.9 MB, free: 9.301 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003492/0.1975, allocations: 259.8 kB / 413.1 MB, free: 9.047 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005342/0.2028, allocations: 3.275 MB / 416.4 MB, free: 5.691 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.356e-05/0.2029, allocations: 3.906 kB / 416.4 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002369/0.2031, allocations: 104 kB / 416.5 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001314/0.2033, allocations: 124.9 kB / 416.6 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004336/0.2076, allocations: 2.748 MB / 419.4 MB, free: 2.699 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01466/0.2223, allocations: 10.41 MB / 429.8 MB, free: 7.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001947/0.2243, allocations: 1.342 MB / 431.1 MB, free: 6.523 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001227/0.2255, allocations: 0.7551 MB / 431.9 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000302/0.2258, allocations: 207.2 kB / 432.1 MB, free: 5.523 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.444e-05/0.2259, allocations: 43.56 kB / 432.1 MB, free: 5.469 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.937e-06/0.2259, allocations: 4 kB / 432.1 MB, free: 5.465 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01547/0.2414, allocations: 7.034 MB / 439.2 MB, free: 14.32 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.2415, allocations: 64.41 kB / 439.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002833/0.2443, allocations: 1.789 MB / 441 MB, free: 12.45 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.2444, allocations: 45.7 kB / 441.1 MB, free: 12.4 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009869/0.2454, allocations: 1.279 MB / 442.3 MB, free: 11.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004208/0.2459, allocations: 425.9 kB / 442.8 MB, free: 10.69 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004746/0.2463, allocations: 295.2 kB / 443 MB, free: 10.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.2465, allocations: 309.1 kB / 443.3 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001153/0.2476, allocations: 0.7769 MB / 444.1 MB, free: 9.309 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001456/0.2491, allocations: 1.293 MB / 445.4 MB, free: 7.785 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002707/0.2518, allocations: 2.215 MB / 447.6 MB, free: 5.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.2518, allocations: 8 kB / 447.6 MB, free: 5.332 MB / 382.1 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.004032/0.2559, allocations: 2.466 MB / 450.1 MB, free: 2.844 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.103e-05/0.2559, allocations: 12 kB / 450.1 MB, free: 2.832 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/0.2559, allocations: 16.59 kB / 450.1 MB, free: 2.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005966/0.2565, allocations: 243.2 kB / 450.4 MB, free: 2.566 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.2579, allocations: 419.3 kB / 450.8 MB, free: 2.156 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2593/0.5173, allocations: 3.226 MB / 454 MB, free: 67.24 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002373/0.5197, allocations: 127.9 kB / 454.1 MB, free: 67.24 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002513/0.52, allocations: 73.48 kB / 454.2 MB, free: 67.24 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.002491/0.5225, allocations: 0.8203 MB / 455 MB, free: 67.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007892/0.5233, allocations: 190.5 kB / 455.2 MB, free: 67.13 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004581/0.5278, allocations: 2.036 MB / 457.2 MB, free: 66.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.5279, allocations: 11.84 kB / 457.3 MB, free: 66.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.5279, allocations: 1.281 kB / 457.3 MB, free: 66.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.582e-05/0.5279, allocations: 7.984 kB / 457.3 MB, free: 66.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01046/0.5384, allocations: 4.732 MB / 462 MB, free: 64.99 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.113e-05/0.5384, allocations: 1.344 kB / 462 MB, free: 64.99 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001117/0.5395, allocations: 260.8 kB / 462.3 MB, free: 64.97 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006054/0.5402, allocations: 208.5 kB / 462.5 MB, free: 64.89 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.532e-05/0.5403, allocations: 30.91 kB / 462.5 MB, free: 64.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002506/0.5428, allocations: 3.213 MB / 465.7 MB, free: 61.95 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.623e-06/0.5428, allocations: 7 kB / 465.7 MB, free: 61.95 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005534/0.5483, allocations: 3.126 MB / 468.8 MB, free: 60.68 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.5494, allocations: 424.6 kB / 469.2 MB, free: 60.5 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002088/0.5496, allocations: 22.88 kB / 469.3 MB, free: 60.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008883/0.5505, allocations: 97.36 kB / 469.4 MB, free: 60.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.5507, allocations: 88.8 kB / 469.5 MB, free: 60.45 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-05/0.5508, allocations: 35.3 kB / 469.5 MB, free: 60.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002066/0.5529, allocations: 1.218 MB / 470.7 MB, free: 59.99 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5529, allocations: 0 / 470.7 MB, free: 59.99 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001802/0.5547, allocations: 491.7 kB / 471.2 MB, free: 59.95 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.0003797/0.5551, allocations: 189 kB / 471.4 MB, free: 59.84 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00342/0.5585, allocations: 2.356 MB / 473.7 MB, free: 58.77 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.5585, allocations: 0 / 473.7 MB, free: 58.77 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001735/0.5603, allocations: 1.333 MB / 475.1 MB, free: 58.04 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001933/0.5622, allocations: 495.2 kB / 475.5 MB, free: 57.88 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007191/0.5694, allocations: 4.857 MB / 480.4 MB, free: 55.17 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/0.5707, allocations: 2.002 MB / 482.4 MB, free: 53.13 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001284/0.572, allocations: 0.5022 MB / 482.9 MB, free: 52.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003719/0.5724, allocations: 143.4 kB / 483 MB, free: 52.5 MB / 382.1 MB Notification: Performance of SimCode: time 1.052e-06/0.5724, allocations: 0 / 483 MB, free: 52.5 MB / 382.1 MB Notification: Performance of Templates: time 0.04548/0.6179, allocations: 26.19 MB / 0.4973 GB, free: 26.29 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)