Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 197.2 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.523/1.523, allocations: 225.4 MB / 240.1 MB, free: 15.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000913/0.0009132, allocations: 85.53 kB / 292.1 MB, free: 5.938 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.826e-05/3.838e-05, allocations: 4 kB / 350.7 MB, free: 2.434 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.1301, allocations: 51.49 MB / 402.2 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5612/0.6914, allocations: 159.9 MB / 0.5489 GB, free: 10.73 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002818/0.6917, allocations: 99.42 kB / 0.549 GB, free: 10.68 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.922/2.613, allocations: 405.6 MB / 0.945 GB, free: 29.69 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.134e-06/2.614, allocations: 0 / 0.945 GB, free: 29.69 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001789/2.615, allocations: 290.8 kB / 0.9453 GB, free: 29.66 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05637/2.672, allocations: 11.2 MB / 0.9562 GB, free: 26.16 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.552e-05/2.672, allocations: 14.41 kB / 0.9563 GB, free: 26.16 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01332/2.685, allocations: 1.909 MB / 0.9581 GB, free: 26.01 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03168/2.717, allocations: 4.6 MB / 0.9626 GB, free: 25.33 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03518/2.752, allocations: 9.745 MB / 0.9721 GB, free: 24.14 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001558/2.754, allocations: 0.8856 MB / 0.973 GB, free: 24.11 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006763/2.76, allocations: 1.16 MB / 0.9741 GB, free: 24.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0631/2.824, allocations: 18.32 MB / 0.992 GB, free: 22.61 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008799/2.825, allocations: 20.81 kB / 0.992 GB, free: 22.6 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006483/2.831, allocations: 0.5 MB / 0.9925 GB, free: 22.6 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001141/2.832, allocations: 0.7925 MB / 0.9933 GB, free: 22.57 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04023/2.872, allocations: 15.56 MB / 1.009 GB, free: 22.46 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1332/3.006, allocations: 62.6 MB / 1.07 GB, free: 4.465 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.456/3.462, allocations: 29.92 MB / 1.099 GB, free: 40.77 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007632/3.469, allocations: 4.024 MB / 1.103 GB, free: 40.71 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02473/3.494, allocations: 10.23 MB / 1.113 GB, free: 39.69 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.227e-05/3.494, allocations: 75.28 kB / 1.113 GB, free: 39.64 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=410): time 7.654e-06/3.494, allocations: 2.469 kB / 1.113 GB, free: 39.64 MB / 0.4948 GB Notification: Performance of matching and sorting (n=420): time 0.03321/3.528, allocations: 15.19 MB / 1.128 GB, free: 36.22 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.217e-05/3.528, allocations: 129.5 kB / 1.128 GB, free: 36.12 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01239/3.54, allocations: 4.522 MB / 1.132 GB, free: 35.76 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.001181/3.541, allocations: 95.73 kB / 1.132 GB, free: 35.73 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.004578/3.546, allocations: 5.346 MB / 1.138 GB, free: 32.98 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002326/3.548, allocations: 1.441 MB / 1.139 GB, free: 32.08 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007844/3.549, allocations: 130.8 kB / 1.139 GB, free: 32.08 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0004383/3.55, allocations: 0.565 MB / 1.14 GB, free: 31.76 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004712/3.554, allocations: 2.815 MB / 1.142 GB, free: 31.74 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007714/3.562, allocations: 5.286 MB / 1.148 GB, free: 28.74 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00768/3.57, allocations: 4.014 MB / 1.151 GB, free: 28.66 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000178/3.57, allocations: 22.84 kB / 1.151 GB, free: 28.66 MB / 0.4948 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.02054/3.59, allocations: 9.616 MB / 1.161 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 9.674e-05/3.591, allocations: 42.19 kB / 1.161 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000187/3.591, allocations: 78.97 kB / 1.161 GB, free: 28.07 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003319/3.594, allocations: 1.134 MB / 1.162 GB, free: 28.02 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006199/3.6, allocations: 1.457 MB / 1.164 GB, free: 28.02 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01413/3.615, allocations: 12.47 MB / 1.176 GB, free: 22.66 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007531/3.622, allocations: 370.2 kB / 1.176 GB, free: 22.64 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001631/3.624, allocations: 322.5 kB / 1.176 GB, free: 22.64 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001384/3.625, allocations: 0.5144 MB / 1.177 GB, free: 22.48 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00157/3.627, allocations: 0.5339 MB / 1.177 GB, free: 22.21 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/3.64, allocations: 7.074 MB / 1.184 GB, free: 21.68 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00669/3.646, allocations: 4.213 MB / 1.188 GB, free: 21.51 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.363e-05/3.647, allocations: 15.66 kB / 1.188 GB, free: 21.51 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.243e-05/3.647, allocations: 23.86 kB / 1.188 GB, free: 21.51 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03787/3.685, allocations: 17.05 MB / 1.205 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-05/3.685, allocations: 3.625 kB / 1.205 GB, free: 14.59 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003101/3.688, allocations: 0.6873 MB / 1.206 GB, free: 14.57 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003307/3.691, allocations: 1.188 MB / 1.207 GB, free: 14.27 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008645/3.692, allocations: 102.2 kB / 1.207 GB, free: 14.21 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/3.707, allocations: 16.02 MB / 1.223 GB, free: 2.305 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/3.707, allocations: 8.281 kB / 1.223 GB, free: 2.305 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01705/3.724, allocations: 10.85 MB / 1.233 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004016/3.728, allocations: 1.141 MB / 1.234 GB, free: 12.19 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001649/3.73, allocations: 86.75 kB / 1.234 GB, free: 12.13 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003659/3.734, allocations: 230.4 kB / 1.235 GB, free: 12.07 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008322/3.735, allocations: 307.8 kB / 1.235 GB, free: 12.02 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003023/3.735, allocations: 120.4 kB / 1.235 GB, free: 12 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.006938/3.742, allocations: 3.375 MB / 1.238 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.61e-07/3.742, allocations: 0 / 1.238 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01212/3.754, allocations: 2.043 MB / 1.24 GB, free: 10.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02296/3.777, allocations: 13.28 MB / 1.253 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.01485/3.792, allocations: 7.615 MB / 1.261 GB, free: 8.457 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.345e-05/3.792, allocations: 6.812 kB / 1.261 GB, free: 8.453 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.007975/3.8, allocations: 4.043 MB / 1.265 GB, free: 4.77 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008785/3.809, allocations: 1.313 MB / 1.266 GB, free: 3.766 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06228/3.871, allocations: 20.9 MB / 1.286 GB, free: 1.613 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3766/4.248, allocations: 7.899 MB / 1.294 GB, free: 95.34 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.008362/4.256, allocations: 1.998 MB / 1.296 GB, free: 95.28 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008559/4.265, allocations: 4.412 MB / 1.3 GB, free: 95.28 MB / 0.5417 GB Notification: Performance of SimCode: time 2.124e-06/4.265, allocations: 1.859 kB / 1.3 GB, free: 95.28 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2592/4.524, allocations: 162.6 MB / 1.459 GB, free: 32.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002198/4.524, allocations: 236.9 kB / 1.459 GB, free: 32.62 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.36/11.88, allocations: 0 / 1.459 GB, free: 32.62 MB / 0.5417 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat does not exist to compare? outputFormat=mat