Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.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_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001665/0.001665, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.245/1.245, allocations: 227.2 MB / 245 MB, free: 5.938 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008904/0.0008902, allocations: 106 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000216/0.0002161, allocations: 8 kB / 358 MB, free: 9.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1932, allocations: 51.49 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3155/0.5087, allocations: 108.5 MB / 0.5059 GB, free: 44.64 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.509, allocations: 88.5 kB / 0.506 GB, free: 44.64 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1242/0.6332, allocations: 58.23 MB / 0.5628 GB, free: 31.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.6333, allocations: 0 / 0.5628 GB, free: 31.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001813/0.6335, allocations: 78.47 kB / 0.5629 GB, free: 31.86 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: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.00584/0.6393, allocations: 3.238 MB / 0.5661 GB, free: 29.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.6393, allocations: 7.719 kB / 0.5661 GB, free: 29.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005769/0.6399, allocations: 420.3 kB / 0.5665 GB, free: 29.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008436/0.6408, allocations: 406.5 kB / 0.5669 GB, free: 29.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003521/0.6443, allocations: 2.05 MB / 0.5689 GB, free: 28.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001313/0.6445, allocations: 215.6 kB / 0.5691 GB, free: 28.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003438/0.6448, allocations: 284.3 kB / 0.5694 GB, free: 28.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005008/0.6498, allocations: 3.81 MB / 0.5731 GB, free: 27.46 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.579e-05/0.6499, allocations: 10.47 kB / 0.5731 GB, free: 27.46 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002525/0.6502, allocations: 120.7 kB / 0.5732 GB, free: 27.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.589e-05/0.6503, allocations: 119.8 kB / 0.5733 GB, free: 27.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004013/0.6543, allocations: 3.062 MB / 0.5763 GB, free: 24.6 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01482/0.6691, allocations: 11.79 MB / 0.5878 GB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002177/0.6713, allocations: 3.667 MB / 0.5914 GB, free: 8.418 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002561/0.6716, allocations: 142.4 kB / 0.5915 GB, free: 8.262 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.692e-05/0.6716, allocations: 43.88 kB / 0.5916 GB, free: 8.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=139): time 4.098e-06/0.6717, allocations: 4 kB / 0.5916 GB, free: 8.207 MB / 378.7 MB Notification: Performance of matching and sorting (n=160): time 0.0142/0.6859, allocations: 8.362 MB / 0.5997 GB, free: 15.59 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.6859, allocations: 68.72 kB / 0.5998 GB, free: 15.52 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002729/0.6887, allocations: 1.808 MB / 0.6016 GB, free: 13.67 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002098/0.6889, allocations: 53.7 kB / 0.6016 GB, free: 13.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009122/0.6898, allocations: 1.355 MB / 0.6029 GB, free: 12.25 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004298/0.6903, allocations: 0.5352 MB / 0.6035 GB, free: 11.7 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.824e-05/0.6904, allocations: 40 kB / 0.6035 GB, free: 11.66 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.6905, allocations: 377.9 kB / 0.6039 GB, free: 11.29 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.6918, allocations: 0.9135 MB / 0.6048 GB, free: 10.38 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001557/0.6934, allocations: 1.371 MB / 0.6061 GB, free: 8.82 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001491/0.6949, allocations: 1.146 MB / 0.6072 GB, free: 7.676 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.6949, allocations: 4 kB / 0.6072 GB, free: 7.672 MB / 394.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.005553/0.7004, allocations: 3.423 MB / 0.6106 GB, free: 4.207 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.656e-05/0.7005, allocations: 12.31 kB / 0.6106 GB, free: 4.195 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.711e-05/0.7005, allocations: 20 kB / 0.6106 GB, free: 4.176 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002806/0.7033, allocations: 1.042 MB / 0.6116 GB, free: 3.102 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001238/0.7046, allocations: 339.4 kB / 0.6119 GB, free: 2.77 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01762/0.7222, allocations: 19.61 MB / 0.6311 GB, free: 13.82 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001785/0.724, allocations: 103.9 kB / 0.6312 GB, free: 13.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000286/0.7243, allocations: 76 kB / 0.6313 GB, free: 13.64 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00197/0.7263, allocations: 0.9382 MB / 0.6322 GB, free: 12.69 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005412/0.7269, allocations: 221.4 kB / 0.6324 GB, free: 12.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004919/0.7318, allocations: 2.857 MB / 0.6352 GB, free: 9.578 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.7318, allocations: 16 kB / 0.6352 GB, free: 9.562 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.328e-05/0.7319, allocations: 15.95 kB / 0.6352 GB, free: 9.547 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.456e-05/0.7319, allocations: 7.969 kB / 0.6352 GB, free: 9.539 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.7424, allocations: 6.049 MB / 0.6411 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.7425, allocations: 0 / 0.6411 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007732/0.7433, allocations: 195.7 kB / 0.6413 GB, free: 3.148 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002378/0.7456, allocations: 0.9211 MB / 0.6422 GB, free: 2.199 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001155/0.7458, allocations: 35.98 kB / 0.6422 GB, free: 2.164 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01519/0.761, allocations: 17.5 MB / 0.6593 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.761, allocations: 4 kB / 0.6593 GB, free: 15.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006322/0.7673, allocations: 4.219 MB / 0.6635 GB, free: 11.08 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/0.769, allocations: 494.2 kB / 0.6639 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005817/0.7696, allocations: 39.94 kB / 0.664 GB, free: 10.54 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.771, allocations: 115.9 kB / 0.6641 GB, free: 10.42 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003316/0.7713, allocations: 145 kB / 0.6642 GB, free: 10.28 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000116/0.7714, allocations: 51.92 kB / 0.6643 GB, free: 10.23 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002332/0.7738, allocations: 1.369 MB / 0.6656 GB, free: 8.836 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7738, allocations: 0 / 0.6656 GB, free: 8.836 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002785/0.7766, allocations: 0.7343 MB / 0.6663 GB, free: 8.102 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007235/0.7838, allocations: 5.67 MB / 0.6719 GB, free: 2.312 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.1862/0.97, allocations: 3.564 MB / 0.6753 GB, free: 118.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/0.9701, allocations: 3.25 kB / 0.6753 GB, free: 118.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003308/0.9734, allocations: 2.295 MB / 0.6776 GB, free: 117.2 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003127/0.9765, allocations: 0.6311 MB / 0.6782 GB, free: 117.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/0.9893, allocations: 19.15 MB / 0.6969 GB, free: 102.3 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002105/0.9914, allocations: 2.367 MB / 0.6992 GB, free: 101.5 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.001729/0.9932, allocations: 478.2 kB / 0.6997 GB, free: 101.5 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001149/0.9943, allocations: 1.079 MB / 0.7007 GB, free: 101.5 MB / 458.7 MB Notification: Performance of SimCode: time 9.41e-07/0.9943, allocations: 0 / 0.7007 GB, free: 101.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08584/1.08, allocations: 62.88 MB / 0.7621 GB, free: 74.71 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001418/1.08, allocations: 230.6 kB / 0.7624 GB, free: 74.47 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.582/4.662, allocations: 0 / 0.7624 GB, free: 74.47 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_ResistiveBraking.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking_res.mat does not exist to compare? outputFormat=mat