Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.00106/0.00106, allocations: 91.34 kB / 16.65 MB, free: 6.586 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.0009395/0.0009396, allocations: 183 kB / 17.56 MB, free: 6.203 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.375/1.375, allocations: 205.4 MB / 223.7 MB, free: 13.08 MB / 190.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.0004869/0.0004871, allocations: 11.98 kB / 280.7 MB, free: 3.418 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09704/0.09753, allocations: 47.59 MB / 328.3 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01486/0.1124, allocations: 14.22 MB / 342.6 MB, free: 5.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01121/0.1237, allocations: 4.993 MB / 347.5 MB, free: 464 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003318/0.1271, allocations: 83.62 kB / 347.6 MB, free: 380 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003479/0.1306, allocations: 0.925 MB / 348.6 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004803/0.1354, allocations: 1.119 MB / 349.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002574/0.138, allocations: 0.8264 MB / 350.5 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005626/0.1436, allocations: 3.736 MB / 354.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003365/0.147, allocations: 2.696 MB / 356.9 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002106/0.1491, allocations: 1.221 MB / 358.2 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002045/0.1512, allocations: 1.653 MB / 359.8 MB, free: 4.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003494/0.1515, allocations: 196 kB / 360 MB, free: 3.895 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001046/0.1526, allocations: 419.7 kB / 360.4 MB, free: 3.484 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006982/0.1533, allocations: 0.8016 MB / 361.2 MB, free: 2.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001728/0.1551, allocations: 1.688 MB / 362.9 MB, free: 0.9766 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005687/0.1607, allocations: 5.839 MB / 368.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1608, allocations: 0 / 368.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.1608, allocations: 0 / 368.7 MB, free: 11.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001586/0.161, allocations: 0 / 368.7 MB, free: 11.12 MB / 318.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.008484/0.1694, allocations: 3.579 MB / 372.3 MB, free: 7.465 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.1695, allocations: 12.03 kB / 372.3 MB, free: 7.453 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003057/0.1726, allocations: 0.6134 MB / 372.9 MB, free: 6.836 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003722/0.1763, allocations: 2.101 MB / 375 MB, free: 4.68 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002081/0.1765, allocations: 250.8 kB / 375.3 MB, free: 4.434 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004866/0.177, allocations: 307.9 kB / 375.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006952/0.184, allocations: 4.039 MB / 379.6 MB, free: 32 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.908e-05/0.1841, allocations: 7.906 kB / 379.6 MB, free: 24 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.1884/0.3725, allocations: 125.8 kB / 379.8 MB, free: 49.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002415/0.3728, allocations: 146 kB / 379.9 MB, free: 49.81 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007998/0.3808, allocations: 3.383 MB / 383.3 MB, free: 48.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02128/0.4021, allocations: 13.38 MB / 396.7 MB, free: 40.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003651/0.4058, allocations: 3.962 MB / 400.6 MB, free: 37.04 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001457/0.4073, allocations: 1.017 MB / 401.6 MB, free: 36.55 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003767/0.4111, allocations: 2.666 MB / 404.3 MB, free: 34.55 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.4111, allocations: 43.5 kB / 404.4 MB, free: 34.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 3.557e-06/0.4111, allocations: 3.969 kB / 404.4 MB, free: 34.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.009873/0.421, allocations: 6.005 MB / 410.4 MB, free: 30.16 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.4211, allocations: 64.72 kB / 410.4 MB, free: 30.09 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002231/0.4233, allocations: 1.889 MB / 412.3 MB, free: 28.15 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.449e-05/0.4234, allocations: 49.7 kB / 412.4 MB, free: 28.1 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006638/0.4241, allocations: 1.5 MB / 413.9 MB, free: 26.59 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002704/0.4244, allocations: 0.4889 MB / 414.3 MB, free: 26.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.4245, allocations: 145.6 kB / 414.5 MB, free: 25.96 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.744e-05/0.4246, allocations: 309.1 kB / 414.8 MB, free: 25.65 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009384/0.4255, allocations: 0.7699 MB / 415.6 MB, free: 24.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.4267, allocations: 1.381 MB / 416.9 MB, free: 23.23 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002255/0.429, allocations: 2.316 MB / 419.3 MB, free: 20.65 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/0.429, allocations: 8 kB / 419.3 MB, free: 20.64 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003231/0.4322, allocations: 2.477 MB / 421.7 MB, free: 18.14 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.655e-05/0.4323, allocations: 12 kB / 421.8 MB, free: 18.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/0.4323, allocations: 20 kB / 421.8 MB, free: 18.11 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003209/0.4326, allocations: 120 kB / 421.9 MB, free: 17.99 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/0.4342, allocations: 495.2 kB / 422.4 MB, free: 17.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007657/0.435, allocations: 1.319 MB / 423.7 MB, free: 16.05 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001382/0.4364, allocations: 116 kB / 423.8 MB, free: 15.94 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/0.4365, allocations: 83.98 kB / 423.9 MB, free: 15.86 MB / 318.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.001525/0.4381, allocations: 0.9774 MB / 424.9 MB, free: 14.87 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002718/0.4383, allocations: 205.4 kB / 425.1 MB, free: 14.67 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002654/0.441, allocations: 1.961 MB / 427 MB, free: 12.69 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.126e-05/0.441, allocations: 16 kB / 427 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.441, allocations: 3.984 kB / 427.1 MB, free: 12.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.441, allocations: 11.42 kB / 427.1 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006296/0.4473, allocations: 5 MB / 432.1 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.4474, allocations: 0 / 432.1 MB, free: 7.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001242/0.4486, allocations: 311.6 kB / 432.4 MB, free: 7.285 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000273/0.4489, allocations: 98.78 kB / 432.5 MB, free: 7.18 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.506e-05/0.449, allocations: 35.92 kB / 432.5 MB, free: 7.145 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006405/0.4496, allocations: 1.281 MB / 433.8 MB, free: 5.727 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.4497, allocations: 7.938 kB / 433.8 MB, free: 5.719 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003704/0.4534, allocations: 3.081 MB / 436.9 MB, free: 2.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007974/0.4542, allocations: 466.5 kB / 437.3 MB, free: 2.105 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002168/0.4544, allocations: 32 kB / 437.4 MB, free: 2.074 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009301/0.4553, allocations: 83.41 kB / 437.4 MB, free: 1.996 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.4555, allocations: 93.12 kB / 437.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.998e-05/0.4556, allocations: 36 kB / 437.6 MB, free: 1.867 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00162/0.4572, allocations: 1.289 MB / 438.9 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4572, allocations: 0 / 438.9 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001533/0.4588, allocations: 0.5283 MB / 439.4 MB, free: 28 kB / 318.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.0003493/0.4591, allocations: 167.6 kB / 439.5 MB, free: 15.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003283/0.4624, allocations: 2.219 MB / 441.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.4624, allocations: 0 / 441.8 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001534/0.464, allocations: 1.184 MB / 442.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002841/0.4668, allocations: 491.1 kB / 443.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01123/0.4781, allocations: 7.077 MB / 450.5 MB, free: 4.746 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002114/0.4802, allocations: 2.259 MB / 452.8 MB, free: 2.453 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.001993/0.4822, allocations: 0.5132 MB / 453.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000446/0.4827, allocations: 151.4 kB / 453.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of SimCode: time 9.32e-07/0.4827, allocations: 0 / 453.4 MB, free: 1.789 MB / 334.1 MB Notification: Performance of Templates: time 0.0519/0.5346, allocations: 24.82 MB / 478.2 MB, free: 8.957 MB / 366.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1)