Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.503/1.503, allocations: 221.5 MB / 230.3 MB, free: 7.523 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009339/0.0009339, allocations: 91.61 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.625e-05/1.627e-05, allocations: 4 kB / 337.1 MB, free: 9.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09529/0.09532, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3549/0.4503, allocations: 109.7 MB / 497.3 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.4505, allocations: 83.95 kB / 497.4 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1356/0.5861, allocations: 54.51 MB / 0.539 GB, free: 10.01 MB / 426.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.5862, allocations: 0 / 0.539 GB, free: 10.01 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001774/0.5864, allocations: 71.94 kB / 0.539 GB, free: 9.938 MB / 426.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.00491/0.5913, allocations: 2.664 MB / 0.5416 GB, free: 7.211 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.5913, allocations: 12.02 kB / 0.5416 GB, free: 7.199 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009179/0.5922, allocations: 356 kB / 0.542 GB, free: 6.848 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00328/0.5955, allocations: 1.933 MB / 0.5439 GB, free: 4.859 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.977e-05/0.5956, allocations: 80 kB / 0.5439 GB, free: 4.781 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003068/0.5959, allocations: 147.9 kB / 0.5441 GB, free: 4.637 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004271/0.6002, allocations: 2.548 MB / 0.5466 GB, free: 2.082 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2141/0.8144, allocations: 2.959 MB / 0.5495 GB, free: 99.56 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001112/0.8145, allocations: 14.62 kB / 0.5495 GB, free: 99.56 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003231/0.8149, allocations: 4.734 kB / 0.5495 GB, free: 99.56 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000176/0.815, allocations: 111.1 kB / 0.5496 GB, free: 99.55 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.017/0.832, allocations: 10.41 MB / 0.5598 GB, free: 96.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002595/0.8347, allocations: 2.354 MB / 0.5621 GB, free: 96.06 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00148/0.8362, allocations: 1.01 MB / 0.563 GB, free: 96.05 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002972/0.8365, allocations: 140.7 kB / 0.5632 GB, free: 95.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.846e-05/0.8365, allocations: 49.34 kB / 0.5632 GB, free: 95.91 MB / 426.7 MB Notification: Performance of pre-optimization done (n=136): time 3.105e-06/0.8366, allocations: 0 / 0.5632 GB, free: 95.91 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.008891/0.8455, allocations: 4.951 MB / 0.5681 GB, free: 95.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.34e-05/0.8455, allocations: 92.89 kB / 0.5681 GB, free: 95.03 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/0.8474, allocations: 1.323 MB / 0.5694 GB, free: 94.87 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.988e-05/0.8475, allocations: 25.7 kB / 0.5695 GB, free: 94.84 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006115/0.8481, allocations: 1.216 MB / 0.5706 GB, free: 94.39 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003076/0.8484, allocations: 496.2 kB / 0.5711 GB, free: 94.07 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.55e-05/0.8485, allocations: 1 kB / 0.5711 GB, free: 94.07 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.261e-05/0.8486, allocations: 373.9 kB / 0.5715 GB, free: 93.76 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001024/0.8497, allocations: 0.7932 MB / 0.5723 GB, free: 93.76 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001405/0.8511, allocations: 1.23 MB / 0.5735 GB, free: 93.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.8524, allocations: 0.976 MB / 0.5744 GB, free: 93.23 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.043e-05/0.8525, allocations: 4.969 kB / 0.5744 GB, free: 93.23 MB / 426.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003705/0.8562, allocations: 2.611 MB / 0.577 GB, free: 92.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008441/0.857, allocations: 5.524 MB / 0.5824 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.937e-05/0.8571, allocations: 14.84 kB / 0.5824 GB, free: 86.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001298/0.8584, allocations: 0.6641 MB / 0.583 GB, free: 86.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/0.8597, allocations: 372.1 kB / 0.5834 GB, free: 86.37 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006374/0.866, allocations: 7.944 MB / 0.5911 GB, free: 80.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001669/0.8677, allocations: 75.86 kB / 0.5912 GB, free: 80.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001578/0.8679, allocations: 77.3 kB / 0.5913 GB, free: 80.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.487e-06/0.8679, allocations: 5.062 kB / 0.5913 GB, free: 80.88 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003174/0.8711, allocations: 2.383 MB / 0.5936 GB, free: 80.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.736e-05/0.8711, allocations: 14.72 kB / 0.5936 GB, free: 80.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.8723, allocations: 0.6651 MB / 0.5943 GB, free: 79.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001185/0.8735, allocations: 362.2 kB / 0.5946 GB, free: 79.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006331/0.8799, allocations: 7.953 MB / 0.6024 GB, free: 74.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001562/0.8815, allocations: 65.09 kB / 0.6024 GB, free: 74.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000134/0.8816, allocations: 76.08 kB / 0.6025 GB, free: 74.34 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 () * 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.0003733/0.882, allocations: 163.3 kB / 0.6027 GB, free: 74.2 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003036/0.885, allocations: 2.238 MB / 0.6049 GB, free: 73.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000303/0.8854, allocations: 183.8 kB / 0.605 GB, free: 73.25 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003358/0.8887, allocations: 2.419 MB / 0.6074 GB, free: 72.33 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.8887, allocations: 16.25 kB / 0.6074 GB, free: 72.33 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.8888, allocations: 3.969 kB / 0.6074 GB, free: 72.33 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.478e-05/0.8888, allocations: 7.312 kB / 0.6074 GB, free: 72.33 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00696/0.8957, allocations: 4.896 MB / 0.6122 GB, free: 70.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.8958, allocations: 3.875 kB / 0.6122 GB, free: 70.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009202/0.8967, allocations: 230.6 kB / 0.6124 GB, free: 70.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001374/0.8981, allocations: 0.6856 MB / 0.6131 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.331e-05/0.8982, allocations: 14.2 kB / 0.6131 GB, free: 70.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007026/0.9052, allocations: 9.421 MB / 0.6223 GB, free: 63.24 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.9053, allocations: 3.812 kB / 0.6223 GB, free: 63.24 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004357/0.9096, allocations: 3.716 MB / 0.6259 GB, free: 61.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000815/0.9105, allocations: 449.8 kB / 0.6264 GB, free: 61.21 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/0.9107, allocations: 9.25 kB / 0.6264 GB, free: 61.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008938/0.9116, allocations: 77.78 kB / 0.6265 GB, free: 61.21 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.9118, allocations: 125.8 kB / 0.6266 GB, free: 61.18 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.309e-05/0.9119, allocations: 41.36 kB / 0.6266 GB, free: 61.17 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001166/0.9131, allocations: 0.9939 MB / 0.6276 GB, free: 60.76 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9131, allocations: 0 / 0.6276 GB, free: 60.76 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002887/0.916, allocations: 0.9076 MB / 0.6285 GB, free: 60.75 MB / 426.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 () * 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.004432/0.9204, allocations: 5.147 MB / 0.6335 GB, free: 57.84 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004637/0.9251, allocations: 4.278 MB / 0.6377 GB, free: 55.38 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.9251, allocations: 8.062 kB / 0.6377 GB, free: 55.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001624/0.9267, allocations: 1.629 MB / 0.6393 GB, free: 53.86 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/0.929, allocations: 486.1 kB / 0.6397 GB, free: 53.49 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007783/0.9368, allocations: 5.022 MB / 0.6446 GB, free: 49.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001384/0.9382, allocations: 2.149 MB / 0.6467 GB, free: 47.39 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.002258/0.9405, allocations: 0.8172 MB / 0.6475 GB, free: 46.87 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008823/0.9414, allocations: 0.9556 MB / 0.6485 GB, free: 45.99 MB / 426.7 MB Notification: Performance of SimCode: time 7.02e-07/0.9414, allocations: 0 / 0.6485 GB, free: 45.99 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08131/1.023, allocations: 55.67 MB / 0.7028 GB, free: 11.77 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001901/1.023, allocations: 163 kB / 0.703 GB, free: 11.58 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.63/4.653, allocations: 4 kB / 0.703 GB, free: 11.57 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Braking.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat