Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, 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.373/1.373, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009023/0.0009021, allocations: 88.84 kB / 292.1 MB, free: 6.027 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.456e-05/4.459e-05, allocations: 7.984 kB / 350.7 MB, free: 2.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1288, allocations: 51.47 MB / 402.1 MB, free: 14.9 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.454/0.5828, allocations: 100.5 MB / 0.4909 GB, free: 5.195 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/0.5833, allocations: 82.91 kB / 0.491 GB, free: 5.152 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1091/0.6924, allocations: 30.72 MB / 0.521 GB, free: 7.715 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.6925, allocations: 2.625 kB / 0.521 GB, free: 7.715 MB / 394.7 MB Notification: Performance of Transformations before backend: time 9.234e-05/0.6926, allocations: 31.98 kB / 0.521 GB, free: 7.684 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002877/0.6955, allocations: 1.371 MB / 0.5223 GB, free: 6.258 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.6955, allocations: 8.031 kB / 0.5223 GB, free: 6.25 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002958/0.6958, allocations: 160.8 kB / 0.5225 GB, free: 6.082 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007819/0.6966, allocations: 198.1 kB / 0.5227 GB, free: 5.887 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001936/0.6986, allocations: 0.8558 MB / 0.5235 GB, free: 4.988 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001518/0.6987, allocations: 111.8 kB / 0.5236 GB, free: 4.871 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001753/0.6989, allocations: 111.9 kB / 0.5237 GB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001842/0.7008, allocations: 1.086 MB / 0.5248 GB, free: 3.586 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.541e-05/0.7008, allocations: 4 kB / 0.5248 GB, free: 3.582 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.765e-05/0.7009, allocations: 47.98 kB / 0.5248 GB, free: 3.535 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.117e-05/0.7009, allocations: 28 kB / 0.5249 GB, free: 3.508 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.7022, allocations: 0.6912 MB / 0.5256 GB, free: 2.812 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0058/0.708, allocations: 3.941 MB / 0.5294 GB, free: 14.68 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001335/0.7094, allocations: 0.5531 MB / 0.5299 GB, free: 14.12 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003738/0.7098, allocations: 239.9 kB / 0.5302 GB, free: 13.88 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.3e-05/0.7099, allocations: 8.562 kB / 0.5302 GB, free: 13.87 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00051/0.7104, allocations: 271.1 kB / 0.5304 GB, free: 13.6 MB / 410.7 MB Notification: Performance of pre-optimization done (n=63): time 3.246e-06/0.7104, allocations: 0 / 0.5304 GB, free: 13.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.002944/0.7134, allocations: 1.539 MB / 0.5319 GB, free: 12 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002135/0.7136, allocations: 475.2 kB / 0.5324 GB, free: 11.43 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001334/0.7149, allocations: 0.9249 MB / 0.5333 GB, free: 10.49 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.856e-05/0.715, allocations: 37.7 kB / 0.5333 GB, free: 10.45 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005456/0.7156, allocations: 0.6506 MB / 0.534 GB, free: 9.785 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002127/0.7158, allocations: 240.6 kB / 0.5342 GB, free: 9.547 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-05/0.7158, allocations: 21.59 kB / 0.5342 GB, free: 9.527 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.716, allocations: 341.9 kB / 0.5345 GB, free: 9.188 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003942/0.7164, allocations: 214.6 kB / 0.5347 GB, free: 8.98 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007309/0.7171, allocations: 0.6859 MB / 0.5354 GB, free: 8.082 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005839/0.7177, allocations: 375.7 kB / 0.5358 GB, free: 7.703 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.326e-06/0.7177, allocations: 4 kB / 0.5358 GB, free: 7.699 MB / 410.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.002022/0.7198, allocations: 1.133 MB / 0.5369 GB, free: 6.543 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.653e-05/0.7198, allocations: 63.41 kB / 0.5369 GB, free: 6.469 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.7198, allocations: 12 kB / 0.537 GB, free: 6.457 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007088/0.7206, allocations: 202.9 kB / 0.5371 GB, free: 6.254 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006974/0.7213, allocations: 207.7 kB / 0.5373 GB, free: 6.051 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004109/0.7254, allocations: 3.536 MB / 0.5408 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/0.7265, allocations: 76 kB / 0.5409 GB, free: 2.176 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.392e-05/0.7266, allocations: 48 kB / 0.5409 GB, free: 2.129 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (114): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(3,88.9%) 12} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002151/0.7268, allocations: 180.6 kB / 0.5411 GB, free: 1.945 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.727, allocations: 132.4 kB / 0.5412 GB, free: 1.816 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001434/0.7284, allocations: 0.6921 MB / 0.5419 GB, free: 1.098 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.7285, allocations: 4 kB / 0.5419 GB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.7285, allocations: 4 kB / 0.5419 GB, free: 1.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00115/0.7296, allocations: 0.9217 MB / 0.5428 GB, free: 60 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003115/0.7327, allocations: 1.774 MB / 0.5445 GB, free: 14.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.718e-06/0.7328, allocations: 4.219 kB / 0.5445 GB, free: 14.19 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005031/0.7333, allocations: 107.9 kB / 0.5446 GB, free: 14.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004497/0.7337, allocations: 133.6 kB / 0.5448 GB, free: 13.95 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.395e-05/0.7338, allocations: 19.94 kB / 0.5448 GB, free: 13.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003161/0.737, allocations: 3.266 MB / 0.548 GB, free: 10.41 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.737, allocations: 4.031 kB / 0.548 GB, free: 10.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001797/0.7388, allocations: 1.111 MB / 0.5491 GB, free: 9.219 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000504/0.7393, allocations: 247.6 kB / 0.5493 GB, free: 8.957 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.7395, allocations: 23.98 kB / 0.5493 GB, free: 8.934 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005604/0.74, allocations: 47.97 kB / 0.5494 GB, free: 8.887 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001391/0.7402, allocations: 64.36 kB / 0.5494 GB, free: 8.824 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.7402, allocations: 20 kB / 0.5494 GB, free: 8.805 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009983/0.7412, allocations: 0.6991 MB / 0.5501 GB, free: 8.098 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7412, allocations: 0 / 0.5501 GB, free: 8.098 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001254/0.7425, allocations: 368 kB / 0.5505 GB, free: 7.738 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * 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: 1 {1 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.002547/0.7451, allocations: 2.365 MB / 0.5528 GB, free: 5.297 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002006/0.7471, allocations: 1.048 MB / 0.5538 GB, free: 4.203 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.7471, allocations: 3.938 kB / 0.5538 GB, free: 4.199 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007738/0.7479, allocations: 0.5255 MB / 0.5543 GB, free: 3.652 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001299/0.7492, allocations: 296.2 kB / 0.5546 GB, free: 3.379 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003538/0.7527, allocations: 1.815 MB / 0.5564 GB, free: 1.5 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006276/0.7534, allocations: 1.113 MB / 0.5575 GB, free: 364 kB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0005579/0.7539, allocations: 143.1 kB / 0.5576 GB, free: 220 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005577/0.7545, allocations: 467.4 kB / 0.5581 GB, free: 15.75 MB / 442.7 MB Notification: Performance of SimCode: time 7.42e-07/0.7545, allocations: 4 kB / 0.5581 GB, free: 15.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3067/1.061, allocations: 29.78 MB / 0.5871 GB, free: 105 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/1.061, allocations: 200.3 kB / 0.5873 GB, free: 104.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.092/4.153, allocations: 0.6562 kB / 0.5873 GB, free: 104.8 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling_fmu --startTime=0 --stopTime=25 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_Cooling.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat does not exist to compare? outputFormat=mat