Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 221.3 MB / 235.5 MB, free: 2.945 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009845/0.0009845, allocations: 101.1 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.66e-05/2.708e-05, allocations: 0 / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09889/0.09894, allocations: 50.42 MB / 394.3 MB, free: 1.746 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3519/0.4508, allocations: 81.36 MB / 475.7 MB, free: 6.086 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.4511, allocations: 75.91 kB / 475.8 MB, free: 6.012 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02284/0.474, allocations: 7.852 MB / 483.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.474, allocations: 0 / 483.6 MB, free: 14.14 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.352e-05/0.474, allocations: 8 kB / 483.6 MB, free: 14.13 MB / 362.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.001315/0.4754, allocations: 0.6904 MB / 484.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.106e-05/0.4754, allocations: 16.02 kB / 484.3 MB, free: 13.38 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001491/0.4756, allocations: 83.44 kB / 484.4 MB, free: 13.29 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.4757, allocations: 47.44 kB / 484.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004687/0.4762, allocations: 318.1 kB / 484.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.695e-05/0.4762, allocations: 32.94 kB / 484.8 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.552e-05/0.4763, allocations: 48 kB / 484.9 MB, free: 12.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007934/0.4771, allocations: 434.4 kB / 485.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.736e-05/0.4772, allocations: 7.859 kB / 485.3 MB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.995e-05/0.4772, allocations: 20 kB / 485.3 MB, free: 12.36 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.257e-05/0.4773, allocations: 12 kB / 485.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007004/0.478, allocations: 395.9 kB / 485.7 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.4803, allocations: 1.164 MB / 486.9 MB, free: 10.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007263/0.481, allocations: 372.2 kB / 487.2 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004108/0.4814, allocations: 242.1 kB / 487.5 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.091e-05/0.4815, allocations: 8.438 kB / 487.5 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.015e-05/0.4815, allocations: 35 kB / 487.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.385e-06/0.4816, allocations: 0 / 487.5 MB, free: 10.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.00304/0.4846, allocations: 1.656 MB / 489.2 MB, free: 8.332 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.4847, allocations: 59.97 kB / 489.2 MB, free: 8.262 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000235/0.4849, allocations: 231.4 kB / 489.5 MB, free: 8.031 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.49e-05/0.485, allocations: 49.69 kB / 489.5 MB, free: 7.977 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.4851, allocations: 185.3 kB / 489.7 MB, free: 7.789 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001577/0.4853, allocations: 189.3 kB / 489.9 MB, free: 7.602 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/0.4853, allocations: 15.94 kB / 489.9 MB, free: 7.586 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.4854, allocations: 354.7 kB / 490.2 MB, free: 7.23 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003435/0.4858, allocations: 197.5 kB / 490.4 MB, free: 7.035 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003836/0.4862, allocations: 246.3 kB / 490.7 MB, free: 6.785 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002894/0.4865, allocations: 170.1 kB / 490.8 MB, free: 6.621 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4865, allocations: 0 / 490.8 MB, free: 6.621 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00143/0.4879, allocations: 0.6809 MB / 491.5 MB, free: 5.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.488, allocations: 12.03 kB / 491.5 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.488, allocations: 0 / 491.5 MB, free: 5.918 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007917/0.4888, allocations: 377.5 kB / 491.9 MB, free: 5.543 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.4892, allocations: 99.78 kB / 492 MB, free: 5.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.4904, allocations: 1.327 MB / 493.3 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005764/0.491, allocations: 100 kB / 493.4 MB, free: 3.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.341e-05/0.4911, allocations: 23.98 kB / 493.4 MB, free: 3.945 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 () * 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.000182/0.4913, allocations: 136.9 kB / 493.6 MB, free: 3.805 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.294e-05/0.4914, allocations: 43.53 kB / 493.6 MB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001493/0.4929, allocations: 0.6936 MB / 494.3 MB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.4929, allocations: 4 kB / 494.3 MB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4929, allocations: 0 / 494.3 MB, free: 3.051 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.976e-06/0.4929, allocations: 7.984 kB / 494.3 MB, free: 3.043 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/0.4956, allocations: 1.356 MB / 495.7 MB, free: 1.598 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.103e-06/0.4956, allocations: 4 kB / 495.7 MB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003784/0.496, allocations: 87.83 kB / 495.8 MB, free: 1.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000717/0.4967, allocations: 365.8 kB / 496.1 MB, free: 1.145 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.716e-05/0.4968, allocations: 23.97 kB / 496.1 MB, free: 1.121 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001198/0.498, allocations: 1.308 MB / 497.5 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.498, allocations: 4 kB / 497.5 MB, free: 15.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/0.4997, allocations: 1.003 MB / 498.5 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002643/0.5, allocations: 160.6 kB / 498.6 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.5002, allocations: 23.98 kB / 498.6 MB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004813/0.5006, allocations: 79.94 kB / 498.7 MB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002312/0.5009, allocations: 108.2 kB / 498.8 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.206e-05/0.501, allocations: 35.97 kB / 498.9 MB, free: 14.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002078/0.5012, allocations: 187.1 kB / 499 MB, free: 14.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5012, allocations: 0 / 499 MB, free: 14.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005837/0.5018, allocations: 135.9 kB / 499.2 MB, free: 13.95 MB / 378.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) * 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.002297/0.5041, allocations: 1.938 MB / 0.4894 GB, free: 11.95 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001256/0.5054, allocations: 0.5657 MB / 0.4899 GB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5054, allocations: 64 / 0.4899 GB, free: 11.37 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006072/0.506, allocations: 298.4 kB / 0.4902 GB, free: 11.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005264/0.5065, allocations: 64.69 kB / 0.4903 GB, free: 11.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004045/0.5106, allocations: 1.448 MB / 0.4917 GB, free: 9.512 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004719/0.5111, allocations: 0.8288 MB / 0.4925 GB, free: 8.656 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001995/0.5113, allocations: 39.27 kB / 0.4925 GB, free: 8.617 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002209/0.5115, allocations: 131.4 kB / 0.4927 GB, free: 8.488 MB / 378.7 MB Notification: Performance of SimCode: time 1.052e-06/0.5115, allocations: 0 / 0.4927 GB, free: 8.488 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02971/0.5412, allocations: 11.92 MB / 0.5043 GB, free: 12.74 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002303/0.5415, allocations: 180.5 kB / 0.5045 GB, free: 12.52 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.342/2.884, allocations: 0 / 0.5045 GB, free: 12.52 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat