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.007366/0.007366, allocations: 104.2 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.001316/0.001316, allocations: 195.2 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.61/1.61, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001231/0.001231, allocations: 47.47 kB / 326.6 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.114, allocations: 46.62 MB / 373.2 MB, free: 1.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_VoltageSource): time 0.01421/0.1282, allocations: 11.61 MB / 384.8 MB, free: 5.652 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007792/0.1361, allocations: 3.949 MB / 388.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002028/0.1382, allocations: 67.69 kB / 388.8 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002604/0.1408, allocations: 0.9278 MB / 389.7 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003385/0.1442, allocations: 0.9903 MB / 390.7 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.1454, allocations: 0.5227 MB / 391.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003394/0.1488, allocations: 3.294 MB / 394.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003108/0.1519, allocations: 2.985 MB / 397.5 MB, free: 8.812 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002065/0.154, allocations: 1.534 MB / 399.1 MB, free: 7.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00244/0.1565, allocations: 1.973 MB / 401 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005281/0.157, allocations: 424 kB / 401.4 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001022/0.158, allocations: 0.5233 MB / 402 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.1591, allocations: 1.223 MB / 403.2 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002006/0.1611, allocations: 1.878 MB / 405.1 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005248/0.1664, allocations: 5.518 MB / 410.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.762e-06/0.1664, allocations: 0 / 410.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.1664, allocations: 0 / 410.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.708e-05/0.1665, allocations: 4 kB / 410.6 MB, free: 11.7 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: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007346/0.1739, allocations: 3.806 MB / 414.4 MB, free: 7.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.1739, allocations: 15.89 kB / 414.4 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009692/0.1749, allocations: 392.5 kB / 414.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003054/0.178, allocations: 1.946 MB / 416.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001612/0.1781, allocations: 222 kB / 417 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004109/0.1786, allocations: 287.8 kB / 417.2 MB, free: 4.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006061/0.1846, allocations: 3.697 MB / 420.9 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.629e-05/0.1847, allocations: 7.906 kB / 420.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002425/0.185, allocations: 120 kB / 421.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001391/0.1851, allocations: 141.5 kB / 421.2 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005093/0.1902, allocations: 3.106 MB / 424.3 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0203/0.2105, allocations: 11.5 MB / 435.8 MB, free: 1.934 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002549/0.2131, allocations: 1.904 MB / 437.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001736/0.2149, allocations: 1.072 MB / 438.8 MB, free: 14.83 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003109/0.2152, allocations: 203.2 kB / 439 MB, free: 14.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.2153, allocations: 51.56 kB / 439 MB, free: 14.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=125): time 3.336e-06/0.2153, allocations: 0 / 439 MB, free: 14.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=140): time 0.01365/0.229, allocations: 6.535 MB / 445.6 MB, free: 7.867 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.229, allocations: 64.72 kB / 445.6 MB, free: 7.793 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003687/0.2327, allocations: 1.983 MB / 447.6 MB, free: 5.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001128/0.2329, allocations: 49.7 kB / 447.7 MB, free: 5.715 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.2339, allocations: 1.416 MB / 449.1 MB, free: 4.281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004397/0.2344, allocations: 485 kB / 449.6 MB, free: 3.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005354/0.2349, allocations: 331.2 kB / 449.9 MB, free: 3.469 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.2351, allocations: 305.1 kB / 450.2 MB, free: 3.168 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/0.2364, allocations: 0.8237 MB / 451 MB, free: 2.344 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001825/0.2383, allocations: 1.379 MB / 452.4 MB, free: 0.7148 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.339/0.5773, allocations: 2.362 MB / 454.7 MB, free: 67.3 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.191e-05/0.5774, allocations: 5.844 kB / 454.7 MB, free: 67.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=228) (initialization): time 0.005589/0.583, allocations: 2.851 MB / 457.6 MB, free: 66.61 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.021e-05/0.583, allocations: 12.94 kB / 457.6 MB, free: 66.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.827e-05/0.5831, allocations: 23.52 kB / 457.6 MB, free: 66.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.5842, allocations: 383.7 kB / 458 MB, free: 66.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001597/0.5858, allocations: 431.6 kB / 458.4 MB, free: 66.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006363/0.5922, allocations: 6.7 MB / 465.1 MB, free: 61.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002116/0.5943, allocations: 124.6 kB / 465.2 MB, free: 61.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000177/0.5945, allocations: 80.81 kB / 465.3 MB, free: 61.09 MB / 382.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.002412/0.5969, allocations: 0.9127 MB / 466.2 MB, free: 60.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008289/0.5978, allocations: 208.8 kB / 466.4 MB, free: 60.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00565/0.6034, allocations: 2.424 MB / 468.9 MB, free: 59.58 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.449e-05/0.6035, allocations: 17.06 kB / 468.9 MB, free: 59.58 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/0.6035, allocations: 4.125 kB / 468.9 MB, free: 59.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/0.6035, allocations: 10.88 kB / 468.9 MB, free: 59.58 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01144/0.615, allocations: 5.507 MB / 474.4 MB, free: 57.28 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.615, allocations: 3.938 kB / 474.4 MB, free: 57.28 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001032/0.6161, allocations: 260.2 kB / 474.7 MB, free: 57.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009779/0.617, allocations: 405 kB / 475.1 MB, free: 57.14 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.28e-05/0.6172, allocations: 42.91 kB / 475.1 MB, free: 57.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006988/0.6241, allocations: 8.25 MB / 483.4 MB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.6242, allocations: 7 kB / 483.4 MB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005684/0.6299, allocations: 3.609 MB / 487 MB, free: 47.9 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001399/0.6313, allocations: 463.1 kB / 487.4 MB, free: 47.44 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006846/0.632, allocations: 35.98 kB / 487.5 MB, free: 47.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001515/0.6335, allocations: 91.89 kB / 487.5 MB, free: 47.31 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002245/0.6338, allocations: 105 kB / 487.6 MB, free: 47.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.648e-05/0.6339, allocations: 47.98 kB / 487.7 MB, free: 47.16 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003086/0.637, allocations: 1.361 MB / 489.1 MB, free: 45.78 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.637, allocations: 0 / 489.1 MB, free: 45.78 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003159/0.6401, allocations: 0.5351 MB / 489.6 MB, free: 45.25 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.0005858/0.6407, allocations: 207.1 kB / 489.8 MB, free: 45.05 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003933/0.6447, allocations: 2.493 MB / 492.3 MB, free: 42.5 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.285e-06/0.6447, allocations: 4 kB / 492.3 MB, free: 42.5 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001799/0.6465, allocations: 1.493 MB / 493.8 MB, free: 40.96 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003067/0.6496, allocations: 0.531 MB / 494.3 MB, free: 40.45 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01078/0.6604, allocations: 5.662 MB / 500 MB, free: 34.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002592/0.663, allocations: 2.205 MB / 0.4904 GB, free: 32.52 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001657/0.6647, allocations: 0.494 MB / 0.4909 GB, free: 32.02 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00067/0.6654, allocations: 151.4 kB / 0.491 GB, free: 31.87 MB / 382.1 MB Notification: Performance of SimCode: time 2.555e-06/0.6654, allocations: 0 / 0.491 GB, free: 31.87 MB / 382.1 MB Notification: Performance of Templates: time 0.05954/0.7249, allocations: 30.12 MB / 0.5205 GB, free: 1.719 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)