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.00122/0.00122, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.476/1.476, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009633/0.0009633, allocations: 95.39 kB / 286.7 MB, free: 5.25 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.853e-05/3.81e-05, allocations: 4 kB / 343.8 MB, free: 8.18 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1125, allocations: 51.48 MB / 395.3 MB, free: 4.66 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3869/0.4995, allocations: 110.5 MB / 0.494 GB, free: 14.76 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/0.4998, allocations: 89.25 kB / 0.494 GB, free: 14.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1439/0.6438, allocations: 54.63 MB / 0.5474 GB, free: 12.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6438, allocations: 0 / 0.5474 GB, free: 12.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003353/0.6442, allocations: 75.86 kB / 0.5475 GB, free: 12.77 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.008244/0.6524, allocations: 2.66 MB / 0.5501 GB, free: 10.04 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.98e-05/0.6525, allocations: 8.031 kB / 0.5501 GB, free: 10.04 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002302/0.6548, allocations: 364 kB / 0.5504 GB, free: 9.676 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004985/0.6598, allocations: 1.937 MB / 0.5523 GB, free: 7.684 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001379/0.66, allocations: 80 kB / 0.5524 GB, free: 7.605 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007634/0.6608, allocations: 155.9 kB / 0.5525 GB, free: 7.453 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006116/0.6669, allocations: 2.548 MB / 0.555 GB, free: 4.898 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006484/0.6734, allocations: 2.956 MB / 0.5579 GB, free: 1.773 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.014e-05/0.6736, allocations: 11.89 kB / 0.5579 GB, free: 1.762 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002183/0.6738, allocations: 4 kB / 0.5579 GB, free: 1.758 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000128/0.6739, allocations: 108.8 kB / 0.558 GB, free: 1.648 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0196/0.6935, allocations: 10.42 MB / 0.5682 GB, free: 6.969 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002689/0.6963, allocations: 2.357 MB / 0.5705 GB, free: 4.445 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.6977, allocations: 1.007 MB / 0.5715 GB, free: 3.438 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003369/0.6981, allocations: 138.4 kB / 0.5716 GB, free: 3.285 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.54e-05/0.6981, allocations: 51.88 kB / 0.5717 GB, free: 3.227 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.497e-06/0.6981, allocations: 0 / 0.5717 GB, free: 3.227 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.2581/0.9562, allocations: 4.945 MB / 0.5765 GB, free: 86.99 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.036e-05/0.9563, allocations: 99.55 kB / 0.5766 GB, free: 86.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001785/0.9581, allocations: 1.315 MB / 0.5779 GB, free: 86.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001519/0.9582, allocations: 28.83 kB / 0.5779 GB, free: 86.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005421/0.9588, allocations: 1.225 MB / 0.5791 GB, free: 86.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002747/0.9591, allocations: 492.3 kB / 0.5796 GB, free: 86.04 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.86e-05/0.9592, allocations: 0 / 0.5796 GB, free: 86.04 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.468e-05/0.9592, allocations: 375.3 kB / 0.5799 GB, free: 85.73 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009721/0.9602, allocations: 0.7869 MB / 0.5807 GB, free: 85.73 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001082/0.9613, allocations: 1.234 MB / 0.5819 GB, free: 85.22 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.9624, allocations: 0.9771 MB / 0.5829 GB, free: 85.22 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/0.9624, allocations: 3.156 kB / 0.5829 GB, free: 85.22 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.003288/0.9657, allocations: 2.606 MB / 0.5854 GB, free: 85.02 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009017/0.9666, allocations: 5.532 MB / 0.5908 GB, free: 79.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.052e-05/0.9666, allocations: 13.03 kB / 0.5908 GB, free: 79.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001288/0.9679, allocations: 0.6592 MB / 0.5915 GB, free: 79.12 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.9692, allocations: 373.3 kB / 0.5918 GB, free: 79.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00641/0.9756, allocations: 7.951 MB / 0.5996 GB, free: 75.31 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001581/0.9772, allocations: 72.77 kB / 0.5997 GB, free: 75.31 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001604/0.9774, allocations: 75.34 kB / 0.5997 GB, free: 75.31 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.9775, allocations: 3.219 kB / 0.5997 GB, free: 75.31 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003245/0.9807, allocations: 2.398 MB / 0.6021 GB, free: 75.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.978e-05/0.9807, allocations: 16.84 kB / 0.6021 GB, free: 75.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001221/0.982, allocations: 0.6514 MB / 0.6027 GB, free: 75.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001168/0.9831, allocations: 364.2 kB / 0.6031 GB, free: 75.2 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006487/0.9896, allocations: 7.956 MB / 0.6108 GB, free: 71.37 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001515/0.9912, allocations: 73.05 kB / 0.6109 GB, free: 71.37 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001671/0.9914, allocations: 66.66 kB / 0.611 GB, free: 71.37 MB / 442.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.0003796/0.9918, allocations: 163.4 kB / 0.6111 GB, free: 71.26 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003175/0.9949, allocations: 2.233 MB / 0.6133 GB, free: 71.07 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003431/0.9953, allocations: 195.4 kB / 0.6135 GB, free: 70.96 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003428/0.9987, allocations: 2.404 MB / 0.6158 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.15e-05/0.9988, allocations: 13.03 kB / 0.6159 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.9988, allocations: 5.875 kB / 0.6159 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.463e-05/0.9988, allocations: 6.797 kB / 0.6159 GB, free: 70.83 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007554/1.006, allocations: 4.9 MB / 0.6207 GB, free: 69.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.097e-06/1.006, allocations: 2.438 kB / 0.6207 GB, free: 69.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001068/1.007, allocations: 232.8 kB / 0.6209 GB, free: 69.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/1.009, allocations: 0.6848 MB / 0.6215 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.843e-05/1.009, allocations: 16.92 kB / 0.6216 GB, free: 69.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008128/1.017, allocations: 9.395 MB / 0.6307 GB, free: 62.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.017, allocations: 6.625 kB / 0.6307 GB, free: 62.35 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005174/1.022, allocations: 3.713 MB / 0.6344 GB, free: 60.63 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/1.024, allocations: 456.4 kB / 0.6348 GB, free: 60.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002477/1.024, allocations: 16.62 kB / 0.6348 GB, free: 60.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009653/1.025, allocations: 71.31 kB / 0.6349 GB, free: 60.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003203/1.025, allocations: 115.9 kB / 0.635 GB, free: 60.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/1.025, allocations: 46.75 kB / 0.635 GB, free: 60.31 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001557/1.027, allocations: 0.9935 MB / 0.636 GB, free: 59.9 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/1.027, allocations: 0 / 0.636 GB, free: 59.9 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003344/1.03, allocations: 0.9129 MB / 0.6369 GB, free: 59.89 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 () * 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.005638/1.036, allocations: 5.157 MB / 0.6419 GB, free: 57.05 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004952/1.041, allocations: 4.272 MB / 0.6461 GB, free: 54.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/1.041, allocations: 3.688 kB / 0.6461 GB, free: 54.86 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001937/1.043, allocations: 1.626 MB / 0.6477 GB, free: 53.97 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002409/1.045, allocations: 493.1 kB / 0.6482 GB, free: 53.86 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01105/1.056, allocations: 5.031 MB / 0.6531 GB, free: 51.88 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/1.058, allocations: 2.153 MB / 0.6552 GB, free: 50.89 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002813/1.061, allocations: 0.829 MB / 0.656 GB, free: 50.82 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001101/1.062, allocations: 0.9552 MB / 0.6569 GB, free: 50.03 MB / 442.7 MB Notification: Performance of SimCode: time 9.32e-07/1.062, allocations: 0 / 0.6569 GB, free: 50.03 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1048/1.167, allocations: 55.76 MB / 0.7114 GB, free: 24.77 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002099/1.167, allocations: 166.1 kB / 0.7115 GB, free: 24.57 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.724/4.891, allocations: 0 / 0.7115 GB, free: 24.57 MB / 442.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