Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 180.7 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.475/1.475, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009608/0.0009608, allocations: 88.2 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.0003379, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2475/0.2479, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1265/0.3744, allocations: 110.2 MB / 486.1 MB, free: 2.426 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002996/0.3748, allocations: 95.94 kB / 486.2 MB, free: 2.332 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2771/0.6518, allocations: 54.92 MB / 0.5284 GB, free: 89.35 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.6519, allocations: 0 / 0.5284 GB, free: 89.35 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001964/0.6521, allocations: 71.88 kB / 0.5285 GB, free: 89.28 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.006791/0.6589, allocations: 2.966 MB / 0.5314 GB, free: 86.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.659, allocations: 16.03 kB / 0.5314 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001041/0.66, allocations: 362.6 kB / 0.5317 GB, free: 85.87 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008811/0.6609, allocations: 360.8 kB / 0.5321 GB, free: 85.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003515/0.6644, allocations: 1.957 MB / 0.534 GB, free: 83.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001049/0.6646, allocations: 192.9 kB / 0.5342 GB, free: 83.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003572/0.6649, allocations: 247.9 kB / 0.5344 GB, free: 83.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004987/0.6699, allocations: 3.383 MB / 0.5377 GB, free: 79.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.923e-05/0.67, allocations: 4 kB / 0.5377 GB, free: 79.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002242/0.6702, allocations: 108 kB / 0.5378 GB, free: 79.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.361e-05/0.6703, allocations: 116.8 kB / 0.5379 GB, free: 79.28 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004194/0.6745, allocations: 2.787 MB / 0.5407 GB, free: 76.48 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01456/0.6891, allocations: 10.93 MB / 0.5513 GB, free: 65.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002473/0.6916, allocations: 2.47 MB / 0.5537 GB, free: 62.62 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002902/0.692, allocations: 142.4 kB / 0.5539 GB, free: 62.47 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.692, allocations: 51.83 kB / 0.5539 GB, free: 62.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=136): time 4.539e-06/0.692, allocations: 0 / 0.5539 GB, free: 62.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.0128/0.7048, allocations: 7.299 MB / 0.5611 GB, free: 54.99 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.001e-05/0.7049, allocations: 98.42 kB / 0.5612 GB, free: 54.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002153/0.707, allocations: 1.587 MB / 0.5627 GB, free: 53.29 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001361/0.7072, allocations: 53.7 kB / 0.5628 GB, free: 53.23 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005788/0.7078, allocations: 1.218 MB / 0.5639 GB, free: 52 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002891/0.7081, allocations: 0.5007 MB / 0.5644 GB, free: 51.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.22e-05/0.7082, allocations: 32 kB / 0.5645 GB, free: 51.46 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.143e-05/0.7083, allocations: 373.9 kB / 0.5648 GB, free: 51.09 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001037/0.7093, allocations: 0.8589 MB / 0.5657 GB, free: 50.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001218/0.7105, allocations: 1.317 MB / 0.5669 GB, free: 48.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001186/0.7117, allocations: 1.033 MB / 0.568 GB, free: 47.69 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.444e-06/0.7118, allocations: 4 kB / 0.568 GB, free: 47.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003869/0.7156, allocations: 2.876 MB / 0.5708 GB, free: 44.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001041/0.7167, allocations: 5.581 MB / 0.5762 GB, free: 38.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.7167, allocations: 12 kB / 0.5762 GB, free: 38.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001409/0.7181, allocations: 0.6645 MB / 0.5769 GB, free: 38.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001252/0.7194, allocations: 375.4 kB / 0.5772 GB, free: 37.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007085/0.7265, allocations: 8.504 MB / 0.5855 GB, free: 28.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/0.7285, allocations: 111.8 kB / 0.5856 GB, free: 28.65 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002237/0.7288, allocations: 68 kB / 0.5857 GB, free: 28.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.122e-05/0.7288, allocations: 4 kB / 0.5857 GB, free: 28.58 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003598/0.7324, allocations: 2.65 MB / 0.5883 GB, free: 25.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.41e-05/0.7324, allocations: 16 kB / 0.5883 GB, free: 25.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001303/0.7338, allocations: 0.6753 MB / 0.589 GB, free: 25.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/0.735, allocations: 363.5 kB / 0.5893 GB, free: 24.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007107/0.7421, allocations: 8.489 MB / 0.5976 GB, free: 15.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001941/0.7441, allocations: 107.8 kB / 0.5977 GB, free: 15.86 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001944/0.7443, allocations: 71.98 kB / 0.5978 GB, free: 15.79 MB / 378.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.001645/0.746, allocations: 0.9262 MB / 0.5987 GB, free: 14.85 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004477/0.7464, allocations: 201.5 kB / 0.5989 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003633/0.7501, allocations: 2.586 MB / 0.6014 GB, free: 12.04 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/0.7501, allocations: 19.98 kB / 0.6014 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.7501, allocations: 8 kB / 0.6014 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/0.7501, allocations: 7.969 kB / 0.6014 GB, free: 12.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00781/0.7579, allocations: 5.414 MB / 0.6067 GB, free: 6.488 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.985e-06/0.758, allocations: 4 kB / 0.6067 GB, free: 6.484 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009237/0.7589, allocations: 235.9 kB / 0.607 GB, free: 6.254 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001479/0.7604, allocations: 0.702 MB / 0.6076 GB, free: 5.539 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001151/0.7606, allocations: 32 kB / 0.6077 GB, free: 5.508 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00956/0.7701, allocations: 10.02 MB / 0.6175 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.342e-06/0.7702, allocations: 7.938 kB / 0.6175 GB, free: 10.94 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006661/0.7768, allocations: 3.955 MB / 0.6213 GB, free: 6.875 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001812/0.7787, allocations: 470.5 kB / 0.6218 GB, free: 6.395 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003776/0.7791, allocations: 35.98 kB / 0.6218 GB, free: 6.359 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.7802, allocations: 95.98 kB / 0.6219 GB, free: 6.266 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003683/0.7806, allocations: 129 kB / 0.622 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000106/0.7807, allocations: 43.92 kB / 0.6221 GB, free: 6.098 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002258/0.7829, allocations: 1.221 MB / 0.6233 GB, free: 4.887 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7829, allocations: 0 / 0.6233 GB, free: 4.887 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004578/0.7875, allocations: 1.047 MB / 0.6243 GB, free: 3.84 MB / 394.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.007319/0.7949, allocations: 5.405 MB / 0.6296 GB, free: 14.34 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006982/0.8019, allocations: 4.545 MB / 0.634 GB, free: 9.676 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/0.8019, allocations: 4 kB / 0.634 GB, free: 9.672 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002512/0.8044, allocations: 1.755 MB / 0.6357 GB, free: 7.867 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002828/0.8073, allocations: 0.5808 MB / 0.6363 GB, free: 7.293 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2246/1.032, allocations: 26.2 MB / 0.6619 GB, free: 96.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002029/1.034, allocations: 2.15 MB / 0.664 GB, free: 96.09 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001944/1.036, allocations: 0.5987 MB / 0.6646 GB, free: 96.07 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/1.037, allocations: 0.9845 MB / 0.6655 GB, free: 96.07 MB / 410.7 MB Notification: Performance of SimCode: time 6.352e-06/1.037, allocations: 0 / 0.6655 GB, free: 96.07 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08723/1.124, allocations: 62.53 MB / 0.7266 GB, free: 54.46 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000165/1.124, allocations: 246.8 kB / 0.7268 GB, free: 54.18 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.579/4.703, allocations: 0 / 0.7268 GB, free: 54.18 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking_fmu --startTime=0 --stopTime=0.8 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMPM_Braking.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Braking_res.mat does not exist to compare? outputFormat=mat