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.00107/0.00107, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.357/1.357, allocations: 225.4 MB / 240.1 MB, free: 15.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009991/0.000999, allocations: 88.78 kB / 292.1 MB, free: 5.918 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.288e-05/4.304e-05, allocations: 4 kB / 350.7 MB, free: 2.457 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1178/0.1179, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4174/0.5353, allocations: 111.2 MB / 0.5013 GB, free: 10.68 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002445/0.5356, allocations: 87.75 kB / 0.5014 GB, free: 10.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1529/0.6885, allocations: 55.37 MB / 0.5555 GB, free: 4.297 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.6886, allocations: 4 kB / 0.5555 GB, free: 4.293 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002836/0.6889, allocations: 71.88 kB / 0.5555 GB, free: 4.223 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.008202/0.6971, allocations: 2.664 MB / 0.5581 GB, free: 1.5 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.6971, allocations: 11.97 kB / 0.5581 GB, free: 1.488 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001258/0.6984, allocations: 362.6 kB / 0.5585 GB, free: 1.125 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001503/0.6999, allocations: 356 kB / 0.5588 GB, free: 0.7734 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005172/0.7051, allocations: 1.941 MB / 0.5607 GB, free: 14.78 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.7054, allocations: 185 kB / 0.5609 GB, free: 14.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006996/0.7061, allocations: 251.9 kB / 0.5611 GB, free: 14.35 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007264/0.7134, allocations: 3.321 MB / 0.5644 GB, free: 10.85 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.198e-05/0.7135, allocations: 11.84 kB / 0.5644 GB, free: 10.84 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003275/0.7138, allocations: 104 kB / 0.5645 GB, free: 10.74 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.714, allocations: 116.8 kB / 0.5646 GB, free: 10.62 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005936/0.7199, allocations: 2.69 MB / 0.5672 GB, free: 7.918 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3021/1.022, allocations: 10.91 MB / 0.5779 GB, free: 82.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002843/1.025, allocations: 2.417 MB / 0.5802 GB, free: 81.26 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001278/1.026, allocations: 1.052 MB / 0.5813 GB, free: 81.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002887/1.027, allocations: 140.6 kB / 0.5814 GB, free: 81.16 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/1.027, allocations: 52.03 kB / 0.5815 GB, free: 81.12 MB / 442.7 MB Notification: Performance of pre-optimization done (n=136): time 3.416e-06/1.027, allocations: 3.531 kB / 0.5815 GB, free: 81.12 MB / 442.7 MB Notification: Performance of matching and sorting (n=150): time 0.01036/1.037, allocations: 5.479 MB / 0.5868 GB, free: 80.42 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.17e-05/1.037, allocations: 97.55 kB / 0.5869 GB, free: 80.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002749/1.04, allocations: 1.564 MB / 0.5884 GB, free: 80.16 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002491/1.04, allocations: 49.11 kB / 0.5885 GB, free: 80.13 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007833/1.041, allocations: 1.219 MB / 0.5897 GB, free: 79.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004451/1.041, allocations: 0.5039 MB / 0.5902 GB, free: 79.48 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.337e-05/1.042, allocations: 35.16 kB / 0.5902 GB, free: 79.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001026/1.042, allocations: 374.4 kB / 0.5906 GB, free: 79.17 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/1.043, allocations: 0.8233 MB / 0.5914 GB, free: 79.17 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001335/1.044, allocations: 1.279 MB / 0.5926 GB, free: 78.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001292/1.045, allocations: 1.009 MB / 0.5936 GB, free: 78.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.338e-05/1.045, allocations: 3.5 kB / 0.5936 GB, free: 78.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.004068/1.05, allocations: 2.807 MB / 0.5963 GB, free: 78.43 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00116/1.051, allocations: 5.591 MB / 0.6018 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.328e-05/1.051, allocations: 12.78 kB / 0.6018 GB, free: 72.57 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001447/1.052, allocations: 0.6659 MB / 0.6025 GB, free: 72.54 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001372/1.054, allocations: 373.2 kB / 0.6028 GB, free: 72.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007145/1.061, allocations: 8.272 MB / 0.6109 GB, free: 68.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001754/1.063, allocations: 112.5 kB / 0.611 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002249/1.063, allocations: 72.08 kB / 0.6111 GB, free: 68.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/1.063, allocations: 8.438 kB / 0.6111 GB, free: 68.55 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003941/1.067, allocations: 2.603 MB / 0.6136 GB, free: 68.48 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.453e-05/1.067, allocations: 14.28 kB / 0.6136 GB, free: 68.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001518/1.068, allocations: 0.6697 MB / 0.6143 GB, free: 68.45 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/1.07, allocations: 364.9 kB / 0.6146 GB, free: 68.45 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009214/1.079, allocations: 8.267 MB / 0.6227 GB, free: 64.36 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002117/1.081, allocations: 107.6 kB / 0.6228 GB, free: 64.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002764/1.082, allocations: 72.34 kB / 0.6229 GB, free: 64.31 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.0004859/1.082, allocations: 221.7 kB / 0.6231 GB, free: 64.14 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005313/1.083, allocations: 200.6 kB / 0.6233 GB, free: 64.04 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004934/1.088, allocations: 2.551 MB / 0.6258 GB, free: 63.06 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.655e-05/1.088, allocations: 21.52 kB / 0.6258 GB, free: 63.05 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.836e-06/1.088, allocations: 3.25 kB / 0.6258 GB, free: 63.05 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.328e-05/1.088, allocations: 9.938 kB / 0.6258 GB, free: 63.05 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/1.098, allocations: 5.35 MB / 0.631 GB, free: 60.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/1.098, allocations: 2.281 kB / 0.631 GB, free: 60.92 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/1.099, allocations: 237.6 kB / 0.6313 GB, free: 60.91 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001807/1.101, allocations: 0.6929 MB / 0.6319 GB, free: 60.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001272/1.101, allocations: 37.23 kB / 0.632 GB, free: 60.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009504/1.111, allocations: 9.763 MB / 0.6415 GB, free: 53.57 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/1.111, allocations: 3.906 kB / 0.6415 GB, free: 53.57 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005306/1.116, allocations: 3.873 MB / 0.6453 GB, free: 51.78 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001367/1.117, allocations: 471.2 kB / 0.6457 GB, free: 51.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002817/1.118, allocations: 39.14 kB / 0.6458 GB, free: 51.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001009/1.119, allocations: 97.22 kB / 0.6459 GB, free: 51.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003124/1.119, allocations: 114.6 kB / 0.646 GB, free: 51.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.251e-05/1.119, allocations: 46.83 kB / 0.646 GB, free: 51.41 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001768/1.121, allocations: 1.2 MB / 0.6472 GB, free: 50.94 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.7e-07/1.121, allocations: 0 / 0.6472 GB, free: 50.94 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003324/1.124, allocations: 1.05 MB / 0.6482 GB, free: 50.84 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.00543/1.13, allocations: 5.314 MB / 0.6534 GB, free: 47.91 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005361/1.135, allocations: 4.5 MB / 0.6578 GB, free: 45.62 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.202e-06/1.135, allocations: 0 / 0.6578 GB, free: 45.62 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001949/1.137, allocations: 1.708 MB / 0.6595 GB, free: 44.69 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002785/1.14, allocations: 0.5766 MB / 0.66 GB, free: 44.54 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/1.151, allocations: 5.213 MB / 0.6651 GB, free: 42.44 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/1.153, allocations: 2.156 MB / 0.6672 GB, free: 41.44 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002829/1.156, allocations: 0.8819 MB / 0.6681 GB, free: 41.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001151/1.157, allocations: 0.9587 MB / 0.669 GB, free: 40.58 MB / 442.7 MB Notification: Performance of SimCode: time 7.81e-07/1.157, allocations: 0 / 0.669 GB, free: 40.58 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1075/1.264, allocations: 65.1 MB / 0.7326 GB, free: 14.42 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002235/1.265, allocations: 212.8 kB / 0.7328 GB, free: 14.19 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.158/5.422, allocations: 0 / 0.7328 GB, free: 14.19 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