Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002326/0.002325, allocations: 186.2 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.256/2.256, allocations: 205.4 MB / 222.5 MB, free: 13.84 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00117/0.001169, allocations: 90.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003837/0.0003837, allocations: 19.98 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1006, allocations: 47.57 MB / 374.6 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.HeatLosses): time 0.007219/0.1079, allocations: 4.027 MB / 378.7 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005247/0.1132, allocations: 1.76 MB / 380.4 MB, free: 9.508 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007765/0.114, allocations: 11.94 kB / 380.4 MB, free: 9.496 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004087/0.1145, allocations: 127.1 kB / 380.6 MB, free: 9.371 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001722/0.1162, allocations: 418.8 kB / 381 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001651/0.1179, allocations: 391.4 kB / 381.3 MB, free: 8.578 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002492/0.1204, allocations: 1.01 MB / 382.4 MB, free: 7.562 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006478/0.1211, allocations: 245.6 kB / 382.6 MB, free: 7.309 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001393/0.1225, allocations: 0.588 MB / 383.2 MB, free: 6.719 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001509/0.1241, allocations: 0.6891 MB / 383.9 MB, free: 6.027 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003275/0.1244, allocations: 64 kB / 383.9 MB, free: 5.965 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006466/0.1251, allocations: 135.9 kB / 384.1 MB, free: 5.832 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004411/0.1255, allocations: 267.1 kB / 384.3 MB, free: 5.57 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004102/0.126, allocations: 209.1 kB / 384.5 MB, free: 5.359 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001916/0.1279, allocations: 1.052 MB / 385.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1279, allocations: 0 / 385.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.128, allocations: 0 / 385.6 MB, free: 4.305 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.107e-05/0.128, allocations: 0 / 385.6 MB, free: 4.305 MB / 282.7 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.005535/0.1335, allocations: 1.38 MB / 387 MB, free: 2.871 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.984e-05/0.1336, allocations: 16.02 kB / 387 MB, free: 2.855 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003823/0.134, allocations: 148 kB / 387.1 MB, free: 2.703 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007648/0.1348, allocations: 138.6 kB / 387.3 MB, free: 2.566 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.1364, allocations: 0.5802 MB / 387.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000544/0.1369, allocations: 199.1 kB / 388 MB, free: 1.73 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003311/0.1373, allocations: 111.8 kB / 388.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004215/0.1415, allocations: 1.259 MB / 389.4 MB, free: 352 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.579e-05/0.1416, allocations: 7.906 kB / 389.4 MB, free: 344 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001833/0.1418, allocations: 40 kB / 389.4 MB, free: 304 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.203e-05/0.1418, allocations: 20 kB / 389.5 MB, free: 284 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2935/0.4353, allocations: 1.367 MB / 390.8 MB, free: 20.31 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.4472, allocations: 3.749 MB / 394.6 MB, free: 18.68 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003825/0.4511, allocations: 1.069 MB / 395.6 MB, free: 18.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001827/0.4513, allocations: 20.33 kB / 395.7 MB, free: 18.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.4514, allocations: 44.86 kB / 395.7 MB, free: 18.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=129): time 4.118e-06/0.4514, allocations: 4 kB / 395.7 MB, free: 18.23 MB / 282.7 MB Notification: Performance of matching and sorting (n=141): time 0.02574/0.4771, allocations: 5.878 MB / 401.6 MB, free: 15.65 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.613e-05/0.4773, allocations: 93.78 kB / 401.7 MB, free: 15.56 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.4784, allocations: 0.5848 MB / 402.3 MB, free: 15.32 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003032/0.4788, allocations: 63.77 kB / 402.3 MB, free: 15.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002436/0.479, allocations: 373.5 kB / 402.7 MB, free: 14.95 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005806/0.4796, allocations: 483.8 kB / 403.2 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001376/0.4798, allocations: 27.16 kB / 403.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.4799, allocations: 369.5 kB / 403.6 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002225/0.4821, allocations: 0.5849 MB / 404.1 MB, free: 14.02 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002463/0.4846, allocations: 0.7244 MB / 404.9 MB, free: 13.72 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002019/0.4867, allocations: 0.517 MB / 405.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.4868, allocations: 0 / 405.4 MB, free: 13.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.006689/0.4935, allocations: 1.827 MB / 407.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.203e-05/0.4935, allocations: 5.062 kB / 407.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.4936, allocations: 3.703 kB / 407.2 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003233/0.4968, allocations: 0.9624 MB / 408.2 MB, free: 12.3 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002048/0.4989, allocations: 261 kB / 408.4 MB, free: 12.24 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003568/0.5025, allocations: 1.999 MB / 410.4 MB, free: 10.72 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/0.5048, allocations: 202.2 kB / 410.6 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.505, allocations: 59.11 kB / 410.7 MB, free: 10.62 MB / 282.7 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.0007043/0.5058, allocations: 272.1 kB / 411 MB, free: 10.4 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002893/0.5061, allocations: 90.09 kB / 411 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003483/0.5064, allocations: 129 kB / 411.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-05/0.5065, allocations: 12.98 kB / 411.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.233e-05/0.5065, allocations: 3.969 kB / 411.2 MB, free: 10.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.5065, allocations: 7.969 kB / 411.2 MB, free: 10.24 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009554/0.5161, allocations: 3.316 MB / 414.5 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.024e-05/0.5161, allocations: 0 / 414.5 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002143/0.5183, allocations: 255.7 kB / 414.8 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002892/0.5212, allocations: 0.9164 MB / 415.7 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002725/0.5215, allocations: 47.94 kB / 415.7 MB, free: 6.004 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003322/0.5249, allocations: 1.93 MB / 417.7 MB, free: 4.02 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.5249, allocations: 8.016 kB / 417.7 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008672/0.5336, allocations: 2.644 MB / 420.3 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008588/0.5345, allocations: 299.8 kB / 420.6 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003019/0.5348, allocations: 47.92 kB / 420.6 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002064/0.5369, allocations: 211.8 kB / 420.9 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007287/0.5377, allocations: 232.8 kB / 421.1 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001615/0.5379, allocations: 51.95 kB / 421.1 MB, free: 496 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000739/0.5386, allocations: 418.8 kB / 421.5 MB, free: 76 kB / 282.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.5386, allocations: 0 / 421.5 MB, free: 76 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001542/0.5402, allocations: 321.4 kB / 421.9 MB, free: 15.76 MB / 298.7 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.01072/0.5509, allocations: 3.414 MB / 425.3 MB, free: 12.31 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.005667/0.5566, allocations: 1.523 MB / 426.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.161e-06/0.5567, allocations: 0 / 426.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003378/0.5601, allocations: 0.856 MB / 427.6 MB, free: 9.934 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001396/0.5615, allocations: 131.7 kB / 427.8 MB, free: 9.801 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03026/0.5918, allocations: 8.964 MB / 436.7 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009057/0.5928, allocations: 1.047 MB / 437.8 MB, free: 15.59 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001062/0.5939, allocations: 359.2 kB / 438.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of SimCode: time 1.633e-06/0.5939, allocations: 0 / 438.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.406/4, allocations: 22.35 MB / 460.5 MB, free: 8.832 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_HeatLosses.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.HeatLosses_res.mat does not exist to compare? outputFormat=mat