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/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.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/ModelicaServices trunk/package.mo): time 0.001425/0.001425, allocations: 96.84 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001789/0.001789, allocations: 200.5 kB / 17.9 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.457/1.457, allocations: 227.3 MB / 245.9 MB, free: 10.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000271/0.0002712, allocations: 8 kB / 306.7 MB, free: 1.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1254/0.1257, allocations: 51.5 MB / 358.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009057/0.1348, allocations: 7.671 MB / 365.9 MB, free: 6.078 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00622/0.141, allocations: 2.99 MB / 368.9 MB, free: 3.082 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001237/0.1423, allocations: 23.94 kB / 368.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001738/0.1441, allocations: 0.4897 MB / 369.4 MB, free: 2.566 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00199/0.1461, allocations: 0.631 MB / 370 MB, free: 1.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007031/0.1468, allocations: 223.7 kB / 370.2 MB, free: 1.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002279/0.1491, allocations: 1.255 MB / 371.5 MB, free: 464 kB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.236/0.3851, allocations: 485 kB / 372 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.3868, allocations: 0.5244 MB / 372.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008566/0.3877, allocations: 0.5903 MB / 373.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000175/0.3878, allocations: 78.84 kB / 373.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003732/0.3882, allocations: 116.4 kB / 373.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.3884, allocations: 222.5 kB / 373.5 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004505/0.3889, allocations: 309.5 kB / 373.8 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002302/0.3912, allocations: 1.441 MB / 375.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.347e-06/0.3912, allocations: 0 / 375.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3912, allocations: 1.188 kB / 375.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.493e-05/0.3913, allocations: 1.5 kB / 375.2 MB, free: 9.688 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003196/0.3945, allocations: 1.549 MB / 376.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.3945, allocations: 10.19 kB / 376.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002266/0.3948, allocations: 167.4 kB / 377 MB, free: 8.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004729/0.3952, allocations: 183.6 kB / 377.1 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001316/0.3966, allocations: 0.7629 MB / 377.9 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001485/0.3967, allocations: 115.6 kB / 378 MB, free: 8.289 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001681/0.3969, allocations: 112.4 kB / 378.1 MB, free: 8.285 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002054/0.399, allocations: 1.134 MB / 379.3 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.735e-05/0.399, allocations: 10.42 kB / 379.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.751e-05/0.3991, allocations: 42.97 kB / 379.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.848e-05/0.3991, allocations: 27 kB / 379.3 MB, free: 8.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001585/0.4007, allocations: 0.77 MB / 380.1 MB, free: 8.016 MB / 302.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005606/0.4064, allocations: 3.886 MB / 384 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.4079, allocations: 0.5947 MB / 384.6 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.973e-05/0.4079, allocations: 12.14 kB / 384.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006206/0.4085, allocations: 306.8 kB / 384.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 2.515e-06/0.4086, allocations: 0 / 384.9 MB, free: 6.457 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.004473/0.413, allocations: 2.102 MB / 387 MB, free: 5.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000129/0.4132, allocations: 483.8 kB / 387.5 MB, free: 5.137 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0013/0.4145, allocations: 1.009 MB / 388.5 MB, free: 4.977 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.176e-05/0.4146, allocations: 42.2 kB / 388.5 MB, free: 4.945 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004533/0.415, allocations: 0.6402 MB / 389.2 MB, free: 4.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.4152, allocations: 233.2 kB / 389.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.4152, allocations: 20.72 kB / 389.4 MB, free: 4.52 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.145e-05/0.4153, allocations: 349.5 kB / 389.8 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005429/0.4159, allocations: 252.1 kB / 390 MB, free: 4.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007486/0.4166, allocations: 0.714 MB / 390.7 MB, free: 3.637 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006354/0.4173, allocations: 402.1 kB / 391.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.654e-06/0.4173, allocations: 3.312 kB / 391.1 MB, free: 3.559 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.001815/0.4191, allocations: 1.139 MB / 392.2 MB, free: 3.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.53e-05/0.4192, allocations: 66.16 kB / 392.3 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/0.4192, allocations: 12.22 kB / 392.3 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005606/0.4198, allocations: 168.3 kB / 392.5 MB, free: 3.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006703/0.4204, allocations: 213.4 kB / 392.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003544/0.424, allocations: 3.601 MB / 396.3 MB, free: 15.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001184/0.4252, allocations: 84.02 kB / 396.4 MB, free: 15.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.707e-05/0.4253, allocations: 45.75 kB / 396.4 MB, free: 15.69 MB / 318.1 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 (112): * Single equations (assignments): 108 * 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.0006606/0.426, allocations: 302.5 kB / 396.7 MB, free: 15.45 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.4261, allocations: 124.3 kB / 396.8 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001529/0.4277, allocations: 0.7204 MB / 397.6 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.4277, allocations: 5.5 kB / 397.6 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.4277, allocations: 1.375 kB / 397.6 MB, free: 14.97 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00138/0.4291, allocations: 0.9776 MB / 398.5 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/0.4322, allocations: 1.74 MB / 400.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.4322, allocations: 2.281 kB / 400.3 MB, free: 12.96 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004742/0.4327, allocations: 113.2 kB / 400.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004095/0.4331, allocations: 138.1 kB / 400.5 MB, free: 12.86 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.831e-05/0.4332, allocations: 18.8 kB / 400.6 MB, free: 12.84 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003213/0.4364, allocations: 3.309 MB / 403.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4364, allocations: 0 / 403.9 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002046/0.4385, allocations: 1.163 MB / 405 MB, free: 8.941 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006029/0.4391, allocations: 248.3 kB / 405.3 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001426/0.4393, allocations: 16.56 kB / 405.3 MB, free: 8.707 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006151/0.4399, allocations: 50.62 kB / 405.3 MB, free: 8.684 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001485/0.44, allocations: 65.94 kB / 405.4 MB, free: 8.645 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.918e-05/0.4401, allocations: 21.48 kB / 405.4 MB, free: 8.641 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001052/0.4411, allocations: 0.6698 MB / 406.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4411, allocations: 0 / 406.1 MB, free: 8.254 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001292/0.4424, allocations: 299.2 kB / 406.4 MB, free: 8.227 MB / 318.1 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,loadInertia.phi,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 (52): * Single equations (assignments): 48 * 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.002539/0.445, allocations: 2.218 MB / 408.6 MB, free: 6.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002177/0.4472, allocations: 1.097 MB / 409.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.4472, allocations: 0 / 409.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008923/0.4481, allocations: 0.5549 MB / 410.3 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001353/0.4495, allocations: 308.8 kB / 410.6 MB, free: 4.324 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008068/0.4575, allocations: 11.36 MB / 421.9 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006774/0.4583, allocations: 1.105 MB / 423 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0006939/0.459, allocations: 137.2 kB / 423.2 MB, free: 7.398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005404/0.4595, allocations: 467.3 kB / 423.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of SimCode: time 1.292e-06/0.4595, allocations: 0 / 423.6 MB, free: 6.941 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05161/0.5111, allocations: 25.2 MB / 448.8 MB, free: 14.18 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003028/0.5115, allocations: 230.7 kB / 449 MB, free: 13.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.652/3.164, allocations: 0 / 449 MB, free: 13.94 MB / 366.1 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