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.001567/0.001567, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.001871/0.001871, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.372/1.372, allocations: 205.1 MB / 223.3 MB, free: 12.4 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.001158/0.001158, allocations: 47.94 kB / 279.3 MB, free: 3.555 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1162, allocations: 46.63 MB / 326 MB, free: 4.863 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01893/0.1352, allocations: 14.93 MB / 340.9 MB, free: 5.859 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009211/0.1445, allocations: 5.051 MB / 345.9 MB, free: 0.793 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002605/0.1471, allocations: 79.69 kB / 346 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003367/0.1505, allocations: 0.9328 MB / 347 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00394/0.1545, allocations: 1.127 MB / 348.1 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00232/0.1568, allocations: 0.8342 MB / 348.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005041/0.1619, allocations: 3.752 MB / 352.7 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00319/0.1651, allocations: 2.715 MB / 355.4 MB, free: 7.258 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001984/0.1671, allocations: 1.448 MB / 356.8 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002246/0.1693, allocations: 1.914 MB / 358.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004822/0.1698, allocations: 299.9 kB / 359 MB, free: 3.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001194/0.171, allocations: 0.4958 MB / 359.5 MB, free: 3.094 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000821/0.1719, allocations: 0.9423 MB / 360.5 MB, free: 2.148 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001786/0.1737, allocations: 1.839 MB / 362.3 MB, free: 308 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004914/0.1786, allocations: 6.048 MB / 368.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.665e-06/0.1786, allocations: 4 kB / 368.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1786, allocations: 4 kB / 368.4 MB, free: 10.23 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001431/0.1788, allocations: 0 / 368.4 MB, free: 10.23 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.008762/0.1876, allocations: 4.223 MB / 372.6 MB, free: 5.93 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.733e-05/0.1876, allocations: 12.03 kB / 372.6 MB, free: 5.918 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002672/0.1903, allocations: 0.625 MB / 373.2 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003358/0.1937, allocations: 2.097 MB / 375.3 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001757/0.1939, allocations: 242.8 kB / 375.6 MB, free: 2.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004243/0.1943, allocations: 315.8 kB / 375.9 MB, free: 2.59 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1512/0.3455, allocations: 4.032 MB / 379.9 MB, free: 48.7 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.373e-05/0.3456, allocations: 8.547 kB / 379.9 MB, free: 48.7 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002903/0.3459, allocations: 129.4 kB / 380 MB, free: 48.7 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001594/0.3461, allocations: 144.1 kB / 380.2 MB, free: 48.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006467/0.3525, allocations: 3.375 MB / 383.6 MB, free: 47.48 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02129/0.3739, allocations: 13.33 MB / 396.9 MB, free: 38.97 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0034/0.3773, allocations: 3.975 MB / 400.9 MB, free: 35.31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001439/0.3788, allocations: 1.003 MB / 401.9 MB, free: 34.83 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003997/0.3828, allocations: 2.663 MB / 404.5 MB, free: 32.83 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.3828, allocations: 43.53 kB / 404.6 MB, free: 32.78 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.505e-06/0.3828, allocations: 3.969 kB / 404.6 MB, free: 32.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.01011/0.393, allocations: 5.986 MB / 410.6 MB, free: 29.3 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.116e-05/0.393, allocations: 68.33 kB / 410.6 MB, free: 29.23 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/0.3952, allocations: 1.893 MB / 412.5 MB, free: 27.29 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.911e-05/0.3953, allocations: 49.7 kB / 412.6 MB, free: 27.23 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006288/0.396, allocations: 1.5 MB / 414.1 MB, free: 25.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002646/0.3963, allocations: 496.6 kB / 414.6 MB, free: 25.24 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004097/0.3967, allocations: 331.2 kB / 414.9 MB, free: 24.91 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.445e-05/0.3967, allocations: 305.1 kB / 415.2 MB, free: 24.61 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009841/0.3977, allocations: 0.773 MB / 416 MB, free: 23.84 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001159/0.3989, allocations: 1.371 MB / 417.3 MB, free: 22.2 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002188/0.4011, allocations: 2.319 MB / 419.6 MB, free: 19.61 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.836e-06/0.4011, allocations: 4 kB / 419.6 MB, free: 19.61 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.003476/0.4046, allocations: 2.47 MB / 422.1 MB, free: 17.12 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.236e-05/0.4046, allocations: 23.88 kB / 422.1 MB, free: 17.1 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.317e-05/0.4047, allocations: 20 kB / 422.2 MB, free: 17.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003413/0.405, allocations: 118.5 kB / 422.3 MB, free: 16.95 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001619/0.4066, allocations: 491.5 kB / 422.8 MB, free: 16.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007313/0.4074, allocations: 1.304 MB / 424.1 MB, free: 15.04 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001449/0.4089, allocations: 119.8 kB / 424.2 MB, free: 14.92 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.409, allocations: 79.98 kB / 424.3 MB, free: 14.84 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.001418/0.4104, allocations: 0.9966 MB / 425.3 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003552/0.4108, allocations: 201.5 kB / 425.4 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002793/0.4136, allocations: 1.961 MB / 427.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.558e-06/0.4136, allocations: 15.94 kB / 427.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.4136, allocations: 0 / 427.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.4136, allocations: 7.969 kB / 427.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007776/0.4214, allocations: 4.993 MB / 432.4 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.4215, allocations: 0 / 432.4 MB, free: 6.574 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001326/0.4228, allocations: 323.8 kB / 432.7 MB, free: 6.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003001/0.4231, allocations: 94.53 kB / 432.8 MB, free: 6.156 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001115/0.4232, allocations: 31.98 kB / 432.9 MB, free: 6.125 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006787/0.4239, allocations: 1.276 MB / 434.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.4239, allocations: 0 / 434.1 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004003/0.4279, allocations: 3.081 MB / 437.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001113/0.4291, allocations: 462.5 kB / 437.7 MB, free: 1.102 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005575/0.4297, allocations: 24 kB / 437.7 MB, free: 1.078 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001245/0.4309, allocations: 79.91 kB / 437.8 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.4311, allocations: 89.19 kB / 437.9 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.61e-05/0.4312, allocations: 39.98 kB / 437.9 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002558/0.4338, allocations: 1.278 MB / 439.2 MB, free: 15.57 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4338, allocations: 4 kB / 439.2 MB, free: 15.56 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.002454/0.4362, allocations: 0.5386 MB / 439.7 MB, free: 15.03 MB / 334.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.0004512/0.4367, allocations: 170.7 kB / 439.9 MB, free: 14.86 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.004064/0.4408, allocations: 2.213 MB / 442.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.4408, allocations: 4.188 kB / 442.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001781/0.4426, allocations: 1.17 MB / 443.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003316/0.4459, allocations: 485.2 kB / 443.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01388/0.4598, allocations: 7.007 MB / 450.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002906/0.4628, allocations: 2.263 MB / 453 MB, free: 1.547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.002193/0.465, allocations: 0.5092 MB / 453.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006376/0.4657, allocations: 151.4 kB / 453.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of SimCode: time 1.853e-06/0.4657, allocations: 4 kB / 453.7 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of Templates: time 0.04624/0.5119, allocations: 25.08 MB / 478.8 MB, free: 7.789 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)