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.001041/0.001041, allocations: 97.34 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001361/0.001361, allocations: 191.7 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246 MB, free: 10.26 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002668/0.0002668, allocations: 4 kB / 306.8 MB, free: 1.262 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1091, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.009264/0.1184, allocations: 8.512 MB / 366.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005881/0.1243, allocations: 2.903 MB / 369.7 MB, free: 2.312 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009657/0.1253, allocations: 31.88 kB / 369.8 MB, free: 2.281 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001449/0.1268, allocations: 481.2 kB / 370.2 MB, free: 1.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001305/0.1281, allocations: 476.5 kB / 370.7 MB, free: 1.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005957/0.1287, allocations: 227.6 kB / 370.9 MB, free: 1.117 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2295/0.3582, allocations: 1.571 MB / 372.5 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001299/0.3596, allocations: 493.2 kB / 373 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001514/0.3611, allocations: 0.5601 MB / 373.5 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001032/0.3621, allocations: 0.628 MB / 374.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000194/0.3623, allocations: 84.66 kB / 374.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004448/0.3628, allocations: 121.6 kB / 374.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003565/0.3632, allocations: 245.1 kB / 374.6 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004904/0.3637, allocations: 309 kB / 374.9 MB, free: 9.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002259/0.3659, allocations: 1.518 MB / 376.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.835e-06/0.3659, allocations: 0 / 376.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3659, allocations: 0 / 376.4 MB, free: 9.734 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.534e-05/0.366, allocations: 0 / 376.4 MB, free: 9.734 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.003635/0.3696, allocations: 1.574 MB / 378 MB, free: 8.812 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.171e-05/0.3697, allocations: 12.25 kB / 378 MB, free: 8.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003202/0.37, allocations: 167.6 kB / 378.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007962/0.3708, allocations: 198.2 kB / 378.4 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/0.3725, allocations: 0.786 MB / 379.1 MB, free: 8.355 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001559/0.3727, allocations: 118.4 kB / 379.3 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001803/0.3729, allocations: 111.8 kB / 379.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00234/0.3752, allocations: 1.145 MB / 380.5 MB, free: 8.062 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.529e-05/0.3753, allocations: 13.23 kB / 380.5 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001112/0.3754, allocations: 46.62 kB / 380.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.004e-05/0.3754, allocations: 25.88 kB / 380.6 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001835/0.3773, allocations: 0.7661 MB / 381.4 MB, free: 8.047 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.006848/0.3841, allocations: 3.956 MB / 385.3 MB, free: 6.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001619/0.3858, allocations: 0.5991 MB / 385.9 MB, free: 6.523 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005804/0.3864, allocations: 276 kB / 386.2 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.967e-05/0.3864, allocations: 8.938 kB / 386.2 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006992/0.3871, allocations: 315.1 kB / 386.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of pre-optimization done (n=62): time 3.577e-06/0.3872, allocations: 1.094 kB / 386.5 MB, free: 6.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=65): time 0.005367/0.3925, allocations: 2.113 MB / 388.6 MB, free: 5.691 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001543/0.3927, allocations: 479.3 kB / 389.1 MB, free: 5.125 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001915/0.3946, allocations: 1.092 MB / 390.2 MB, free: 4.965 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.718e-05/0.3947, allocations: 47.36 kB / 390.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006017/0.3953, allocations: 0.6466 MB / 390.9 MB, free: 4.449 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001896/0.3955, allocations: 237.3 kB / 391.1 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.994e-05/0.3956, allocations: 20.44 kB / 391.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.3957, allocations: 342.7 kB / 391.5 MB, free: 3.902 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000569/0.3963, allocations: 253.8 kB / 391.7 MB, free: 3.789 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008782/0.3971, allocations: 0.7113 MB / 392.4 MB, free: 3.062 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007531/0.3979, allocations: 406.7 kB / 392.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.416e-06/0.3979, allocations: 3.281 kB / 392.8 MB, free: 2.844 MB / 302.1 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002495/0.4004, allocations: 1.141 MB / 394 MB, free: 2.297 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.819e-05/0.4005, allocations: 67.33 kB / 394 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.025e-05/0.4006, allocations: 11.78 kB / 394 MB, free: 2.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006959/0.4013, allocations: 169.9 kB / 394.2 MB, free: 2.156 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008371/0.4021, allocations: 211.2 kB / 394.4 MB, free: 2.121 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004828/0.4069, allocations: 3.554 MB / 398 MB, free: 14.83 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001867/0.4089, allocations: 84.8 kB / 398 MB, free: 14.79 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000133/0.409, allocations: 49.73 kB / 398.1 MB, free: 14.78 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.000942/0.41, allocations: 292.2 kB / 398.4 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002692/0.4102, allocations: 128.2 kB / 398.5 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001853/0.4121, allocations: 0.7255 MB / 399.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.4121, allocations: 7.781 kB / 399.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.4121, allocations: 0 / 399.2 MB, free: 14.07 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001542/0.4137, allocations: 0.9715 MB / 400.2 MB, free: 13.28 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004166/0.4179, allocations: 1.804 MB / 402 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.4179, allocations: 5.859 kB / 402 MB, free: 12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005057/0.4184, allocations: 116.5 kB / 402.1 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004461/0.4189, allocations: 129.3 kB / 402.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.4189, allocations: 15.27 kB / 402.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003913/0.4228, allocations: 3.277 MB / 405.6 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.4229, allocations: 4.953 kB / 405.6 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002525/0.4254, allocations: 1.067 MB / 406.6 MB, free: 8.121 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008033/0.4262, allocations: 254.1 kB / 406.9 MB, free: 7.891 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/0.4264, allocations: 22.2 kB / 406.9 MB, free: 7.875 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006496/0.4271, allocations: 52.52 kB / 406.9 MB, free: 7.852 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/0.4273, allocations: 56.64 kB / 407 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.122e-05/0.4273, allocations: 24.52 kB / 407 MB, free: 7.809 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001454/0.4288, allocations: 0.7315 MB / 407.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.4288, allocations: 4 kB / 407.8 MB, free: 7.359 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001482/0.4303, allocations: 308.1 kB / 408.1 MB, free: 7.059 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.002756/0.433, allocations: 1.659 MB / 409.7 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00249/0.4355, allocations: 1.092 MB / 410.8 MB, free: 4.207 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/0.4356, allocations: 8.062 kB / 410.8 MB, free: 4.199 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001244/0.4368, allocations: 0.5553 MB / 411.4 MB, free: 3.621 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002376/0.4392, allocations: 320.5 kB / 411.7 MB, free: 3.316 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01519/0.4544, allocations: 7.216 MB / 418.9 MB, free: 11.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009778/0.4555, allocations: 1.082 MB / 420 MB, free: 10.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0009362/0.4564, allocations: 153.8 kB / 420.1 MB, free: 10.37 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006705/0.4571, allocations: 471.3 kB / 420.6 MB, free: 9.91 MB / 334.1 MB Notification: Performance of SimCode: time 1.743e-06/0.4571, allocations: 0 / 420.6 MB, free: 9.91 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0607/0.5178, allocations: 26.71 MB / 447.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002011/0.5181, allocations: 239 kB / 447.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.873/3.391, allocations: 0 / 447.5 MB, free: 15.4 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