Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005245/0.005245, allocations: 102.6 kB / 15.73 MB, free: 6.492 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.001279/0.001279, allocations: 195 kB / 16.68 MB, free: 6.375 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.449/1.449, allocations: 205.1 MB / 222.5 MB, free: 4.496 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.001186/0.001186, allocations: 59.28 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1093, allocations: 46.61 MB / 373.2 MB, free: 1.309 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource): time 0.0176/0.1269, allocations: 15.84 MB / 389 MB, free: 1.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01259/0.1396, allocations: 5.393 MB / 394.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004068/0.1437, allocations: 95.62 kB / 394.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004296/0.1481, allocations: 1.157 MB / 395.7 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005872/0.154, allocations: 1.398 MB / 397.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003286/0.1573, allocations: 0.9664 MB / 398 MB, free: 8.352 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006809/0.1641, allocations: 3.975 MB / 402 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00511/0.1693, allocations: 3.56 MB / 405.6 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003625/0.1729, allocations: 1.889 MB / 407.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004246/0.1772, allocations: 2.265 MB / 409.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001013/0.1783, allocations: 0.5195 MB / 410.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001921/0.1802, allocations: 0.738 MB / 411 MB, free: 11.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001138/0.1813, allocations: 1.282 MB / 412.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002608/0.184, allocations: 2.252 MB / 414.5 MB, free: 7.762 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007434/0.1914, allocations: 6.889 MB / 421.4 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.844e-06/0.1914, allocations: 4 kB / 421.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1915, allocations: 0 / 421.4 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001835/0.1916, allocations: 0 / 421.4 MB, free: 0.8477 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.01232/0.204, allocations: 4.665 MB / 426.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.204, allocations: 11.89 kB / 426.1 MB, free: 12.1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002995/0.207, allocations: 0.6675 MB / 426.7 MB, free: 11.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004803/0.2119, allocations: 2.373 MB / 429.1 MB, free: 9 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002064/0.2121, allocations: 263.3 kB / 429.4 MB, free: 8.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006713/0.2128, allocations: 352 kB / 429.7 MB, free: 8.398 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008691/0.2215, allocations: 4.456 MB / 434.2 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.441e-05/0.2216, allocations: 11.88 kB / 434.2 MB, free: 3.875 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003255/0.222, allocations: 140 kB / 434.3 MB, free: 3.738 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001859/0.2222, allocations: 162.8 kB / 434.5 MB, free: 3.578 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007028/0.2292, allocations: 3.731 MB / 438.2 MB, free: 15.84 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02801/0.2572, allocations: 14.32 MB / 452.5 MB, free: 1.094 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2832/0.5405, allocations: 5.362 MB / 457.9 MB, free: 62.29 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002962/0.5435, allocations: 1.257 MB / 459.2 MB, free: 62.28 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008767/0.5523, allocations: 3.787 MB / 462.9 MB, free: 60.98 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.255e-05/0.5524, allocations: 48.48 kB / 463 MB, free: 60.94 MB / 382.1 MB Notification: Performance of pre-optimization done (n=127): time 5.68e-06/0.5524, allocations: 1.156 kB / 463 MB, free: 60.94 MB / 382.1 MB Notification: Performance of matching and sorting (n=131): time 0.01223/0.5646, allocations: 5.463 MB / 468.5 MB, free: 58.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.822e-05/0.5647, allocations: 66.44 kB / 468.5 MB, free: 58.14 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004414/0.5692, allocations: 2.108 MB / 470.6 MB, free: 57.31 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003268/0.5695, allocations: 48.95 kB / 470.7 MB, free: 57.27 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001289/0.5708, allocations: 1.652 MB / 472.3 MB, free: 56.01 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005137/0.5713, allocations: 461.9 kB / 472.8 MB, free: 55.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006116/0.572, allocations: 345.1 kB / 473.1 MB, free: 55.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.2e-05/0.572, allocations: 302.2 kB / 473.4 MB, free: 55.19 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001329/0.5734, allocations: 0.7117 MB / 474.1 MB, free: 54.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.5751, allocations: 1.356 MB / 475.5 MB, free: 53.85 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002372/0.5775, allocations: 2.222 MB / 477.7 MB, free: 52.33 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.14e-05/0.5776, allocations: 7.906 kB / 477.7 MB, free: 52.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=234) (initialization): time 0.003693/0.5813, allocations: 2.518 MB / 480.2 MB, free: 51.21 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.332e-05/0.5813, allocations: 11.84 kB / 480.2 MB, free: 51.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.842e-05/0.5813, allocations: 23.34 kB / 480.3 MB, free: 51.21 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003896/0.5817, allocations: 144.6 kB / 480.4 MB, free: 51.15 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001523/0.5833, allocations: 462.3 kB / 480.9 MB, free: 51.11 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002091/0.5854, allocations: 3.359 MB / 484.2 MB, free: 47.92 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001871/0.5873, allocations: 107.6 kB / 484.3 MB, free: 47.89 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001298/0.5874, allocations: 89.34 kB / 484.4 MB, free: 47.87 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 93 * 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 (227): * Single equations (assignments): 224 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 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): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002073/0.5895, allocations: 1.048 MB / 485.5 MB, free: 47.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005401/0.59, allocations: 219.2 kB / 485.7 MB, free: 47.18 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003167/0.5932, allocations: 2.176 MB / 487.8 MB, free: 45.87 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.5932, allocations: 13.25 kB / 487.9 MB, free: 45.87 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/0.5932, allocations: 3.344 kB / 487.9 MB, free: 45.87 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.187e-05/0.5933, allocations: 3.984 kB / 487.9 MB, free: 45.87 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007075/0.6003, allocations: 5.158 MB / 493 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.574e-06/0.6004, allocations: 0 / 493 MB, free: 41.52 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009074/0.6013, allocations: 232.4 kB / 493.2 MB, free: 41.29 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006098/0.6019, allocations: 278.2 kB / 493.5 MB, free: 41.01 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-05/0.602, allocations: 35.98 kB / 493.6 MB, free: 40.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004982/0.607, allocations: 7.794 MB / 0.4896 GB, free: 32.65 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/0.607, allocations: 5.75 kB / 0.4896 GB, free: 32.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00426/0.6113, allocations: 3.184 MB / 0.4927 GB, free: 29.37 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.6124, allocations: 458.3 kB / 0.4931 GB, free: 28.9 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002408/0.6126, allocations: 33.06 kB / 0.4932 GB, free: 28.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009138/0.6136, allocations: 71.92 kB / 0.4932 GB, free: 28.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/0.6138, allocations: 88.88 kB / 0.4933 GB, free: 28.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.271e-05/0.6139, allocations: 35.98 kB / 0.4934 GB, free: 28.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001884/0.6157, allocations: 1.431 MB / 0.4948 GB, free: 27.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6158, allocations: 0 / 0.4948 GB, free: 27.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002161/0.6179, allocations: 0.5547 MB / 0.4953 GB, free: 26.68 MB / 382.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.stator.core.Phi.re,smpm.stator.core.Phi.im,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 (112): * Single equations (assignments): 108 * 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 {(1,5,100.0%), (1,1,100.0%), (1,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003299/0.6183, allocations: 162.7 kB / 0.4955 GB, free: 26.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002762/0.621, allocations: 2.105 MB / 0.4975 GB, free: 24.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.6211, allocations: 4.25 kB / 0.4975 GB, free: 24.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001574/0.6226, allocations: 1.379 MB / 0.4989 GB, free: 22.94 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00234/0.625, allocations: 0.5567 MB / 0.4994 GB, free: 22.39 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009428/0.6344, allocations: 6.052 MB / 0.5053 GB, free: 16.29 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001888/0.6364, allocations: 2.417 MB / 0.5077 GB, free: 13.84 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001728/0.6381, allocations: 0.4907 MB / 0.5082 GB, free: 13.35 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003929/0.6385, allocations: 151.4 kB / 0.5083 GB, free: 13.2 MB / 382.1 MB Notification: Performance of SimCode: time 1.202e-06/0.6385, allocations: 0 / 0.5083 GB, free: 13.2 MB / 382.1 MB Notification: Performance of Templates: time 0.05464/0.6932, allocations: 27.13 MB / 0.5348 GB, free: 2.07 MB / 398.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_VoltageSource.pipe 2>&1)