Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009278/0.0009278, allocations: 95.86 kB / 16.93 MB, free: 5.984 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.001135/0.001136, allocations: 180.2 kB / 17.82 MB, free: 5.652 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.28/1.28, allocations: 205.4 MB / 224 MB, free: 13.16 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.0004514/0.0004514, allocations: 12 kB / 280.9 MB, free: 3.613 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1016, allocations: 47.58 MB / 328.5 MB, free: 3.969 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.03355/0.1352, allocations: 33.46 MB / 361.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02361/0.1588, allocations: 10.69 MB / 372.6 MB, free: 7.676 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007706/0.1666, allocations: 251.1 kB / 372.8 MB, free: 7.43 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009003/0.1757, allocations: 2.227 MB / 375.1 MB, free: 5.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01474/0.1904, allocations: 3.817 MB / 378.9 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1779/0.3683, allocations: 1.851 MB / 380.7 MB, free: 11.14 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.02033/0.3887, allocations: 10.63 MB / 391.4 MB, free: 11.12 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03592/0.4246, allocations: 20.1 MB / 411.5 MB, free: 8.414 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009576/0.4343, allocations: 4.785 MB / 416.3 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009337/0.4437, allocations: 5.543 MB / 421.8 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002322/0.446, allocations: 0.7852 MB / 422.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004303/0.4503, allocations: 1.096 MB / 423.7 MB, free: 2.602 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001945/0.4523, allocations: 2.594 MB / 426.3 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004492/0.4568, allocations: 2.671 MB / 428.9 MB, free: 468 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02514/0.482, allocations: 22.47 MB / 451.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.351e-06/0.482, allocations: 0 / 451.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.999e-06/0.4821, allocations: 0 / 451.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.001154/0.4832, allocations: 0 / 451.4 MB, free: 13.18 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: 3597 * Number of variables: 3597 Notification: Performance of Generate backend data structure: time 0.0399/0.5231, allocations: 13.29 MB / 464.7 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.5232, allocations: 8.031 kB / 464.7 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006823/0.53, allocations: 1.838 MB / 466.5 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04857/0.5786, allocations: 9.113 MB / 475.7 MB, free: 5.969 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01894/0.5976, allocations: 7.596 MB / 483.3 MB, free: 14.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00114/0.5988, allocations: 0.9792 MB / 484.2 MB, free: 13.77 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005261/0.6041, allocations: 1.272 MB / 485.5 MB, free: 12.51 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05803/0.6621, allocations: 20.31 MB / 0.494 GB, free: 8.141 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000561/0.6628, allocations: 27.56 kB / 0.494 GB, free: 8.117 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004837/0.6676, allocations: 0.5219 MB / 0.4945 GB, free: 7.609 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000985/0.6686, allocations: 0.7572 MB / 0.4952 GB, free: 6.852 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04587/0.7145, allocations: 19.13 MB / 0.5139 GB, free: 3.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4673/1.182, allocations: 65.1 MB / 0.5775 GB, free: 88.11 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02924/1.211, allocations: 57.21 MB / 0.6334 GB, free: 30.16 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02088/1.232, allocations: 11.76 MB / 0.6448 GB, free: 22.44 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.298e-05/1.232, allocations: 76.89 kB / 0.6449 GB, free: 22.37 MB / 430.1 MB Notification: Performance of pre-optimization done (n=371): time 5.991e-06/1.232, allocations: 1.203 kB / 0.6449 GB, free: 22.37 MB / 430.1 MB Notification: Performance of matching and sorting (n=413): time 0.03224/1.264, allocations: 18.01 MB / 0.6625 GB, free: 8.059 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/1.265, allocations: 96.08 kB / 0.6626 GB, free: 7.953 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007469/1.272, allocations: 5.539 MB / 0.668 GB, free: 2.438 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007554/1.273, allocations: 93.7 kB / 0.6681 GB, free: 2.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003687/1.277, allocations: 6.046 MB / 0.674 GB, free: 12.26 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001948/1.278, allocations: 1.451 MB / 0.6754 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004833/1.279, allocations: 160 kB / 0.6756 GB, free: 10.67 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005076/1.28, allocations: 0.6246 MB / 0.6762 GB, free: 10.04 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005322/1.285, allocations: 3.139 MB / 0.6793 GB, free: 6.902 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007929/1.293, allocations: 6.847 MB / 0.6859 GB, free: 14.27 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007381/1.3, allocations: 4.668 MB / 0.6905 GB, free: 9.582 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.327e-05/1.3, allocations: 40 kB / 0.6905 GB, free: 9.543 MB / 462.1 MB Notification: Performance of matching and sorting (n=1014) (initialization): time 0.02173/1.322, allocations: 11.01 MB / 0.7013 GB, free: 14.47 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/1.322, allocations: 60.72 kB / 0.7013 GB, free: 14.41 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002489/1.322, allocations: 129.5 kB / 0.7015 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002515/1.325, allocations: 0.9879 MB / 0.7024 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007345/1.332, allocations: 1.868 MB / 0.7043 GB, free: 11.41 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01243/1.345, allocations: 9.717 MB / 0.7137 GB, free: 1.289 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007102/1.352, allocations: 463.1 kB / 0.7142 GB, free: 0.8359 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001748/1.354, allocations: 432.1 kB / 0.7146 GB, free: 424 kB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * 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 (965): * Single equations (assignments): 960 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,65.6%) 38} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.2301/1.584, allocations: 4.513 MB / 0.719 GB, free: 157 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00149/1.585, allocations: 0.5702 MB / 0.7196 GB, free: 157 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01268/1.598, allocations: 6.785 MB / 0.7262 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.982e-05/1.598, allocations: 42.12 kB / 0.7262 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.011e-05/1.598, allocations: 15.23 kB / 0.7262 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.55e-05/1.598, allocations: 23.48 kB / 0.7263 GB, free: 155.9 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02797/1.626, allocations: 16.58 MB / 0.7425 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.545e-05/1.626, allocations: 7.219 kB / 0.7425 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003418/1.63, allocations: 0.7998 MB / 0.7432 GB, free: 149.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002281/1.632, allocations: 0.7843 MB / 0.744 GB, free: 149 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005736/1.633, allocations: 90.34 kB / 0.7441 GB, free: 148.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008834/1.641, allocations: 8.842 MB / 0.7527 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.971e-06/1.641, allocations: 12.84 kB / 0.7527 GB, free: 142.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01424/1.656, allocations: 10.48 MB / 0.763 GB, free: 137.9 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003305/1.659, allocations: 1.138 MB / 0.7641 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001176/1.66, allocations: 75.41 kB / 0.7642 GB, free: 137.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00275/1.663, allocations: 233.1 kB / 0.7644 GB, free: 137.1 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005665/1.664, allocations: 283.9 kB / 0.7646 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002475/1.664, allocations: 120.3 kB / 0.7648 GB, free: 136.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.005985/1.67, allocations: 3.621 MB / 0.7683 GB, free: 133.7 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.67, allocations: 3.938 kB / 0.7683 GB, free: 133.7 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.009624/1.68, allocations: 2.044 MB / 0.7703 GB, free: 131.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.w,quadraticSpeedDependentTorqueQS.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 (394): * Single equations (assignments): 389 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(8,62.5%) 38} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0151/1.695, allocations: 11.93 MB / 0.782 GB, free: 119.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01163/1.706, allocations: 8.248 MB / 0.79 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 9.368e-06/1.706, allocations: 0 / 0.79 GB, free: 111.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005854/1.712, allocations: 3.667 MB / 0.7936 GB, free: 107.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006785/1.719, allocations: 1.292 MB / 0.7948 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3498/2.069, allocations: 152.6 MB / 0.9438 GB, free: 121.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01029/2.079, allocations: 7.904 MB / 0.9516 GB, free: 118.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.007136/2.086, allocations: 2.402 MB / 0.9539 GB, free: 117.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006223/2.093, allocations: 4.662 MB / 0.9585 GB, free: 113.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.293e-06/2.093, allocations: 2.812 kB / 0.9585 GB, free: 113.2 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3805/2.473, allocations: 154.4 MB / 1.109 GB, free: 130.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001299/2.473, allocations: 269 kB / 1.109 GB, free: 130.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.324/7.797, allocations: 3.938 kB / 1.109 GB, free: 130.3 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat does not exist to compare? outputFormat=mat