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.001265/0.001265, allocations: 100.3 kB / 15.05 MB, free: 1.105 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.001466/0.001467, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.617/1.617, allocations: 205.4 MB / 222.1 MB, free: 5.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.0004994/0.0004996, allocations: 8 kB / 278.9 MB, free: 12.72 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3258, allocations: 47.6 MB / 326.5 MB, free: 1.383 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01733/0.3432, allocations: 9.465 MB / 335.9 MB, free: 9.988 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01338/0.3567, allocations: 3.809 MB / 339.7 MB, free: 6.168 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004602/0.3613, allocations: 59.69 kB / 339.8 MB, free: 6.109 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004036/0.3654, allocations: 0.719 MB / 340.5 MB, free: 5.387 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007067/0.3725, allocations: 0.8529 MB / 341.4 MB, free: 4.531 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002904/0.3755, allocations: 347.5 kB / 341.7 MB, free: 4.191 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.007203/0.3827, allocations: 2.122 MB / 343.8 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00643/0.3892, allocations: 2.061 MB / 345.9 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0034/0.3927, allocations: 1.031 MB / 346.9 MB, free: 14.94 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003621/0.3963, allocations: 1.397 MB / 348.3 MB, free: 13.54 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007702/0.3971, allocations: 164 kB / 348.5 MB, free: 13.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001337/0.3985, allocations: 247.8 kB / 348.7 MB, free: 13.14 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.3995, allocations: 0.8646 MB / 349.6 MB, free: 12.27 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001129/0.4007, allocations: 0.6289 MB / 350.2 MB, free: 11.63 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006956/0.4076, allocations: 4.371 MB / 354.6 MB, free: 7.25 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.4077, allocations: 0 / 354.6 MB, free: 7.25 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.4077, allocations: 4 kB / 354.6 MB, free: 7.246 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0002742/0.408, allocations: 4 kB / 354.6 MB, free: 7.242 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.0139/0.4219, allocations: 3.206 MB / 357.8 MB, free: 3.969 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.311e-05/0.422, allocations: 8.031 kB / 357.8 MB, free: 3.961 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002891/0.4249, allocations: 399.6 kB / 358.2 MB, free: 3.566 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006916/0.4319, allocations: 1.888 MB / 360.1 MB, free: 1.625 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003619/0.4323, allocations: 217.7 kB / 360.3 MB, free: 1.41 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009987/0.4333, allocations: 287.9 kB / 360.6 MB, free: 1.129 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01193/0.4452, allocations: 3.654 MB / 364.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001197/0.4454, allocations: 11.84 kB / 364.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.4459, allocations: 112 kB / 364.3 MB, free: 13.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002535/0.4461, allocations: 149.4 kB / 364.5 MB, free: 13.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008926/0.4551, allocations: 3.094 MB / 367.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02328/0.4784, allocations: 11.63 MB / 379.2 MB, free: 14.06 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003507/0.482, allocations: 1.894 MB / 381.1 MB, free: 12.05 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004877/0.4826, allocations: 215.2 kB / 381.3 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.165e-05/0.4826, allocations: 51.52 kB / 381.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of pre-optimization done (n=125): time 5.751e-06/0.4826, allocations: 0 / 381.4 MB, free: 11.75 MB / 318.1 MB Notification: Performance of matching and sorting (n=143): time 0.0179/0.5006, allocations: 7.239 MB / 388.6 MB, free: 4.395 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001176/0.5007, allocations: 72.7 kB / 388.7 MB, free: 4.309 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003698/0.5044, allocations: 1.92 MB / 390.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000299/0.5048, allocations: 49.7 kB / 390.6 MB, free: 2.293 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001513/0.5063, allocations: 1.412 MB / 392.1 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007669/0.5071, allocations: 0.4929 MB / 392.6 MB, free: 372 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.3e-05/0.5072, allocations: 36 kB / 392.6 MB, free: 336 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002875/0.5075, allocations: 377.9 kB / 393 MB, free: 15.95 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/0.5089, allocations: 0.8589 MB / 393.8 MB, free: 15.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001996/0.5109, allocations: 1.401 MB / 395.2 MB, free: 13.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001808/0.5128, allocations: 1.095 MB / 396.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/0.5128, allocations: 4 kB / 396.3 MB, free: 12.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.005523/0.5183, allocations: 2.958 MB / 399.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.927e-05/0.5184, allocations: 12 kB / 399.3 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.424e-05/0.5184, allocations: 16 kB / 399.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.5197, allocations: 0.5115 MB / 399.8 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001747/0.5215, allocations: 431.3 kB / 400.2 MB, free: 8.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008804/0.5303, allocations: 6.069 MB / 406.3 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002451/0.5328, allocations: 131.8 kB / 406.4 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004238/0.5332, allocations: 75.98 kB / 406.5 MB, free: 1.871 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (208): * Single equations (assignments): 205 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(5,76.0%) 17,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003434/0.5367, allocations: 0.911 MB / 407.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.5377, allocations: 213.3 kB / 407.6 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005996/0.5438, allocations: 2.543 MB / 410.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.461e-05/0.5438, allocations: 16 kB / 410.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.246e-05/0.5439, allocations: 4 kB / 410.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.04e-05/0.5439, allocations: 7.969 kB / 410.2 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01424/0.5581, allocations: 5.567 MB / 415.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.539e-05/0.5582, allocations: 0 / 415.8 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001159/0.5594, allocations: 251.6 kB / 416 MB, free: 8.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001491/0.5609, allocations: 0.5296 MB / 416.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001516/0.5611, allocations: 31.98 kB / 416.6 MB, free: 7.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01023/0.5713, allocations: 7.566 MB / 424.1 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.283e-06/0.5714, allocations: 7.938 kB / 424.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007969/0.5794, allocations: 3.883 MB / 428 MB, free: 11.65 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001804/0.5812, allocations: 474.3 kB / 428.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008117/0.5821, allocations: 32 kB / 428.5 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001689/0.5838, allocations: 99.83 kB / 428.6 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003502/0.5842, allocations: 97.11 kB / 428.7 MB, free: 10.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/0.5843, allocations: 43.98 kB / 428.8 MB, free: 10.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.003746/0.5881, allocations: 1.307 MB / 430.1 MB, free: 9.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5881, allocations: 0 / 430.1 MB, free: 9.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00356/0.5917, allocations: 0.5548 MB / 430.6 MB, free: 9.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (123): * Single equations (assignments): 120 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,76.0%) 17,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005417/0.5922, allocations: 161.2 kB / 430.8 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00536/0.5976, allocations: 2.538 MB / 433.3 MB, free: 6.27 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.012e-05/0.5976, allocations: 0.9375 kB / 433.3 MB, free: 6.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002975/0.6006, allocations: 1.513 MB / 434.8 MB, free: 4.719 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004286/0.6049, allocations: 486.6 kB / 435.3 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01688/0.6218, allocations: 6.754 MB / 442.1 MB, free: 13.43 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003956/0.6258, allocations: 2.26 MB / 444.3 MB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002781/0.6287, allocations: 0.494 MB / 444.8 MB, free: 10.64 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009149/0.6296, allocations: 151.4 kB / 445 MB, free: 10.49 MB / 382.1 MB Notification: Performance of SimCode: time 2.003e-06/0.6296, allocations: 0 / 445 MB, free: 10.49 MB / 382.1 MB Notification: Performance of Templates: time 0.3763/1.006, allocations: 28.06 MB / 473 MB, free: 102.8 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: