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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.00136/0.001361, allocations: 99.14 kB / 16.99 MB, free: 6.402 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001824/0.001824, allocations: 201.4 kB / 17.9 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002587/0.0002588, allocations: 8 kB / 306.7 MB, free: 1.238 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.121, allocations: 51.5 MB / 358.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.2952/0.4163, allocations: 30.35 MB / 388.6 MB, free: 4.953 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0262/0.4426, allocations: 9.865 MB / 398.4 MB, free: 13.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01049/0.4531, allocations: 237.2 kB / 398.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01148/0.4646, allocations: 2.025 MB / 400.7 MB, free: 12.6 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01764/0.4823, allocations: 3.475 MB / 404.2 MB, free: 10.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007994/0.4903, allocations: 1.576 MB / 405.8 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0285/0.5189, allocations: 11.33 MB / 417.1 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04883/0.5677, allocations: 20.19 MB / 437.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01221/0.58, allocations: 4.82 MB / 442.1 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01244/0.5925, allocations: 5.326 MB / 447.4 MB, free: 3.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005018/0.5976, allocations: 0.7852 MB / 448.2 MB, free: 2.324 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008576/0.6062, allocations: 1.117 MB / 449.3 MB, free: 1.207 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006102/0.6124, allocations: 2.43 MB / 451.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007161/0.6196, allocations: 2.632 MB / 454.4 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02888/0.6485, allocations: 22.59 MB / 477 MB, free: 5.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.6485, allocations: 4 kB / 477 MB, free: 5.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.296e-06/0.6485, allocations: 0 / 477 MB, free: 5.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000947/0.6495, allocations: 0 / 477 MB, free: 5.473 MB / 382.1 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.0425/0.692, allocations: 13.33 MB / 490.3 MB, free: 8.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/0.6921, allocations: 8.031 kB / 490.3 MB, free: 8.016 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009467/0.7016, allocations: 1.926 MB / 492.2 MB, free: 6.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03779/0.7394, allocations: 6.357 MB / 498.6 MB, free: 15.7 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02323/0.7627, allocations: 8.225 MB / 0.4949 GB, free: 7.395 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001168/0.7639, allocations: 0.907 MB / 0.4958 GB, free: 6.484 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005533/0.7695, allocations: 1.195 MB / 0.497 GB, free: 5.289 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05956/0.829, allocations: 18.59 MB / 0.5151 GB, free: 2.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008101/0.8299, allocations: 15.84 kB / 0.5152 GB, free: 2.574 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005122/0.835, allocations: 0.4999 MB / 0.5157 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008524/0.8359, allocations: 0.6537 MB / 0.5163 GB, free: 1.418 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04419/0.8801, allocations: 16.93 MB / 0.5328 GB, free: 480 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5616/1.442, allocations: 64.02 MB / 0.5953 GB, free: 77.83 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02054/1.462, allocations: 30 MB / 0.6246 GB, free: 49.3 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01721/1.48, allocations: 10.16 MB / 0.6346 GB, free: 39.1 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.172e-05/1.48, allocations: 77.84 kB / 0.6346 GB, free: 39.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=416): time 6.452e-06/1.48, allocations: 0 / 0.6346 GB, free: 39.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=426): time 0.03872/1.518, allocations: 20.57 MB / 0.6547 GB, free: 18.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.379e-05/1.519, allocations: 124.7 kB / 0.6548 GB, free: 17.89 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006103/1.525, allocations: 5.028 MB / 0.6597 GB, free: 12.87 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006658/1.525, allocations: 89.7 kB / 0.6598 GB, free: 12.78 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002408/1.528, allocations: 5.349 MB / 0.6651 GB, free: 7.395 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001381/1.529, allocations: 1.465 MB / 0.6665 GB, free: 5.941 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/1.529, allocations: 132 kB / 0.6666 GB, free: 5.812 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0002779/1.53, allocations: 0.5631 MB / 0.6672 GB, free: 5.242 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003744/1.534, allocations: 2.909 MB / 0.67 GB, free: 2.328 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00546/1.539, allocations: 5.373 MB / 0.6752 GB, free: 11.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006392/1.545, allocations: 4.071 MB / 0.6792 GB, free: 7.711 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.868e-05/1.545, allocations: 24 kB / 0.6792 GB, free: 7.688 MB / 462.1 MB Notification: Performance of matching and sorting (n=841) (initialization): time 0.01853/1.564, allocations: 9.798 MB / 0.6888 GB, free: 13.82 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.573e-05/1.564, allocations: 40 kB / 0.6889 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001449/1.564, allocations: 80 kB / 0.6889 GB, free: 13.7 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003104/1.567, allocations: 1.125 MB / 0.69 GB, free: 12.56 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005702/1.573, allocations: 1.466 MB / 0.6915 GB, free: 11.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01645/1.59, allocations: 12.73 MB / 0.7039 GB, free: 13.83 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005838/1.596, allocations: 359.6 kB / 0.7042 GB, free: 13.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001442/1.597, allocations: 320 kB / 0.7045 GB, free: 13.16 MB / 494.1 MB 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (774): * Single equations (assignments): 765 * 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,52.0%) 46,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009676/1.607, allocations: 4.236 MB / 0.7087 GB, free: 8.914 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002061/1.609, allocations: 0.5325 MB / 0.7092 GB, free: 8.375 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01487/1.624, allocations: 7.277 MB / 0.7163 GB, free: 1 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2047/1.828, allocations: 4.325 MB / 0.7205 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.355e-05/1.828, allocations: 14.91 kB / 0.7205 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.094e-05/1.829, allocations: 24.47 kB / 0.7206 GB, free: 155.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02855/1.857, allocations: 17.18 MB / 0.7373 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.016e-05/1.857, allocations: 5.156 kB / 0.7373 GB, free: 149.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002877/1.86, allocations: 0.7082 MB / 0.738 GB, free: 149.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002803/1.863, allocations: 1.165 MB / 0.7392 GB, free: 149.3 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003126/1.863, allocations: 106.2 kB / 0.7393 GB, free: 149.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01527/1.878, allocations: 16.26 MB / 0.7552 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/1.879, allocations: 10.62 kB / 0.7552 GB, free: 137.3 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01488/1.893, allocations: 11.16 MB / 0.7661 GB, free: 132 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002649/1.896, allocations: 1.126 MB / 0.7672 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007982/1.897, allocations: 90.83 kB / 0.7672 GB, free: 131.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002306/1.899, allocations: 221.1 kB / 0.7675 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005756/1.9, allocations: 305 kB / 0.7678 GB, free: 131.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002367/1.9, allocations: 129.2 kB / 0.7679 GB, free: 131.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004219/1.904, allocations: 3.353 MB / 0.7711 GB, free: 129.6 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.082e-06/1.904, allocations: 0 / 0.7711 GB, free: 129.6 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00595/1.91, allocations: 1.965 MB / 0.7731 GB, free: 127.6 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (364): * Single equations (assignments): 354 * 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%) 1,(1,100.0%) 8,(2,100.0%) 13,(1,100.0%) 1,(10,52.0%) 46} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01276/1.923, allocations: 12.9 MB / 0.7857 GB, free: 116.2 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009229/1.932, allocations: 7.821 MB / 0.7933 GB, free: 109.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.932, allocations: 0 / 0.7933 GB, free: 109.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005073/1.937, allocations: 4.151 MB / 0.7974 GB, free: 105.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005078/1.942, allocations: 1.316 MB / 0.7986 GB, free: 104.4 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3504/2.293, allocations: 117.1 MB / 0.9129 GB, free: 152.4 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01164/2.305, allocations: 7.58 MB / 0.9203 GB, free: 149.9 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.006422/2.311, allocations: 2.006 MB / 0.9223 GB, free: 149.7 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006219/2.317, allocations: 4.381 MB / 0.9266 GB, free: 146 MB / 494.1 MB Notification: Performance of SimCode: time 8.12e-07/2.317, allocations: 0 / 0.9266 GB, free: 146 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.197/3.514, allocations: 152.6 MB / 1.076 GB, free: 3.152 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.174/3.688, allocations: 268.4 kB / 1.076 GB, free: 213.6 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.005/9.694, allocations: 1.781 kB / 1.076 GB, free: 213.6 MB / 494.1 MB (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