Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.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.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009367/0.0009367, allocations: 98.98 kB / 17 MB, free: 6.398 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009343/0.0009342, allocations: 192.7 kB / 17.91 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246 MB, free: 10.25 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002109/0.0002109, allocations: 4 kB / 306.8 MB, free: 1.254 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1008, allocations: 51.49 MB / 358.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.005266/0.1061, allocations: 4.49 MB / 362.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003803/0.1099, allocations: 1.923 MB / 364.7 MB, free: 7.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004667/0.1104, allocations: 11.94 kB / 364.7 MB, free: 7.316 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000407/0.1109, allocations: 159 kB / 364.9 MB, free: 7.16 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008975/0.1118, allocations: 398.4 kB / 365.3 MB, free: 6.766 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009464/0.1127, allocations: 391.4 kB / 365.7 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001584/0.1143, allocations: 1.499 MB / 367.2 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004132/0.1147, allocations: 249.7 kB / 367.4 MB, free: 4.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008626/0.1156, allocations: 0.6385 MB / 368 MB, free: 3.98 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008436/0.1165, allocations: 0.7358 MB / 368.8 MB, free: 3.242 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001418/0.1166, allocations: 75.98 kB / 368.8 MB, free: 3.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003966/0.117, allocations: 151.9 kB / 369 MB, free: 3.02 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003089/0.1173, allocations: 295 kB / 369.3 MB, free: 2.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002234/0.1176, allocations: 217.1 kB / 369.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001106/0.1187, allocations: 1.15 MB / 370.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1187, allocations: 0 / 370.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.1187, allocations: 0 / 370.6 MB, free: 1.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.54e-05/0.1187, allocations: 7.938 kB / 370.6 MB, free: 1.352 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: 248 * Number of variables: 248 Notification: Performance of Generate backend data structure: time 0.2029/0.3216, allocations: 1.444 MB / 372.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.825e-05/0.3217, allocations: 8.844 kB / 372.1 MB, free: 18.86 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007436/0.3224, allocations: 157.4 kB / 372.3 MB, free: 18.82 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001123/0.3236, allocations: 162 kB / 372.4 MB, free: 18.76 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001491/0.3251, allocations: 0.588 MB / 373 MB, free: 18.47 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005571/0.3257, allocations: 204.4 kB / 373.2 MB, free: 18.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000319/0.326, allocations: 105 kB / 373.3 MB, free: 18.36 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004422/0.3304, allocations: 1.244 MB / 374.5 MB, free: 18.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.687e-05/0.3305, allocations: 11.3 kB / 374.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/0.3307, allocations: 39.44 kB / 374.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.901e-05/0.3307, allocations: 23.84 kB / 374.6 MB, free: 18.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004871/0.3356, allocations: 1.305 MB / 375.9 MB, free: 17.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009625/0.3453, allocations: 3.762 MB / 379.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003573/0.3489, allocations: 1.09 MB / 380.8 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002119/0.351, allocations: 0.654 MB / 381.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001512/0.3512, allocations: 25.94 kB / 381.5 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.978e-05/0.3513, allocations: 48.83 kB / 381.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=136): time 6.803e-06/0.3513, allocations: 1.188 kB / 381.5 MB, free: 15.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=148): time 0.0215/0.3728, allocations: 5.698 MB / 387.2 MB, free: 12.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.487e-05/0.3729, allocations: 96.81 kB / 387.3 MB, free: 12.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00143/0.3744, allocations: 0.6157 MB / 387.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002004/0.3746, allocations: 67.61 kB / 388 MB, free: 12.18 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003371/0.375, allocations: 348.1 kB / 388.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005198/0.3755, allocations: 499.6 kB / 388.8 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.3756, allocations: 29.31 kB / 388.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3758, allocations: 396 kB / 389.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001782/0.3776, allocations: 0.5371 MB / 389.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001964/0.3796, allocations: 0.6732 MB / 390.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001512/0.3811, allocations: 490.6 kB / 390.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.199e-06/0.3811, allocations: 0 / 390.9 MB, free: 10.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=182) (initialization): time 0.005245/0.3864, allocations: 1.671 MB / 392.6 MB, free: 9.414 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.159e-05/0.3864, allocations: 14.67 kB / 392.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.3864, allocations: 0.9688 kB / 392.6 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002539/0.389, allocations: 0.7729 MB / 393.4 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001472/0.3905, allocations: 259.6 kB / 393.6 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.3936, allocations: 1.936 MB / 395.6 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001888/0.3955, allocations: 221.9 kB / 395.8 MB, free: 7.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001635/0.3956, allocations: 48.16 kB / 395.8 MB, free: 7.348 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 37 (bearingFriction.free,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,$PRE.lossyGear.mode,lossyGear.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,lossyGear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (126): * Single equations (assignments): 124 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {4 45,1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0008147/0.3965, allocations: 278.5 kB / 396.1 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002972/0.3968, allocations: 97.5 kB / 396.2 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003636/0.3972, allocations: 137.6 kB / 396.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.26e-05/0.3972, allocations: 15.81 kB / 396.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.227e-05/0.3972, allocations: 3.938 kB / 396.3 MB, free: 6.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.155e-05/0.3973, allocations: 11.92 kB / 396.4 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008117/0.4054, allocations: 3.302 MB / 399.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.18e-05/0.4055, allocations: 0 / 399.7 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/0.4069, allocations: 263.8 kB / 399.9 MB, free: 3.828 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/0.409, allocations: 0.7302 MB / 400.6 MB, free: 3.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001616/0.4091, allocations: 55.91 kB / 400.7 MB, free: 3.039 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/0.412, allocations: 1.859 MB / 402.6 MB, free: 1.129 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.109e-06/0.412, allocations: 7.969 kB / 402.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007452/0.4195, allocations: 2.467 MB / 405 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001066/0.4206, allocations: 323.7 kB / 405.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000311/0.4209, allocations: 36 kB / 405.4 MB, free: 14.26 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001668/0.4226, allocations: 219.8 kB / 405.6 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006843/0.4233, allocations: 236.7 kB / 405.8 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/0.4235, allocations: 55.95 kB / 405.9 MB, free: 13.76 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0009805/0.4245, allocations: 446.8 kB / 406.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.51e-07/0.4245, allocations: 0 / 406.3 MB, free: 13.32 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001727/0.4262, allocations: 322.5 kB / 406.6 MB, free: 13.01 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 12 (damper.phi_rel,damper.w_rel,springDamper.phi_rel,springDamper.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,inertia4.w,lossyGear.phi_a,clutch.phi_rel,clutch.w_rel,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 23 (bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode,lossyGear.tau_aPos,lossyGear.startForward,lossyGear.startBackward,lossyGear.locked,lossyGear.mode,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 12 (clutch.mode,clutch.startForward,brake.mode,brake.startForward,brake.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,clutch.startBackward,lossyGear.mode,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 93 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 7,4 43} Notification: Performance of Backend phase and start with SimCode phase: time 0.009247/0.4355, allocations: 3.326 MB / 410 MB, free: 9.785 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.005053/0.4406, allocations: 1.447 MB / 411.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.4406, allocations: 0 / 411.4 MB, free: 8.34 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002944/0.4436, allocations: 0.8302 MB / 412.2 MB, free: 7.508 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/0.4454, allocations: 185.3 kB / 412.4 MB, free: 7.336 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02618/0.4716, allocations: 7.892 MB / 420.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007946/0.4725, allocations: 1.043 MB / 421.4 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007945/0.4733, allocations: 159.5 kB / 421.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006343/0.4739, allocations: 375.3 kB / 421.9 MB, free: 13.67 MB / 334.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4739, allocations: 3.938 kB / 421.9 MB, free: 13.66 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05196/0.5259, allocations: 27.32 MB / 449.2 MB, free: 2.625 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002402/0.5262, allocations: 258.8 kB / 449.5 MB, free: 2.289 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.596/3.123, allocations: 0 / 449.5 MB, free: 2.289 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat