Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001177, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.247/1.247, allocations: 227.2 MB / 245 MB, free: 7.652 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008072/0.0008071, allocations: 94.45 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002759, allocations: 4 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2109/0.2112, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2984/0.5097, allocations: 111.3 MB / 0.5086 GB, free: 44.98 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002528/0.51, allocations: 92.69 kB / 0.5087 GB, free: 44.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1212/0.6312, allocations: 55.3 MB / 0.5627 GB, free: 31.83 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.535e-06/0.6312, allocations: 0 / 0.5627 GB, free: 31.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001664/0.6314, allocations: 70.56 kB / 0.5627 GB, free: 31.81 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.005626/0.637, allocations: 2.99 MB / 0.5656 GB, free: 30.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.157e-05/0.6371, allocations: 11.72 kB / 0.5657 GB, free: 30.03 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006275/0.6377, allocations: 365.2 kB / 0.566 GB, free: 29.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008466/0.6386, allocations: 367 kB / 0.5663 GB, free: 29.74 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003634/0.6422, allocations: 1.941 MB / 0.5682 GB, free: 28.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000125/0.6424, allocations: 191.8 kB / 0.5684 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003388/0.6427, allocations: 254.4 kB / 0.5687 GB, free: 28.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00476/0.6475, allocations: 3.379 MB / 0.572 GB, free: 27.8 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.581e-05/0.6476, allocations: 11.83 kB / 0.572 GB, free: 27.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002256/0.6478, allocations: 111.7 kB / 0.5721 GB, free: 27.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.515e-05/0.6479, allocations: 115.8 kB / 0.5722 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004256/0.6522, allocations: 2.773 MB / 0.5749 GB, free: 26.08 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01454/0.6667, allocations: 10.92 MB / 0.5856 GB, free: 14.87 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002337/0.6691, allocations: 2.478 MB / 0.588 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002568/0.6694, allocations: 130.4 kB / 0.5881 GB, free: 12.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.6694, allocations: 55.75 kB / 0.5882 GB, free: 12.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.408e-06/0.6694, allocations: 0 / 0.5882 GB, free: 12.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.0133/0.6827, allocations: 7.318 MB / 0.5953 GB, free: 4.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.376e-05/0.6828, allocations: 94.42 kB / 0.5954 GB, free: 4.461 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002115/0.685, allocations: 1.583 MB / 0.5969 GB, free: 2.883 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.7e-05/0.6851, allocations: 53.64 kB / 0.597 GB, free: 2.824 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005636/0.6856, allocations: 1.214 MB / 0.5982 GB, free: 1.594 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002808/0.6859, allocations: 0.5006 MB / 0.5987 GB, free: 1.086 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.948e-05/0.686, allocations: 32 kB / 0.5987 GB, free: 1.055 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.353e-05/0.6861, allocations: 381.8 kB / 0.5991 GB, free: 0.6758 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001102/0.6872, allocations: 0.855 MB / 0.5999 GB, free: 15.82 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001565/0.6888, allocations: 1.313 MB / 0.6012 GB, free: 14.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001499/0.6903, allocations: 1.037 MB / 0.6022 GB, free: 13.28 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.144e-06/0.6903, allocations: 4 kB / 0.6022 GB, free: 13.28 MB / 394.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004461/0.6948, allocations: 2.864 MB / 0.605 GB, free: 10.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002294/0.6971, allocations: 5.577 MB / 0.6104 GB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.741e-05/0.6971, allocations: 19.95 kB / 0.6105 GB, free: 4.309 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001618/0.6988, allocations: 0.6745 MB / 0.6111 GB, free: 3.621 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001474/0.7003, allocations: 371.4 kB / 0.6115 GB, free: 3.258 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009293/0.7096, allocations: 8.498 MB / 0.6198 GB, free: 10.35 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00191/0.7115, allocations: 115.8 kB / 0.6199 GB, free: 10.24 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/0.7117, allocations: 68 kB / 0.6199 GB, free: 10.17 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.878e-06/0.7117, allocations: 4 kB / 0.62 GB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00419/0.7159, allocations: 2.646 MB / 0.6225 GB, free: 7.508 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/0.716, allocations: 16 kB / 0.6226 GB, free: 7.492 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00151/0.7175, allocations: 0.6673 MB / 0.6232 GB, free: 6.812 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001298/0.7188, allocations: 371.4 kB / 0.6236 GB, free: 6.449 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009205/0.728, allocations: 8.507 MB / 0.6319 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001822/0.7299, allocations: 99.91 kB / 0.632 GB, free: 13.45 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001542/0.73, allocations: 67.98 kB / 0.632 GB, free: 13.38 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * 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 (183): * Single equations (assignments): 179 * 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 {(2,100.0%) 9,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.001951/0.732, allocations: 0.9352 MB / 0.6329 GB, free: 12.43 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004944/0.7325, allocations: 205.6 kB / 0.6331 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004569/0.7371, allocations: 2.633 MB / 0.6357 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-05/0.7371, allocations: 12 kB / 0.6357 GB, free: 9.562 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.728e-06/0.7371, allocations: 4 kB / 0.6357 GB, free: 9.559 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.218e-05/0.7371, allocations: 7.922 kB / 0.6357 GB, free: 9.551 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009155/0.7463, allocations: 5.414 MB / 0.641 GB, free: 4.031 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.205e-06/0.7463, allocations: 4.141 kB / 0.641 GB, free: 4.027 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009948/0.7473, allocations: 239.7 kB / 0.6412 GB, free: 3.793 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.7491, allocations: 0.6902 MB / 0.6419 GB, free: 3.09 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.7492, allocations: 31.98 kB / 0.642 GB, free: 3.059 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01163/0.7609, allocations: 10.02 MB / 0.6517 GB, free: 8.492 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.7609, allocations: 3.938 kB / 0.6517 GB, free: 8.488 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006163/0.7671, allocations: 3.963 MB / 0.6556 GB, free: 4.414 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/0.7684, allocations: 474.4 kB / 0.6561 GB, free: 3.93 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002398/0.7687, allocations: 28 kB / 0.6561 GB, free: 3.902 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001014/0.7697, allocations: 107.9 kB / 0.6562 GB, free: 3.797 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002939/0.77, allocations: 117.1 kB / 0.6563 GB, free: 3.684 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.6e-05/0.7701, allocations: 36 kB / 0.6563 GB, free: 3.648 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001945/0.7721, allocations: 1.232 MB / 0.6575 GB, free: 2.426 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.7721, allocations: 4 kB / 0.6576 GB, free: 2.422 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003176/0.7753, allocations: 1.039 MB / 0.6586 GB, free: 1.383 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.w) * 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 (113): * Single equations (assignments): 109 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 9,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.006521/0.7818, allocations: 5.405 MB / 0.6638 GB, free: 11.88 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.006741/0.7886, allocations: 4.552 MB / 0.6683 GB, free: 7.211 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7886, allocations: 0 / 0.6683 GB, free: 7.211 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002372/0.791, allocations: 1.744 MB / 0.67 GB, free: 5.422 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00268/0.7937, allocations: 0.5815 MB / 0.6706 GB, free: 4.852 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2119/1.006, allocations: 25.84 MB / 0.6958 GB, free: 106.1 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001597/1.007, allocations: 2.152 MB / 0.6979 GB, free: 105.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001868/1.009, allocations: 0.592 MB / 0.6985 GB, free: 105.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001035/1.01, allocations: 0.9858 MB / 0.6994 GB, free: 105.4 MB / 458.7 MB Notification: Performance of SimCode: time 1.062e-06/1.01, allocations: 0 / 0.6994 GB, free: 105.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08103/1.091, allocations: 62.58 MB / 0.7606 GB, free: 78.14 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/1.091, allocations: 239.3 kB / 0.7608 GB, free: 77.91 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.617/4.708, allocations: 0 / 0.7608 GB, free: 77.91 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat