Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001145/0.001145, allocations: 199.7 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.262/1.262, allocations: 227.2 MB / 245 MB, free: 7.496 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 99.77 kB / 297.2 MB, free: 6.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00028/0.0002799, allocations: 4 kB / 358 MB, free: 9.414 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2244, allocations: 51.49 MB / 409.5 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1143/0.3387, allocations: 100.2 MB / 0.4977 GB, free: 6.387 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002846/0.339, allocations: 87.95 kB / 0.4978 GB, free: 6.301 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.263/0.602, allocations: 27.6 MB / 0.5248 GB, free: 86.99 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.946e-06/0.6021, allocations: 0 / 0.5248 GB, free: 86.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001067/0.6022, allocations: 28 kB / 0.5248 GB, free: 86.96 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002799/0.605, allocations: 1.316 MB / 0.5261 GB, free: 85.59 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.6051, allocations: 8.031 kB / 0.5261 GB, free: 85.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003103/0.6054, allocations: 144.1 kB / 0.5262 GB, free: 85.44 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007388/0.6061, allocations: 198.2 kB / 0.5264 GB, free: 85.24 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00179/0.6079, allocations: 0.8396 MB / 0.5272 GB, free: 84.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.325e-05/0.608, allocations: 81.94 kB / 0.5273 GB, free: 84.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001594/0.6082, allocations: 103.9 kB / 0.5274 GB, free: 84.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001493/0.6097, allocations: 0.9302 MB / 0.5283 GB, free: 83.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.334e-05/0.6097, allocations: 11.88 kB / 0.5283 GB, free: 83.21 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.481e-05/0.6098, allocations: 36 kB / 0.5284 GB, free: 83.18 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.574e-05/0.6098, allocations: 24 kB / 0.5284 GB, free: 83.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.611, allocations: 0.6285 MB / 0.529 GB, free: 82.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004945/0.6159, allocations: 4.164 MB / 0.5331 GB, free: 78.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009152/0.6169, allocations: 385.5 kB / 0.5334 GB, free: 77.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.384e-05/0.617, allocations: 4 kB / 0.5334 GB, free: 77.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.022e-05/0.617, allocations: 34.56 kB / 0.5335 GB, free: 77.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.507e-06/0.617, allocations: 4 kB / 0.5335 GB, free: 77.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002457/0.6195, allocations: 1.294 MB / 0.5347 GB, free: 76.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.819e-05/0.6195, allocations: 85.05 kB / 0.5348 GB, free: 76.25 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/0.6206, allocations: 0.7561 MB / 0.5355 GB, free: 75.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.068e-05/0.6206, allocations: 33.7 kB / 0.5356 GB, free: 75.44 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002776/0.6209, allocations: 0.5874 MB / 0.5362 GB, free: 74.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.713e-05/0.621, allocations: 153.8 kB / 0.5363 GB, free: 74.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.138e-05/0.621, allocations: 8 kB / 0.5363 GB, free: 74.69 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.6211, allocations: 339 kB / 0.5366 GB, free: 74.35 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000285/0.6214, allocations: 161.9 kB / 0.5368 GB, free: 74.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003713/0.6218, allocations: 476.8 kB / 0.5372 GB, free: 73.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/0.6221, allocations: 239.8 kB / 0.5375 GB, free: 73.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.753e-06/0.6222, allocations: 4 kB / 0.5375 GB, free: 73.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001076/0.6232, allocations: 0.7392 MB / 0.5382 GB, free: 72.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007803/0.624, allocations: 4.089 MB / 0.5422 GB, free: 68.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.058e-05/0.6241, allocations: 12 kB / 0.5422 GB, free: 68.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001897/0.6243, allocations: 36.78 kB / 0.5422 GB, free: 68.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005474/0.6248, allocations: 171.7 kB / 0.5424 GB, free: 67.96 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007775/0.6256, allocations: 1.295 MB / 0.5437 GB, free: 66.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006758/0.6263, allocations: 32.16 kB / 0.5437 GB, free: 66.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/0.6264, allocations: 40 kB / 0.5437 GB, free: 66.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.167e-06/0.6264, allocations: 4 kB / 0.5437 GB, free: 66.46 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008743/0.6273, allocations: 0.6177 MB / 0.5443 GB, free: 65.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.6273, allocations: 8 kB / 0.5443 GB, free: 65.83 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.641e-05/0.6274, allocations: 44.8 kB / 0.5444 GB, free: 65.78 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004826/0.6279, allocations: 163.7 kB / 0.5445 GB, free: 65.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006263/0.6285, allocations: 1.296 MB / 0.5458 GB, free: 64.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006047/0.6291, allocations: 31.94 kB / 0.5458 GB, free: 64.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.675e-05/0.6292, allocations: 36.25 kB / 0.5459 GB, free: 64.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005528/0.6298, allocations: 340.8 kB / 0.5462 GB, free: 63.78 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.6299, allocations: 94.83 kB / 0.5463 GB, free: 63.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007802/0.6307, allocations: 419.6 kB / 0.5467 GB, free: 63.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.37e-06/0.6307, allocations: 8 kB / 0.5467 GB, free: 63.26 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.6307, allocations: 0 / 0.5467 GB, free: 63.26 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.6307, allocations: 19.89 kB / 0.5467 GB, free: 63.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/0.6327, allocations: 1.329 MB / 0.548 GB, free: 61.84 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.652e-06/0.6327, allocations: 4 kB / 0.548 GB, free: 61.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003485/0.633, allocations: 71.89 kB / 0.5481 GB, free: 61.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.505e-05/0.6331, allocations: 29.02 kB / 0.5481 GB, free: 61.73 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.6332, allocations: 8 kB / 0.5481 GB, free: 61.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005927/0.6338, allocations: 1.288 MB / 0.5494 GB, free: 60.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.6338, allocations: 0 / 0.5494 GB, free: 60.3 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000884/0.6347, allocations: 0.7765 MB / 0.5501 GB, free: 59.44 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003141/0.635, allocations: 203.9 kB / 0.5503 GB, free: 59.22 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000139/0.6352, allocations: 12 kB / 0.5503 GB, free: 59.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004076/0.6356, allocations: 19.98 kB / 0.5504 GB, free: 59.19 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.184e-05/0.6356, allocations: 27.97 kB / 0.5504 GB, free: 59.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.6357, allocations: 16 kB / 0.5504 GB, free: 59.15 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000716/0.6364, allocations: 0.5702 MB / 0.551 GB, free: 58.57 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.6364, allocations: 0 / 0.551 GB, free: 58.57 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001326/0.6377, allocations: 383.9 kB / 0.5513 GB, free: 58.19 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001471/0.6392, allocations: 1.999 MB / 0.5533 GB, free: 56.13 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00153/0.6408, allocations: 0.9757 MB / 0.5542 GB, free: 55.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.6408, allocations: 0 / 0.5542 GB, free: 55.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.6412, allocations: 287 kB / 0.5545 GB, free: 54.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.6423, allocations: 211.8 kB / 0.5547 GB, free: 54.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008683/0.651, allocations: 12.36 MB / 0.5668 GB, free: 41.87 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.6516, allocations: 1.044 MB / 0.5678 GB, free: 40.79 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007405/0.6523, allocations: 127.5 kB / 0.5679 GB, free: 40.66 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004925/0.6529, allocations: 399.3 kB / 0.5683 GB, free: 40.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.383e-06/0.6529, allocations: 0 / 0.5683 GB, free: 40.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03798/0.6909, allocations: 20.65 MB / 0.5885 GB, free: 19.91 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001568/0.6911, allocations: 225.2 kB / 0.5887 GB, free: 19.67 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.469/3.16, allocations: 0 / 0.5887 GB, free: 19.67 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat