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.00104/0.00104, allocations: 197.5 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 227.2 MB / 245 MB, free: 7.566 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009343/0.0009345, allocations: 99.72 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.0002729, allocations: 8 kB / 358 MB, free: 9.426 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2049/0.2052, allocations: 51.48 MB / 409.5 MB, free: 26.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1182/0.3235, allocations: 100.6 MB / 0.4982 GB, free: 5.852 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002805/0.3238, allocations: 88.69 kB / 0.4982 GB, free: 5.766 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2426/0.5664, allocations: 30.72 MB / 0.5282 GB, free: 83.47 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.5665, allocations: 0 / 0.5282 GB, free: 83.47 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.494e-05/0.5666, allocations: 27.98 kB / 0.5283 GB, free: 83.45 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.002366/0.5689, allocations: 1.557 MB / 0.5298 GB, free: 81.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.569, allocations: 8.031 kB / 0.5298 GB, free: 81.81 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001626/0.5691, allocations: 164.8 kB / 0.53 GB, free: 81.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005074/0.5697, allocations: 206.1 kB / 0.5302 GB, free: 81.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.5709, allocations: 0.8515 MB / 0.531 GB, free: 80.54 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001039/0.5711, allocations: 111.8 kB / 0.5311 GB, free: 80.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001158/0.5712, allocations: 108 kB / 0.5312 GB, free: 80.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001498/0.5727, allocations: 1.139 MB / 0.5323 GB, free: 79.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.323e-05/0.5727, allocations: 7.906 kB / 0.5323 GB, free: 79.08 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.944e-05/0.5728, allocations: 48 kB / 0.5324 GB, free: 79.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.656e-05/0.5728, allocations: 27.98 kB / 0.5324 GB, free: 79.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.5741, allocations: 0.7808 MB / 0.5331 GB, free: 78.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004633/0.5788, allocations: 3.946 MB / 0.537 GB, free: 74.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.5802, allocations: 0.6051 MB / 0.5376 GB, free: 73.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.952e-05/0.5802, allocations: 12.55 kB / 0.5376 GB, free: 73.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005304/0.5808, allocations: 311.1 kB / 0.5379 GB, free: 73.13 MB / 378.7 MB Notification: Performance of pre-optimization done (n=63): time 2.785e-06/0.5808, allocations: 0 / 0.5379 GB, free: 73.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=66): time 0.004159/0.5849, allocations: 2.109 MB / 0.54 GB, free: 70.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001105/0.5851, allocations: 483.2 kB / 0.5404 GB, free: 70.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001062/0.5861, allocations: 0.9351 MB / 0.5413 GB, free: 69.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.922e-05/0.5862, allocations: 45.7 kB / 0.5414 GB, free: 69.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/0.5866, allocations: 0.6505 MB / 0.542 GB, free: 68.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.5867, allocations: 232.7 kB / 0.5422 GB, free: 68.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.557e-05/0.5867, allocations: 24 kB / 0.5423 GB, free: 68.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.972e-05/0.5868, allocations: 345.9 kB / 0.5426 GB, free: 68.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004416/0.5872, allocations: 258.5 kB / 0.5428 GB, free: 67.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006457/0.5879, allocations: 0.7208 MB / 0.5435 GB, free: 66.91 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005624/0.5885, allocations: 414.3 kB / 0.5439 GB, free: 66.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.5885, allocations: 0 / 0.5439 GB, free: 66.5 MB / 378.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.001704/0.5902, allocations: 1.165 MB / 0.5451 GB, free: 65.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.165e-05/0.5903, allocations: 67.34 kB / 0.5451 GB, free: 65.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.5903, allocations: 12 kB / 0.5451 GB, free: 65.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004965/0.5908, allocations: 171.2 kB / 0.5453 GB, free: 65.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006428/0.5914, allocations: 215.6 kB / 0.5455 GB, free: 64.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003015/0.5945, allocations: 3.595 MB / 0.549 GB, free: 60.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009556/0.5954, allocations: 88.06 kB / 0.5491 GB, free: 60.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.549e-05/0.5955, allocations: 44.12 kB / 0.5492 GB, free: 60.86 MB / 378.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 () * Number of clocked 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 1 {6 9} Notification: Performance of prepare postOptimizeDAE: time 0.0004817/0.596, allocations: 299.8 kB / 0.5494 GB, free: 60.55 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.5961, allocations: 134.5 kB / 0.5496 GB, free: 60.42 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001249/0.5974, allocations: 0.735 MB / 0.5503 GB, free: 59.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.5974, allocations: 7.984 kB / 0.5503 GB, free: 59.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.5974, allocations: 0 / 0.5503 GB, free: 59.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009633/0.5984, allocations: 0.9569 MB / 0.5512 GB, free: 58.59 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002421/0.6008, allocations: 1.809 MB / 0.553 GB, free: 56.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.6008, allocations: 224 / 0.553 GB, free: 56.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004665/0.6013, allocations: 119.8 kB / 0.5531 GB, free: 56.58 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003791/0.6017, allocations: 129.6 kB / 0.5532 GB, free: 56.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.614e-05/0.6017, allocations: 23.98 kB / 0.5533 GB, free: 56.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002325/0.6041, allocations: 3.306 MB / 0.5565 GB, free: 52.86 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.6041, allocations: 0 / 0.5565 GB, free: 52.86 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001646/0.6057, allocations: 1.192 MB / 0.5576 GB, free: 51.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004341/0.6062, allocations: 251.6 kB / 0.5579 GB, free: 51.32 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001264/0.6063, allocations: 23.98 kB / 0.5579 GB, free: 51.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005439/0.6069, allocations: 47.91 kB / 0.558 GB, free: 51.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.607, allocations: 60.44 kB / 0.558 GB, free: 51.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.215e-05/0.607, allocations: 16 kB / 0.558 GB, free: 51.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008424/0.6079, allocations: 0.7172 MB / 0.5587 GB, free: 50.45 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.4e-07/0.6079, allocations: 0 / 0.5587 GB, free: 50.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001072/0.609, allocations: 352.1 kB / 0.5591 GB, free: 50.11 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.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) * Number of clocked states: 0 () * 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.0022/0.6112, allocations: 2.464 MB / 0.5615 GB, free: 47.56 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.613, allocations: 1.119 MB / 0.5626 GB, free: 46.39 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.613, allocations: 3.938 kB / 0.5626 GB, free: 46.39 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007479/0.6137, allocations: 0.5725 MB / 0.5631 GB, free: 45.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001285/0.615, allocations: 300.6 kB / 0.5634 GB, free: 45.5 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004894/0.62, allocations: 11.37 MB / 0.5745 GB, free: 33.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004116/0.6204, allocations: 1.109 MB / 0.5756 GB, free: 32.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000598/0.621, allocations: 149.8 kB / 0.5757 GB, free: 32.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004152/0.6214, allocations: 467.3 kB / 0.5762 GB, free: 32.07 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.6214, allocations: 4 kB / 0.5762 GB, free: 32.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0427/0.6641, allocations: 29.2 MB / 0.6047 GB, free: 3.234 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000154/0.6643, allocations: 220.5 kB / 0.6049 GB, free: 3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.806/3.47, allocations: 0 / 0.6049 GB, free: 3 MB / 378.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