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/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices trunk/package.mo): time 0.001263/0.001263, allocations: 99.3 kB / 16.99 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001648/0.001648, allocations: 199.3 kB / 17.89 MB, free: 5.945 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.402/1.402, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002424/0.0002424, allocations: 8 kB / 306.7 MB, free: 1.266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0998/0.1001, allocations: 51.5 MB / 358.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Braking): time 0.01055/0.1106, allocations: 9.321 MB / 367.5 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006835/0.1175, allocations: 3.656 MB / 371.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001732/0.1193, allocations: 63.62 kB / 371.2 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.22/0.3393, allocations: 0.6883 MB / 371.9 MB, free: 9.738 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00436/0.3437, allocations: 0.8554 MB / 372.8 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001481/0.3452, allocations: 318 kB / 373.1 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005463/0.3507, allocations: 2.144 MB / 375.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002966/0.3537, allocations: 1.748 MB / 377 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002639/0.3564, allocations: 1.018 MB / 378 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003021/0.3594, allocations: 1.265 MB / 379.3 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005172/0.3599, allocations: 162.6 kB / 379.4 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001247/0.3612, allocations: 226.2 kB / 379.7 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.3623, allocations: 0.7661 MB / 380.4 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001186/0.3635, allocations: 0.6028 MB / 381 MB, free: 9.234 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006158/0.3696, allocations: 4.068 MB / 385.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.042e-06/0.3697, allocations: 0 / 385.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.985e-06/0.3697, allocations: 1.969 kB / 385.1 MB, free: 8.414 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001904/0.3699, allocations: 1.312 kB / 385.1 MB, free: 8.414 MB / 302.1 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.008427/0.3783, allocations: 2.96 MB / 388.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/0.3784, allocations: 8.688 kB / 388.1 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001115/0.3795, allocations: 367 kB / 388.4 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001379/0.3809, allocations: 352.1 kB / 388.8 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004361/0.3853, allocations: 1.806 MB / 390.6 MB, free: 5.582 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/0.3855, allocations: 193.3 kB / 390.8 MB, free: 5.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005261/0.386, allocations: 249.9 kB / 391 MB, free: 5.566 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007267/0.3933, allocations: 3.385 MB / 394.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.463e-05/0.3934, allocations: 3.719 kB / 394.4 MB, free: 4.547 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002587/0.3937, allocations: 105.7 kB / 394.5 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.3939, allocations: 118.2 kB / 394.6 MB, free: 4.449 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00556/0.3994, allocations: 2.93 MB / 397.5 MB, free: 2.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02173/0.4212, allocations: 10.87 MB / 408.4 MB, free: 9.031 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003406/0.4246, allocations: 2.423 MB / 410.8 MB, free: 6.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002842/0.4249, allocations: 129.3 kB / 411 MB, free: 6.312 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.014e-05/0.425, allocations: 51.88 kB / 411 MB, free: 6.254 MB / 318.1 MB Notification: Performance of pre-optimization done (n=133): time 3.096e-06/0.425, allocations: 0 / 411 MB, free: 6.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=147): time 0.01851/0.4435, allocations: 7.277 MB / 418.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.4437, allocations: 90.42 kB / 418.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003482/0.4471, allocations: 1.78 MB / 420.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001654/0.4473, allocations: 49.7 kB / 420.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00125/0.4486, allocations: 1.218 MB / 421.4 MB, free: 11.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005177/0.4491, allocations: 0.4897 MB / 421.9 MB, free: 11.2 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.52e-05/0.4492, allocations: 36 kB / 422 MB, free: 11.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002068/0.4494, allocations: 371.9 kB / 422.3 MB, free: 10.8 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001643/0.4511, allocations: 0.8472 MB / 423.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001852/0.4529, allocations: 1.31 MB / 424.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001764/0.4547, allocations: 1.025 MB / 425.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.867e-06/0.4547, allocations: 8 kB / 425.5 MB, free: 7.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=218) (initialization): time 0.005856/0.4606, allocations: 2.849 MB / 428.4 MB, free: 4.539 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.003203/0.4638, allocations: 5.671 MB / 434 MB, free: 14.38 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.579e-05/0.4639, allocations: 16 kB / 434 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001838/0.4657, allocations: 0.6701 MB / 434.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001613/0.4674, allocations: 355.5 kB / 435.1 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01127/0.4787, allocations: 8.507 MB / 443.6 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002793/0.4815, allocations: 111.8 kB / 443.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002863/0.4818, allocations: 71.98 kB / 443.7 MB, free: 4.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.4818, allocations: 4 kB / 443.7 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004826/0.4867, allocations: 2.633 MB / 446.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-05/0.4868, allocations: 16.03 kB / 446.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001899/0.4887, allocations: 0.6657 MB / 447.1 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001357/0.49, allocations: 355.4 kB / 447.4 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0129/0.503, allocations: 8.514 MB / 455.9 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002501/0.5055, allocations: 104 kB / 456 MB, free: 7.555 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005402/0.5061, allocations: 75.95 kB / 456.1 MB, free: 7.48 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * 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 (181): * Single equations (assignments): 177 * 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.003462/0.5096, allocations: 0.9221 MB / 457 MB, free: 6.547 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001031/0.5106, allocations: 197.6 kB / 457.2 MB, free: 6.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006255/0.5169, allocations: 2.578 MB / 459.8 MB, free: 3.746 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/0.517, allocations: 16.09 kB / 459.8 MB, free: 3.73 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.722e-05/0.517, allocations: 7.891 kB / 459.8 MB, free: 3.723 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.123e-05/0.517, allocations: 11.95 kB / 459.8 MB, free: 3.711 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01283/0.5299, allocations: 5.399 MB / 465.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-05/0.5299, allocations: 3.953 kB / 465.2 MB, free: 14.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001134/0.5311, allocations: 223.7 kB / 465.5 MB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001989/0.5331, allocations: 0.6932 MB / 466.1 MB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000191/0.5333, allocations: 36 kB / 466.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01129/0.5446, allocations: 9.986 MB / 476.2 MB, free: 2.777 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.703e-06/0.5446, allocations: 4 kB / 476.2 MB, free: 2.773 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007204/0.5518, allocations: 3.914 MB / 480.1 MB, free: 14.75 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001723/0.5536, allocations: 465 kB / 480.5 MB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007069/0.5543, allocations: 39.98 kB / 480.6 MB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/0.5558, allocations: 95.84 kB / 480.7 MB, free: 14.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003421/0.5562, allocations: 117.1 kB / 480.8 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.5563, allocations: 36 kB / 480.8 MB, free: 14 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002717/0.559, allocations: 1.209 MB / 482 MB, free: 12.8 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5591, allocations: 0 / 482 MB, free: 12.8 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.005214/0.5643, allocations: 0.9922 MB / 483 MB, free: 11.81 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 5 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * 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 (110): * Single equations (assignments): 106 * 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.007511/0.5718, allocations: 5.089 MB / 488.1 MB, free: 6.613 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.008115/0.58, allocations: 4.505 MB / 492.6 MB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/0.58, allocations: 1 kB / 492.6 MB, free: 1.992 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002736/0.5828, allocations: 1.74 MB / 494.4 MB, free: 212 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003639/0.5864, allocations: 0.5839 MB / 494.9 MB, free: 15.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04768/0.6341, allocations: 25.83 MB / 0.5086 GB, free: 4.691 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003208/0.6374, allocations: 2.153 MB / 0.5107 GB, free: 2.5 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002478/0.6399, allocations: 0.5833 MB / 0.5112 GB, free: 1.914 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001647/0.6416, allocations: 0.9718 MB / 0.5122 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of SimCode: time 1.223e-06/0.6416, allocations: 0 / 0.5122 GB, free: 0.9414 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3123/0.9538, allocations: 57.97 MB / 0.5688 GB, free: 123.3 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001631/0.9541, allocations: 253.5 kB / 0.569 GB, free: 123 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.36/4.314, allocations: 0 / 0.569 GB, free: 123 MB / 446.1 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