Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.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_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, 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.001952/0.001952, allocations: 197 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.591/1.591, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001322/0.001322, allocations: 59.92 kB / 278.2 MB, free: 12.65 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3389/0.3402, allocations: 46.62 MB / 324.9 MB, free: 1.941 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01497/0.3552, allocations: 11.51 MB / 336.4 MB, free: 8.551 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01073/0.366, allocations: 3.891 MB / 340.3 MB, free: 4.645 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003443/0.3696, allocations: 59.69 kB / 340.3 MB, free: 4.586 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002945/0.3726, allocations: 0.7613 MB / 341.1 MB, free: 3.82 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004491/0.3771, allocations: 0.847 MB / 341.9 MB, free: 2.969 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001395/0.3785, allocations: 471.5 kB / 342.4 MB, free: 2.508 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004102/0.3826, allocations: 3.278 MB / 345.7 MB, free: 15.21 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003164/0.3858, allocations: 2.981 MB / 348.6 MB, free: 12.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002638/0.3884, allocations: 1.542 MB / 350.2 MB, free: 10.63 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00255/0.391, allocations: 2.008 MB / 352.2 MB, free: 8.613 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005407/0.3915, allocations: 424 kB / 352.6 MB, free: 8.199 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008878/0.3924, allocations: 0.5271 MB / 353.1 MB, free: 7.672 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001056/0.3935, allocations: 1.223 MB / 354.4 MB, free: 6.445 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001956/0.3955, allocations: 1.874 MB / 356.2 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005321/0.4008, allocations: 5.444 MB / 361.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.686e-06/0.4008, allocations: 0 / 361.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.4008, allocations: 0 / 361.7 MB, free: 15.1 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001335/0.401, allocations: 8 kB / 361.7 MB, free: 15.09 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.008596/0.4096, allocations: 3.806 MB / 365.5 MB, free: 11.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.044e-05/0.4097, allocations: 11.89 kB / 365.5 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/0.4109, allocations: 388.6 kB / 365.9 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003873/0.4148, allocations: 1.935 MB / 367.8 MB, free: 8.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.415, allocations: 226 kB / 368 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004345/0.4155, allocations: 284 kB / 368.3 MB, free: 8.336 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006992/0.4225, allocations: 3.697 MB / 372 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.192e-05/0.4226, allocations: 7.906 kB / 372 MB, free: 4.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000268/0.4228, allocations: 124 kB / 372.1 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001643/0.423, allocations: 137.5 kB / 372.3 MB, free: 4.301 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005199/0.4282, allocations: 3.102 MB / 375.4 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01999/0.4482, allocations: 11.64 MB / 387 MB, free: 5.203 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002464/0.4508, allocations: 1.905 MB / 388.9 MB, free: 3.188 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001618/0.4524, allocations: 1.088 MB / 390 MB, free: 2.098 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003261/0.4527, allocations: 215.2 kB / 390.2 MB, free: 1.848 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.228e-05/0.4528, allocations: 47.5 kB / 390.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 3.777e-06/0.4528, allocations: 0 / 390.3 MB, free: 1.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=140): time 0.01354/0.4663, allocations: 6.515 MB / 396.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.029e-05/0.4664, allocations: 64.72 kB / 396.8 MB, free: 11.06 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003/0.4694, allocations: 1.994 MB / 398.8 MB, free: 9.027 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.933e-05/0.4695, allocations: 49.7 kB / 398.9 MB, free: 8.973 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001053/0.4706, allocations: 1.412 MB / 400.3 MB, free: 7.543 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004142/0.471, allocations: 488.9 kB / 400.8 MB, free: 7.059 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004957/0.4715, allocations: 323.3 kB / 401.1 MB, free: 6.738 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.4716, allocations: 305.1 kB / 401.4 MB, free: 6.438 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.473, allocations: 0.8238 MB / 402.2 MB, free: 5.613 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001612/0.4746, allocations: 1.375 MB / 403.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002989/0.4776, allocations: 2.364 MB / 405.9 MB, free: 1.387 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.358e-06/0.4776, allocations: 8 kB / 406 MB, free: 1.379 MB / 334.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.004359/0.482, allocations: 2.858 MB / 408.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.624e-05/0.482, allocations: 12 kB / 408.8 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.338e-05/0.482, allocations: 16 kB / 408.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008393/0.4829, allocations: 399.4 kB / 409.2 MB, free: 14.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001398/0.4843, allocations: 431.3 kB / 409.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005869/0.4902, allocations: 6.693 MB / 416.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001417/0.4916, allocations: 131.8 kB / 416.5 MB, free: 6.383 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.4917, allocations: 80.09 kB / 416.6 MB, free: 6.305 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (210): * Single equations (assignments): 206 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 3 systems {(2,9,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001497/0.4932, allocations: 0.9079 MB / 417.5 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003337/0.4936, allocations: 213.4 kB / 417.7 MB, free: 5.176 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003699/0.4973, allocations: 2.417 MB / 420.1 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-05/0.4973, allocations: 19.94 kB / 420.1 MB, free: 2.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.4973, allocations: 4 kB / 420.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.34e-05/0.4973, allocations: 3.984 kB / 420.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008504/0.5058, allocations: 5.52 MB / 425.6 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.5059, allocations: 7.938 kB / 425.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001058/0.5069, allocations: 263.6 kB / 425.9 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009628/0.5079, allocations: 411.4 kB / 426.3 MB, free: 12.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001099/0.508, allocations: 39.92 kB / 426.3 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007752/0.5158, allocations: 8.257 MB / 434.6 MB, free: 3.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/0.5158, allocations: 8 kB / 434.6 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005795/0.5217, allocations: 3.613 MB / 438.2 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001269/0.5229, allocations: 462.4 kB / 438.7 MB, free: 15.28 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002876/0.5232, allocations: 32 kB / 438.7 MB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.5243, allocations: 91.89 kB / 438.8 MB, free: 15.16 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002403/0.5245, allocations: 105.2 kB / 438.9 MB, free: 15.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.901e-05/0.5246, allocations: 51.92 kB / 438.9 MB, free: 15.01 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00214/0.5268, allocations: 1.354 MB / 440.3 MB, free: 13.63 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5268, allocations: 0 / 440.3 MB, free: 13.63 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002034/0.5288, allocations: 0.5469 MB / 440.8 MB, free: 13.09 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 6 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,voltageController.PI_d.x,voltageController.PI_q.x) * 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 (129): * Single equations (assignments): 125 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(2,9,100.0%), (1,1,100.0%), (1,6,100.0%), (2,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.0004635/0.5293, allocations: 209.7 kB / 441 MB, free: 12.87 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005447/0.5348, allocations: 3.203 MB / 444.3 MB, free: 9.609 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.5348, allocations: 4.062 kB / 444.3 MB, free: 9.605 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001829/0.5366, allocations: 1.487 MB / 445.7 MB, free: 8.07 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002574/0.5392, allocations: 0.5259 MB / 446.3 MB, free: 7.539 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01009/0.5493, allocations: 6.981 MB / 453.3 MB, free: 488 kB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2456/0.795, allocations: 2.199 MB / 455.4 MB, free: 110 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003041/0.7981, allocations: 0.4933 MB / 455.9 MB, free: 109.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005582/0.7987, allocations: 155.2 kB / 456.1 MB, free: 109.9 MB / 382.1 MB Notification: Performance of SimCode: time 1.924e-06/0.7987, allocations: 0 / 456.1 MB, free: 109.9 MB / 382.1 MB Notification: Performance of Templates: time 0.05807/0.8568, allocations: 29.56 MB / 485.6 MB, free: 88.59 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.pipe 2>&1)