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.00239/0.002395, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.293/2.293, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001297/0.001297, allocations: 86.77 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.418e-05/3.439e-05, allocations: 4 kB / 321.6 MB, free: 17.74 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.118/0.1181, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.486/0.6042, allocations: 87.53 MB / 456.7 MB, free: 5.777 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.6045, allocations: 68.03 kB / 456.8 MB, free: 5.746 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1142/0.7187, allocations: 23.17 MB / 479.9 MB, free: 328 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.7188, allocations: 0 / 479.9 MB, free: 328 kB / 346.7 MB Notification: Performance of Transformations before backend: time 5.319e-05/0.7189, allocations: 20 kB / 480 MB, free: 308 kB / 346.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.005118/0.724, allocations: 1.271 MB / 481.2 MB, free: 14.98 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.7241, allocations: 8.031 kB / 481.2 MB, free: 14.97 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004608/0.7245, allocations: 148 kB / 481.4 MB, free: 14.82 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008166/0.7254, allocations: 142.6 kB / 481.5 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001548/0.7269, allocations: 0.5334 MB / 482.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005327/0.7275, allocations: 199.1 kB / 482.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003301/0.7278, allocations: 103.9 kB / 482.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/0.7312, allocations: 1.154 MB / 483.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.566e-05/0.7313, allocations: 7.906 kB / 483.5 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001832/0.7315, allocations: 40 kB / 483.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.667e-05/0.7315, allocations: 24 kB / 483.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003549/0.7351, allocations: 1.136 MB / 484.7 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01229/0.7474, allocations: 3.7 MB / 488.4 MB, free: 7.547 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002749/0.7502, allocations: 0.9252 MB / 489.3 MB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001672/0.752, allocations: 0.5984 MB / 489.9 MB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001823/0.7522, allocations: 17.3 kB / 489.9 MB, free: 5.992 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.454e-05/0.7522, allocations: 55.81 kB / 490 MB, free: 5.926 MB / 362.7 MB Notification: Performance of pre-optimization done (n=135): time 6.682e-06/0.7522, allocations: 0 / 490 MB, free: 5.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=147): time 0.01248/0.7647, allocations: 3.733 MB / 493.7 MB, free: 2.125 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.285e-05/0.7649, allocations: 94.42 kB / 493.8 MB, free: 2.016 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008957/0.7658, allocations: 444.6 kB / 494.3 MB, free: 1.578 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002155/0.766, allocations: 61.7 kB / 494.3 MB, free: 1.512 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003475/0.7664, allocations: 356 kB / 494.7 MB, free: 1.16 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007301/0.7671, allocations: 0.4931 MB / 495.2 MB, free: 0.6602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.7673, allocations: 28 kB / 495.2 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002234/0.7675, allocations: 370.7 kB / 495.6 MB, free: 268 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/0.7694, allocations: 0.5155 MB / 496.1 MB, free: 15.75 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002629/0.772, allocations: 0.6531 MB / 496.7 MB, free: 15.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002832/0.7749, allocations: 461.7 kB / 497.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.458e-06/0.775, allocations: 0 / 497.2 MB, free: 14.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=179) (initialization): time 0.00602/0.781, allocations: 1.619 MB / 498.8 MB, free: 12.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.7811, allocations: 7.953 kB / 498.8 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.431e-05/0.7812, allocations: 4 kB / 498.8 MB, free: 12.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003145/0.7843, allocations: 0.7824 MB / 499.6 MB, free: 12.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002217/0.7866, allocations: 263.6 kB / 499.8 MB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003927/0.7906, allocations: 1.872 MB / 0.49 GB, free: 10 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002518/0.7932, allocations: 207.9 kB / 0.4902 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003274/0.7936, allocations: 59.98 kB / 0.4902 GB, free: 9.742 MB / 378.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 ($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,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (129): * Single equations (assignments): 123 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.0005468/0.7941, allocations: 187.7 kB / 0.4904 GB, free: 9.551 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003789/0.7945, allocations: 91.05 kB / 0.4905 GB, free: 9.461 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005589/0.8001, allocations: 1.777 MB / 0.4922 GB, free: 7.656 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.722e-05/0.8002, allocations: 12 kB / 0.4922 GB, free: 7.645 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/0.8002, allocations: 3.953 kB / 0.4922 GB, free: 7.641 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.23e-05/0.8003, allocations: 11.91 kB / 0.4922 GB, free: 7.629 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01082/0.8111, allocations: 3.029 MB / 0.4952 GB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.527e-05/0.8112, allocations: 0 / 0.4952 GB, free: 4.512 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002488/0.8137, allocations: 259.8 kB / 0.4954 GB, free: 4.258 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003022/0.8168, allocations: 0.7352 MB / 0.4962 GB, free: 3.516 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003921/0.8172, allocations: 55.89 kB / 0.4962 GB, free: 3.461 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003708/0.8209, allocations: 1.816 MB / 0.498 GB, free: 1.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.821, allocations: 3.938 kB / 0.498 GB, free: 1.586 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007675/0.8287, allocations: 2.251 MB / 0.5002 GB, free: 15.28 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001156/0.8299, allocations: 299.8 kB / 0.5005 GB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003599/0.8303, allocations: 36 kB / 0.5005 GB, free: 14.93 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002462/0.8328, allocations: 215.8 kB / 0.5007 GB, free: 14.72 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009443/0.8338, allocations: 232.8 kB / 0.5009 GB, free: 14.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002595/0.8341, allocations: 63.94 kB / 0.501 GB, free: 14.43 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007955/0.8349, allocations: 353.5 kB / 0.5013 GB, free: 14.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.8349, allocations: 0 / 0.5013 GB, free: 14.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001733/0.8366, allocations: 328 kB / 0.5016 GB, free: 13.76 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (lossyGear.mode,brake.mode,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward,brake.startBackward,bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (96): * Single equations (assignments): 94 * 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.008336/0.845, allocations: 3.158 MB / 0.5047 GB, free: 10.55 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00516/0.8502, allocations: 1.417 MB / 0.5061 GB, free: 9.109 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.8503, allocations: 0 / 0.5061 GB, free: 9.109 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003004/0.8533, allocations: 0.7661 MB / 0.5069 GB, free: 8.344 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001825/0.8552, allocations: 139.2 kB / 0.507 GB, free: 8.207 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/0.872, allocations: 3.18 MB / 0.5101 GB, free: 4.969 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009846/0.8731, allocations: 1.051 MB / 0.5111 GB, free: 3.891 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001192/0.8743, allocations: 347.3 kB / 0.5115 GB, free: 3.551 MB / 394.7 MB Notification: Performance of SimCode: time 1.213e-06/0.8744, allocations: 0 / 0.5115 GB, free: 3.551 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.809/4.683, allocations: 22.63 MB / 0.5336 GB, free: 127.1 MB / 410.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