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.002144/0.002143, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.289/2.289, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001071/0.001071, allocations: 100 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.09e-05/2.088e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3393, allocations: 47.57 MB / 362.4 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1312/0.4706, allocations: 79.75 MB / 442.2 MB, free: 6.535 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002849/0.471, allocations: 71.97 kB / 442.3 MB, free: 6.465 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03694/0.5079, allocations: 7.659 MB / 449.9 MB, free: 14.84 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.508, allocations: 0 / 449.9 MB, free: 14.84 MB / 347.1 MB Notification: Performance of Transformations before backend: time 3.067e-05/0.508, allocations: 8 kB / 449.9 MB, free: 14.83 MB / 347.1 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.002136/0.5102, allocations: 0.6964 MB / 450.6 MB, free: 14.09 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.5102, allocations: 8.031 kB / 450.6 MB, free: 14.08 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002074/0.5105, allocations: 51.42 kB / 450.7 MB, free: 14.03 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007242/0.5112, allocations: 310.8 kB / 451 MB, free: 13.68 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.973e-05/0.5113, allocations: 16.83 kB / 451 MB, free: 13.67 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001307/0.5114, allocations: 24 kB / 451 MB, free: 13.64 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001165/0.5126, allocations: 377.4 kB / 451.4 MB, free: 13.28 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001098/0.5137, allocations: 374 kB / 451.8 MB, free: 12.9 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.31e-05/0.5138, allocations: 3.906 kB / 451.8 MB, free: 12.9 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.353e-05/0.5138, allocations: 0 / 451.8 MB, free: 12.9 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.824e-05/0.5139, allocations: 12.84 kB / 451.8 MB, free: 12.89 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003848/0.5177, allocations: 1.076 MB / 452.8 MB, free: 11.77 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001135/0.5189, allocations: 352.6 kB / 453.2 MB, free: 11.41 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006291/0.5196, allocations: 222.1 kB / 453.4 MB, free: 11.2 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.566e-05/0.5197, allocations: 12.44 kB / 453.4 MB, free: 11.18 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.905e-05/0.5197, allocations: 38.44 kB / 453.5 MB, free: 11.14 MB / 347.1 MB Notification: Performance of pre-optimization done (n=52): time 3.867e-06/0.5197, allocations: 0 / 453.5 MB, free: 11.14 MB / 347.1 MB Notification: Performance of matching and sorting (n=58): time 0.00556/0.5253, allocations: 1.563 MB / 455 MB, free: 9.484 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/0.5254, allocations: 59.97 kB / 455.1 MB, free: 9.414 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003638/0.5258, allocations: 203.2 kB / 455.3 MB, free: 9.211 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.5259, allocations: 33.7 kB / 455.3 MB, free: 9.172 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000209/0.5262, allocations: 235.8 kB / 455.5 MB, free: 8.941 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002774/0.5265, allocations: 205.2 kB / 455.7 MB, free: 8.738 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/0.5265, allocations: 0 / 455.7 MB, free: 8.738 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.5267, allocations: 330.8 kB / 456.1 MB, free: 8.406 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005496/0.5272, allocations: 189.5 kB / 456.2 MB, free: 8.219 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005945/0.5279, allocations: 228.7 kB / 456.5 MB, free: 7.992 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008013/0.5287, allocations: 164.5 kB / 456.6 MB, free: 7.836 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.737e-06/0.5287, allocations: 0 / 456.6 MB, free: 7.836 MB / 347.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.004588/0.5333, allocations: 0.647 MB / 457.3 MB, free: 7.172 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.495e-05/0.5334, allocations: 4 kB / 457.3 MB, free: 7.168 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-05/0.5335, allocations: 4 kB / 457.3 MB, free: 7.164 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002422/0.5359, allocations: 377.4 kB / 457.7 MB, free: 6.789 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/0.5372, allocations: 99.84 kB / 457.8 MB, free: 6.691 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003499/0.5408, allocations: 1.364 MB / 459.1 MB, free: 5.277 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/0.5419, allocations: 96.06 kB / 459.2 MB, free: 5.184 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.5421, allocations: 23.98 kB / 459.2 MB, free: 5.16 MB / 347.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0003097/0.5424, allocations: 120.8 kB / 459.4 MB, free: 5.039 MB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.002107/0.5445, allocations: 0.547 MB / 459.9 MB, free: 4.484 MB / 347.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001403/0.5447, allocations: 39.58 kB / 459.9 MB, free: 4.445 MB / 347.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00262/0.5473, allocations: 0.6547 MB / 460.6 MB, free: 3.77 MB / 347.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.331e-05/0.5474, allocations: 4 kB / 460.6 MB, free: 3.766 MB / 347.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.558e-06/0.5474, allocations: 2.375 kB / 460.6 MB, free: 3.766 MB / 347.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/0.5474, allocations: 3.984 kB / 460.6 MB, free: 3.762 MB / 347.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00443/0.5519, allocations: 1.271 MB / 461.9 MB, free: 2.422 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-05/0.5519, allocations: 4 kB / 461.9 MB, free: 2.418 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007859/0.5527, allocations: 84.05 kB / 462 MB, free: 2.336 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.554, allocations: 365.4 kB / 462.3 MB, free: 1.973 MB / 347.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-05/0.5541, allocations: 15.97 kB / 462.3 MB, free: 1.957 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.556, allocations: 1.336 MB / 463.7 MB, free: 0.5703 MB / 347.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.647e-06/0.5561, allocations: 3.859 kB / 463.7 MB, free: 0.5703 MB / 347.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002912/0.559, allocations: 0.9637 MB / 464.6 MB, free: 15.54 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004079/0.5595, allocations: 164.6 kB / 464.8 MB, free: 15.36 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001349/0.5596, allocations: 8 kB / 464.8 MB, free: 15.35 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008273/0.5605, allocations: 75.88 kB / 464.9 MB, free: 15.28 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003893/0.5609, allocations: 124.1 kB / 465 MB, free: 15.16 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.925e-05/0.561, allocations: 21.02 kB / 465 MB, free: 15.14 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0002445/0.5612, allocations: 169.9 kB / 465.2 MB, free: 14.97 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5612, allocations: 0 / 465.2 MB, free: 14.97 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0007561/0.562, allocations: 112 kB / 465.3 MB, free: 14.86 MB / 363.1 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.003655/0.5657, allocations: 1.897 MB / 467.2 MB, free: 12.9 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0017/0.5674, allocations: 0.5361 MB / 467.7 MB, free: 12.35 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.24e-06/0.5675, allocations: 0 / 467.7 MB, free: 12.35 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009282/0.5684, allocations: 277.5 kB / 468 MB, free: 12.08 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008196/0.5693, allocations: 52.41 kB / 468.1 MB, free: 12.03 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006779/0.5761, allocations: 1.427 MB / 469.5 MB, free: 10.54 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005486/0.5767, allocations: 0.8286 MB / 470.3 MB, free: 9.691 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004003/0.5771, allocations: 127.4 kB / 470.4 MB, free: 9.566 MB / 363.1 MB Notification: Performance of SimCode: time 1.433e-06/0.5771, allocations: 4 kB / 470.4 MB, free: 9.562 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.948/3.525, allocations: 9.773 MB / 480.2 MB, free: 15.82 MB / 379.1 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