Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005777/0.005777, allocations: 101.2 kB / 15.73 MB, free: 6.055 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.001281/0.001281, allocations: 199.5 kB / 16.68 MB, free: 5.969 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.4/1.4, allocations: 205.1 MB / 222.5 MB, free: 4.484 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.001215/0.001215, allocations: 53.73 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1086, allocations: 46.63 MB / 373.2 MB, free: 1.285 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01672/0.1254, allocations: 15.11 MB / 388.3 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01209/0.1375, allocations: 5.116 MB / 393.4 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003367/0.1409, allocations: 83.69 kB / 393.5 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003825/0.1448, allocations: 1.118 MB / 394.6 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005548/0.1504, allocations: 1.297 MB / 395.9 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002798/0.1532, allocations: 0.9079 MB / 396.8 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006197/0.1594, allocations: 3.62 MB / 400.4 MB, free: 5.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005505/0.165, allocations: 3.258 MB / 403.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003602/0.1686, allocations: 1.725 MB / 405.4 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004065/0.1727, allocations: 2.043 MB / 407.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001617/0.1743, allocations: 480 kB / 407.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0028/0.1772, allocations: 0.6833 MB / 408.6 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00213/0.1793, allocations: 1.137 MB / 409.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004242/0.1836, allocations: 2.046 MB / 411.8 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007574/0.1912, allocations: 6.258 MB / 418.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.1912, allocations: 0 / 418.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.1912, allocations: 0 / 418.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001703/0.1914, allocations: 0 / 418.1 MB, free: 4.172 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: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.01078/0.2022, allocations: 4.234 MB / 422.3 MB, free: 15.86 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.097e-05/0.2023, allocations: 11.89 kB / 422.3 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002832/0.2051, allocations: 0.6212 MB / 422.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003794/0.2089, allocations: 2.14 MB / 425.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.2091, allocations: 230.7 kB / 425.3 MB, free: 12.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004886/0.2096, allocations: 320 kB / 425.6 MB, free: 12.49 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00656/0.2162, allocations: 4.043 MB / 429.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.248e-05/0.2163, allocations: 0 / 429.7 MB, free: 8.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002757/0.2166, allocations: 128 kB / 429.8 MB, free: 8.262 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/0.2167, allocations: 150.2 kB / 429.9 MB, free: 8.113 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005665/0.2224, allocations: 3.374 MB / 433.3 MB, free: 4.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02245/0.2449, allocations: 13.17 MB / 446.5 MB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004503/0.2494, allocations: 3.958 MB / 450.4 MB, free: 2.645 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001958/0.2514, allocations: 0.9801 MB / 451.4 MB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2643/0.5158, allocations: 2.655 MB / 454.1 MB, free: 68.01 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.5159, allocations: 45.48 kB / 454.1 MB, free: 67.97 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 5.611e-06/0.5159, allocations: 0.5625 kB / 454.1 MB, free: 67.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.0136/0.5295, allocations: 5.988 MB / 460.1 MB, free: 66.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.5296, allocations: 66.53 kB / 460.2 MB, free: 66.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003626/0.5333, allocations: 1.89 MB / 462.1 MB, free: 65.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001094/0.5334, allocations: 47.55 kB / 462.1 MB, free: 65.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/0.5346, allocations: 1.498 MB / 463.6 MB, free: 64.16 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004178/0.535, allocations: 0.4886 MB / 464.1 MB, free: 63.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005951/0.5356, allocations: 329.4 kB / 464.4 MB, free: 63.61 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.302e-05/0.5357, allocations: 306.4 kB / 464.7 MB, free: 63.31 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001252/0.537, allocations: 0.7687 MB / 465.5 MB, free: 63.02 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001536/0.5385, allocations: 1.382 MB / 466.9 MB, free: 61.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002758/0.5413, allocations: 2.312 MB / 469.2 MB, free: 60.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.5413, allocations: 10.88 kB / 469.2 MB, free: 60.44 MB / 382.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004359/0.5457, allocations: 2.467 MB / 471.6 MB, free: 59.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.198e-05/0.5457, allocations: 16.47 kB / 471.7 MB, free: 59.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.192e-05/0.5458, allocations: 23.66 kB / 471.7 MB, free: 59.39 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003817/0.5462, allocations: 122.5 kB / 471.8 MB, free: 59.33 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001743/0.5479, allocations: 487.3 kB / 472.3 MB, free: 59.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008203/0.5487, allocations: 1.415 MB / 473.7 MB, free: 57.87 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/0.5505, allocations: 118.6 kB / 473.8 MB, free: 57.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001429/0.5507, allocations: 77.94 kB / 473.9 MB, free: 57.82 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001896/0.5526, allocations: 0.988 MB / 474.9 MB, free: 57.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004849/0.5531, allocations: 208.2 kB / 475.1 MB, free: 57.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002942/0.556, allocations: 1.956 MB / 477 MB, free: 56.3 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.588e-05/0.556, allocations: 15.75 kB / 477 MB, free: 56.3 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/0.5561, allocations: 0 / 477 MB, free: 56.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.333e-05/0.5561, allocations: 7.453 kB / 477.1 MB, free: 56.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006983/0.5631, allocations: 4.985 MB / 482 MB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.5631, allocations: 3.938 kB / 482 MB, free: 53.7 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001244/0.5643, allocations: 325.8 kB / 482.4 MB, free: 53.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002752/0.5646, allocations: 90.53 kB / 482.5 MB, free: 53.46 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.243e-05/0.5647, allocations: 31.98 kB / 482.5 MB, free: 53.43 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007096/0.5654, allocations: 1.371 MB / 483.9 MB, free: 51.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.5655, allocations: 9.688 kB / 483.9 MB, free: 51.92 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003873/0.5693, allocations: 3.084 MB / 486.9 MB, free: 48.78 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009735/0.5703, allocations: 454.5 kB / 487.4 MB, free: 48.31 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000215/0.5706, allocations: 31.94 kB / 487.4 MB, free: 48.28 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008903/0.5715, allocations: 79.97 kB / 487.5 MB, free: 48.2 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001493/0.5716, allocations: 85.19 kB / 487.6 MB, free: 48.12 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.588e-05/0.5717, allocations: 39.98 kB / 487.6 MB, free: 48.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001639/0.5734, allocations: 1.285 MB / 488.9 MB, free: 46.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5734, allocations: 0 / 488.9 MB, free: 46.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002075/0.5754, allocations: 0.5287 MB / 489.4 MB, free: 46.24 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0003284/0.5758, allocations: 175.5 kB / 489.6 MB, free: 46.07 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003041/0.5788, allocations: 2.212 MB / 491.8 MB, free: 43.81 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/0.5789, allocations: 5.172 kB / 491.8 MB, free: 43.81 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001301/0.5802, allocations: 1.182 MB / 493 MB, free: 42.57 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002694/0.5829, allocations: 0.5082 MB / 493.5 MB, free: 42.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/0.5931, allocations: 5.567 MB / 499.1 MB, free: 36.49 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002754/0.5959, allocations: 2.255 MB / 0.4896 GB, free: 34.2 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001923/0.5978, allocations: 0.5152 MB / 0.4901 GB, free: 33.69 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006445/0.5985, allocations: 155.4 kB / 0.4902 GB, free: 33.54 MB / 382.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5985, allocations: 0 / 0.4902 GB, free: 33.54 MB / 382.1 MB Notification: Performance of Templates: time 0.04776/0.6463, allocations: 26.58 MB / 0.5162 GB, free: 6.938 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)