Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Friction",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.001625/0.001624, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.904/1.904, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001168/0.001168, allocations: 95.39 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005535/0.0005535, allocations: 12 kB / 327.1 MB, free: 120 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3205, allocations: 47.57 MB / 374.6 MB, free: 45.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1284/0.4489, allocations: 80.51 MB / 455.1 MB, free: 152 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002972/0.4493, allocations: 71.97 kB / 455.2 MB, free: 80 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03769/0.487, allocations: 7.747 MB / 463 MB, free: 8.309 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.875e-06/0.4871, allocations: 0 / 463 MB, free: 8.309 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.21e-05/0.4871, allocations: 8 kB / 463 MB, free: 8.301 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.002284/0.4894, allocations: 0.7292 MB / 463.7 MB, free: 7.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.4895, allocations: 12.03 kB / 463.7 MB, free: 7.508 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002332/0.4897, allocations: 95.36 kB / 463.8 MB, free: 7.406 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.4899, allocations: 51.44 kB / 463.8 MB, free: 7.355 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006085/0.4905, allocations: 310.1 kB / 464.1 MB, free: 7.016 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.24e-05/0.4906, allocations: 33 kB / 464.2 MB, free: 6.984 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.4907, allocations: 44 kB / 464.2 MB, free: 6.941 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/0.4923, allocations: 458.3 kB / 464.7 MB, free: 6.488 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.319e-05/0.4923, allocations: 7.906 kB / 464.7 MB, free: 6.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/0.4924, allocations: 23.94 kB / 464.7 MB, free: 6.457 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.908e-05/0.4925, allocations: 12 kB / 464.7 MB, free: 6.445 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.4941, allocations: 455.6 kB / 465.2 MB, free: 6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004172/0.4983, allocations: 1.164 MB / 466.3 MB, free: 4.785 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001506/0.4999, allocations: 401.5 kB / 466.7 MB, free: 4.383 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001175/0.5, allocations: 8.438 kB / 466.7 MB, free: 4.375 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.412e-05/0.5001, allocations: 38.95 kB / 466.8 MB, free: 4.328 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.687e-06/0.5001, allocations: 0 / 466.8 MB, free: 4.328 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.00963/0.5098, allocations: 2.358 MB / 469.1 MB, free: 1.84 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.5099, allocations: 63.95 kB / 469.2 MB, free: 1.766 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000449/0.5104, allocations: 230.1 kB / 469.4 MB, free: 1.535 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001561/0.5105, allocations: 49.64 kB / 469.5 MB, free: 1.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.5107, allocations: 227.9 kB / 469.7 MB, free: 1.254 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003108/0.5111, allocations: 201.2 kB / 469.9 MB, free: 1.055 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.325e-05/0.5111, allocations: 16 kB / 469.9 MB, free: 1.039 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001704/0.5113, allocations: 330.8 kB / 470.2 MB, free: 0.707 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009403/0.5123, allocations: 229.2 kB / 470.4 MB, free: 496 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009154/0.5132, allocations: 268.8 kB / 470.7 MB, free: 220 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007604/0.514, allocations: 187.2 kB / 470.9 MB, free: 36 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/0.514, allocations: 0 / 470.9 MB, free: 36 kB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003109/0.5172, allocations: 0.7211 MB / 471.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.433e-05/0.5173, allocations: 9.547 kB / 471.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.199e-05/0.5173, allocations: 4 kB / 471.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001455/0.5188, allocations: 401.3 kB / 472 MB, free: 14.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007772/0.5196, allocations: 91.89 kB / 472.1 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002154/0.5218, allocations: 1.319 MB / 473.4 MB, free: 13.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001138/0.523, allocations: 108 kB / 473.5 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001279/0.5231, allocations: 20 kB / 473.5 MB, free: 13.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004199/0.5236, allocations: 181.5 kB / 473.7 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.5237, allocations: 39.53 kB / 473.8 MB, free: 13.08 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002877/0.5266, allocations: 0.7365 MB / 474.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.512e-05/0.5267, allocations: 8 kB / 474.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.565e-06/0.5267, allocations: 0 / 474.5 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/0.5267, allocations: 3.984 kB / 474.5 MB, free: 12.31 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004619/0.5313, allocations: 1.403 MB / 475.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.588e-06/0.5314, allocations: 4 kB / 475.9 MB, free: 10.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007995/0.5322, allocations: 83.89 kB / 476 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001214/0.5334, allocations: 385.4 kB / 476.4 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.883e-05/0.5336, allocations: 19.98 kB / 476.4 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001781/0.5353, allocations: 1.296 MB / 477.7 MB, free: 8.988 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.5354, allocations: 3.953 kB / 477.7 MB, free: 8.984 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003916/0.5393, allocations: 1.096 MB / 478.8 MB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004198/0.5398, allocations: 160.6 kB / 478.9 MB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001549/0.54, allocations: 20 kB / 479 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008998/0.5409, allocations: 79.86 kB / 479 MB, free: 7.547 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000381/0.5413, allocations: 120.1 kB / 479.2 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.882e-05/0.5414, allocations: 23.97 kB / 479.2 MB, free: 7.406 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003337/0.5417, allocations: 201.9 kB / 479.4 MB, free: 7.211 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.5417, allocations: 0 / 479.4 MB, free: 7.211 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007602/0.5425, allocations: 135.9 kB / 479.5 MB, free: 7.078 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 41 * 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,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004598/0.5471, allocations: 2.015 MB / 481.5 MB, free: 5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.5497, allocations: 0.6118 MB / 482.1 MB, free: 4.367 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/0.5497, allocations: 0 / 482.1 MB, free: 4.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.551, allocations: 318.3 kB / 482.5 MB, free: 4.059 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007988/0.5518, allocations: 73.23 kB / 482.5 MB, free: 3.988 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01379/0.5656, allocations: 3.705 MB / 486.2 MB, free: 204 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005933/0.5662, allocations: 0.8326 MB / 487.1 MB, free: 15.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000411/0.5667, allocations: 135.4 kB / 487.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5667, allocations: 0 / 487.2 MB, free: 15.21 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.011/3.577, allocations: 10 MB / 497.2 MB, free: 5.199 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat