Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007589/0.000759, allocations: 90.12 kB / 16.31 MB, free: 6.461 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000869/0.0008692, allocations: 183.9 kB / 17.21 MB, free: 6.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.348/1.348, allocations: 223.3 MB / 241.2 MB, free: 5.434 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002465/0.0002465, allocations: 6.188 kB / 300.9 MB, free: 5.938 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09394/0.0942, allocations: 50.43 MB / 351.3 MB, free: 11.61 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.004312/0.09855, allocations: 4.308 MB / 355.6 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002817/0.1014, allocations: 1.744 MB / 357.4 MB, free: 5.531 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002866/0.1017, allocations: 11.94 kB / 357.4 MB, free: 5.52 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002856/0.102, allocations: 139 kB / 357.5 MB, free: 5.383 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007012/0.1027, allocations: 341.8 kB / 357.9 MB, free: 5.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007294/0.1034, allocations: 391.3 kB / 358.3 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001273/0.1047, allocations: 1.44 MB / 359.7 MB, free: 3.219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003856/0.1051, allocations: 241.6 kB / 359.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007476/0.1059, allocations: 0.5957 MB / 360.5 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000767/0.1066, allocations: 0.6773 MB / 361.2 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001383/0.1068, allocations: 68 kB / 361.3 MB, free: 1.629 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003233/0.1071, allocations: 147.9 kB / 361.4 MB, free: 1.484 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002717/0.1074, allocations: 259.1 kB / 361.7 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002176/0.1076, allocations: 213.1 kB / 361.9 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001003/0.1086, allocations: 1.056 MB / 362.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.1087, allocations: 8 kB / 362.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.1087, allocations: 0 / 362.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.1087, allocations: 0 / 362.9 MB, free: 15.95 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.002904/0.1116, allocations: 1.386 MB / 364.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.1117, allocations: 12.03 kB / 364.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001985/0.1119, allocations: 152 kB / 364.5 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004314/0.1123, allocations: 138.6 kB / 364.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008619/0.1132, allocations: 0.5764 MB / 365.2 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003154/0.1135, allocations: 203 kB / 365.4 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001655/0.1137, allocations: 99.91 kB / 365.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002232/0.1159, allocations: 1.274 MB / 366.8 MB, free: 11.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.597e-05/0.116, allocations: 11.89 kB / 366.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.871e-05/0.1161, allocations: 43.95 kB / 366.8 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.499e-05/0.1161, allocations: 27.94 kB / 366.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002663/0.1188, allocations: 1.366 MB / 368.2 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005913/0.1247, allocations: 3.738 MB / 372 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001999/0.1267, allocations: 1.073 MB / 373 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00124/0.128, allocations: 0.6839 MB / 373.7 MB, free: 4.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-05/0.1281, allocations: 21.3 kB / 373.7 MB, free: 4.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.656e-05/0.1281, allocations: 51.88 kB / 373.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of pre-optimization done (n=129): time 3.076e-06/0.1281, allocations: 0 / 373.8 MB, free: 4.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=141): time 0.01277/0.1409, allocations: 5.881 MB / 379.7 MB, free: 14.74 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.398e-05/0.141, allocations: 94.42 kB / 379.8 MB, free: 14.63 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007621/0.1418, allocations: 0.5809 MB / 380.3 MB, free: 14.04 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001086/0.1419, allocations: 69.69 kB / 380.4 MB, free: 13.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002504/0.1422, allocations: 341.2 kB / 380.7 MB, free: 13.63 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003666/0.1425, allocations: 481.2 kB / 381.2 MB, free: 13.15 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.894e-05/0.1426, allocations: 24 kB / 381.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002031/0.1428, allocations: 394.7 kB / 381.6 MB, free: 12.73 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001103/0.1439, allocations: 0.5857 MB / 382.2 MB, free: 12.15 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001198/0.1451, allocations: 0.7154 MB / 382.9 MB, free: 11.41 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/0.1462, allocations: 0.5253 MB / 383.4 MB, free: 10.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.279e-06/0.1462, allocations: 3.953 kB / 383.4 MB, free: 10.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.003583/0.1498, allocations: 1.857 MB / 385.3 MB, free: 9.012 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.1498, allocations: 4 kB / 385.3 MB, free: 9.008 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1498, allocations: 4 kB / 385.3 MB, free: 9.004 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001781/0.1516, allocations: 0.9502 MB / 386.3 MB, free: 8.047 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/0.1526, allocations: 263.6 kB / 386.5 MB, free: 7.789 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002398/0.155, allocations: 2.001 MB / 388.5 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001112/0.1562, allocations: 211.9 kB / 388.7 MB, free: 5.527 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000103/0.1563, allocations: 47.98 kB / 388.8 MB, free: 5.48 MB / 318.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 (129): * Single equations (assignments): 127 * 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 40,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004888/0.1568, allocations: 273.5 kB / 389 MB, free: 5.203 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001683/0.1569, allocations: 86.97 kB / 389.1 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002955/0.1572, allocations: 133.2 kB / 389.3 MB, free: 4.984 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.241e-05/0.1573, allocations: 16 kB / 389.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.021e-05/0.1573, allocations: 0 / 389.3 MB, free: 4.969 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/0.1573, allocations: 7.969 kB / 389.3 MB, free: 4.961 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005917/0.1632, allocations: 3.323 MB / 392.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.1632, allocations: 0 / 392.6 MB, free: 1.562 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001163/0.1644, allocations: 255.8 kB / 392.9 MB, free: 1.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001786/0.1662, allocations: 0.9224 MB / 393.8 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001012/0.1663, allocations: 43.95 kB / 393.8 MB, free: 348 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002364/0.1687, allocations: 1.944 MB / 395.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1687, allocations: 0 / 395.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005184/0.1739, allocations: 2.622 MB / 398.4 MB, free: 11.69 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004932/0.1744, allocations: 291.8 kB / 398.7 MB, free: 11.38 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001857/0.1746, allocations: 40 kB / 398.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001001/0.1756, allocations: 215.8 kB / 398.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004621/0.1761, allocations: 224.8 kB / 399.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/0.1762, allocations: 55.91 kB / 399.2 MB, free: 10.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005/0.1767, allocations: 426.8 kB / 399.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1767, allocations: 0 / 399.6 MB, free: 10.44 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001032/0.1778, allocations: 324 kB / 399.9 MB, free: 10.12 MB / 334.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,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,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 (94): * Single equations (assignments): 92 * 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 6,4 38} Notification: Performance of Backend phase and start with SimCode phase: time 0.005656/0.1834, allocations: 3.239 MB / 403.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.003177/0.1866, allocations: 1.523 MB / 404.7 MB, free: 5.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.1866, allocations: 4.312 kB / 404.7 MB, free: 5.32 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001768/0.1884, allocations: 0.8557 MB / 405.5 MB, free: 4.465 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001043/0.1895, allocations: 162.2 kB / 405.7 MB, free: 4.312 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01582/0.2053, allocations: 8.041 MB / 413.7 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000643/0.206, allocations: 1.031 MB / 414.8 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006049/0.2066, allocations: 131.2 kB / 414.9 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005372/0.2071, allocations: 343.3 kB / 415.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of SimCode: time 1.342e-06/0.2072, allocations: 4 kB / 415.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2442/0.4514, allocations: 27.2 MB / 442.4 MB, free: 61.5 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001793/0.4516, allocations: 212.2 kB / 442.7 MB, free: 61.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.525/2.977, allocations: 0 / 442.7 MB, free: 61.27 MB / 350.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat