Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001116/0.001116, allocations: 91.5 kB / 16.98 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001038/0.001038, allocations: 205 kB / 17.89 MB, free: 5.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.3 MB / 245.9 MB, free: 10.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002668, allocations: 8 kB / 306.7 MB, free: 1.242 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1231/0.1234, allocations: 51.5 MB / 358.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking): time 0.01548/0.139, allocations: 13.1 MB / 371.3 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.2556/0.3947, allocations: 5.152 MB / 376.5 MB, free: 9.359 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00528/0.4, allocations: 91.56 kB / 376.6 MB, free: 9.355 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005095/0.4051, allocations: 0.9355 MB / 377.5 MB, free: 9.215 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008711/0.4139, allocations: 1.427 MB / 378.9 MB, free: 9.117 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003593/0.4175, allocations: 0.7369 MB / 379.7 MB, free: 9.059 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006724/0.4243, allocations: 2.762 MB / 382.4 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003434/0.4277, allocations: 2.208 MB / 384.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003018/0.4308, allocations: 1.242 MB / 385.9 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00348/0.4343, allocations: 1.475 MB / 387.3 MB, free: 7.895 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006259/0.4349, allocations: 201.1 kB / 387.5 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001969/0.4369, allocations: 383.5 kB / 387.9 MB, free: 7.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008249/0.4377, allocations: 0.7587 MB / 388.7 MB, free: 7.527 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001483/0.4392, allocations: 0.7371 MB / 389.4 MB, free: 7.078 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005751/0.445, allocations: 5.245 MB / 394.7 MB, free: 3.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.445, allocations: 1.25 kB / 394.7 MB, free: 3.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.445, allocations: 0 / 394.7 MB, free: 3.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002091/0.4452, allocations: 0 / 394.7 MB, free: 3.734 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 818 * Number of variables: 818 Notification: Performance of Generate backend data structure: time 0.01051/0.4557, allocations: 3.699 MB / 398.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.675e-05/0.4558, allocations: 8.75 kB / 398.4 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001392/0.4572, allocations: 449.1 kB / 398.8 MB, free: 0.9844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003347/0.4606, allocations: 0.6369 MB / 399.4 MB, free: 0.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005337/0.4659, allocations: 2.235 MB / 401.7 MB, free: 15.06 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.4661, allocations: 237.7 kB / 401.9 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006617/0.4668, allocations: 318.2 kB / 402.2 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008127/0.4749, allocations: 4.127 MB / 406.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.952e-05/0.4751, allocations: 4 kB / 406.4 MB, free: 11.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000306/0.4754, allocations: 132 kB / 406.5 MB, free: 11.82 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001551/0.4755, allocations: 142 kB / 406.6 MB, free: 11.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006539/0.4821, allocations: 3.553 MB / 410.2 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02455/0.5067, allocations: 13.89 MB / 424.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005728/0.5124, allocations: 6.167 MB / 430.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006453/0.5189, allocations: 3.338 MB / 433.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.704e-05/0.519, allocations: 50.17 kB / 433.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=141): time 4.147e-06/0.519, allocations: 0 / 433.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=145): time 0.01356/0.5326, allocations: 6.596 MB / 440.2 MB, free: 8.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.5327, allocations: 90.42 kB / 440.3 MB, free: 8.484 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002997/0.5357, allocations: 1.863 MB / 442.2 MB, free: 6.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001261/0.5359, allocations: 49.7 kB / 442.2 MB, free: 6.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001083/0.5369, allocations: 1.463 MB / 443.7 MB, free: 5.043 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004343/0.5374, allocations: 492.9 kB / 444.2 MB, free: 4.555 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.691e-05/0.5375, allocations: 32 kB / 444.2 MB, free: 4.523 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.5377, allocations: 377.9 kB / 444.6 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001301/0.539, allocations: 0.7574 MB / 445.3 MB, free: 3.391 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00173/0.5407, allocations: 1.278 MB / 446.6 MB, free: 1.883 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001469/0.5422, allocations: 0.9511 MB / 447.5 MB, free: 0.9297 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.147e-06/0.5422, allocations: 4 kB / 447.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of matching and sorting (n=227) (initialization): time 0.004654/0.5469, allocations: 2.709 MB / 450.3 MB, free: 14.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.002923/0.5498, allocations: 6.685 MB / 456.9 MB, free: 6.945 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.717e-05/0.5499, allocations: 19.98 kB / 457 MB, free: 6.926 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001209/0.5511, allocations: 0.5 MB / 457.5 MB, free: 6.414 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00147/0.5526, allocations: 378.8 kB / 457.8 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007486/0.5601, allocations: 7.199 MB / 465 MB, free: 14.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002159/0.5623, allocations: 103.8 kB / 465.1 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001671/0.5624, allocations: 76 kB / 465.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.077e-05/0.5625, allocations: 4 kB / 465.2 MB, free: 14.27 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004109/0.5666, allocations: 2.48 MB / 467.7 MB, free: 11.75 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.84e-05/0.5666, allocations: 16 kB / 467.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.5677, allocations: 0.4956 MB / 468.2 MB, free: 11.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001314/0.569, allocations: 371.4 kB / 468.6 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007223/0.5763, allocations: 7.205 MB / 475.8 MB, free: 3.262 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001904/0.5782, allocations: 87.84 kB / 475.9 MB, free: 3.176 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001765/0.5784, allocations: 76 kB / 475.9 MB, free: 3.102 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (195): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * 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: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.002644/0.581, allocations: 1.071 MB / 477 MB, free: 2.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005708/0.5816, allocations: 209.5 kB / 477.2 MB, free: 1.812 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00423/0.5859, allocations: 2.466 MB / 479.7 MB, free: 15.29 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.515e-05/0.5859, allocations: 23.98 kB / 479.7 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.5859, allocations: 4 kB / 479.7 MB, free: 15.26 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.5859, allocations: 3.984 kB / 479.7 MB, free: 15.25 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008584/0.5945, allocations: 5.289 MB / 485 MB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.268e-06/0.5946, allocations: 4 kB / 485 MB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008445/0.5954, allocations: 191.7 kB / 485.2 MB, free: 9.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00141/0.5968, allocations: 0.6289 MB / 485.8 MB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.912e-05/0.5969, allocations: 32 kB / 485.8 MB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01094/0.6079, allocations: 11.26 MB / 497.1 MB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.055e-05/0.6079, allocations: 4 kB / 497.1 MB, free: 13.01 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005648/0.6136, allocations: 3.764 MB / 0.4891 GB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/0.6149, allocations: 466.8 kB / 0.4896 GB, free: 8.602 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003155/0.6152, allocations: 28 kB / 0.4896 GB, free: 8.574 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009277/0.6162, allocations: 79.92 kB / 0.4897 GB, free: 8.496 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003093/0.6165, allocations: 125 kB / 0.4898 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.481e-05/0.6166, allocations: 43.98 kB / 0.4898 GB, free: 8.332 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002084/0.6187, allocations: 1.255 MB / 0.4911 GB, free: 7.055 MB / 414.1 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6187, allocations: 0 / 0.4911 GB, free: 7.055 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003828/0.6225, allocations: 1.066 MB / 0.4921 GB, free: 5.988 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,inertiaLoad.phi) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (97): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.006077/0.6286, allocations: 4.9 MB / 0.4969 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006095/0.6347, allocations: 4.174 MB / 0.501 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 9.517e-06/0.6348, allocations: 4 kB / 0.501 GB, free: 12.66 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002495/0.6373, allocations: 1.782 MB / 0.5027 GB, free: 10.82 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/0.6403, allocations: 0.6013 MB / 0.5033 GB, free: 10.22 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2428/0.8831, allocations: 28.18 MB / 0.5308 GB, free: 144.5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002356/0.8855, allocations: 2.38 MB / 0.5331 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002187/0.8877, allocations: 0.5404 MB / 0.5337 GB, free: 143.7 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/0.889, allocations: 1.145 MB / 0.5348 GB, free: 143.7 MB / 446.1 MB Notification: Performance of SimCode: time 8.92e-07/0.889, allocations: 0 / 0.5348 GB, free: 143.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0939/0.9829, allocations: 58.93 MB / 0.5923 GB, free: 100.5 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002458/0.9832, allocations: 267.7 kB / 0.5926 GB, free: 100.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.193/4.176, allocations: 3.844 kB / 0.5926 GB, free: 100.1 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat