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.001635/0.001635, allocations: 181.6 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.157/2.157, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001215/0.001214, allocations: 86.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.807e-05/3.824e-05, allocations: 7.984 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1065/0.1066, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4357/0.5424, allocations: 80.42 MB / 449.6 MB, free: 12.78 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002601/0.5427, allocations: 67.22 kB / 449.7 MB, free: 12.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03616/0.5789, allocations: 7.724 MB / 457.4 MB, free: 6.109 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5789, allocations: 0 / 457.4 MB, free: 6.109 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.452e-05/0.579, allocations: 8 kB / 457.4 MB, free: 6.102 MB / 330.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.002024/0.581, allocations: 0.6932 MB / 458.1 MB, free: 5.391 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.638e-05/0.5811, allocations: 11.97 kB / 458.1 MB, free: 5.379 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002141/0.5813, allocations: 86.55 kB / 458.2 MB, free: 5.309 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.5815, allocations: 51.42 kB / 458.2 MB, free: 5.258 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005876/0.5821, allocations: 314.2 kB / 458.5 MB, free: 4.938 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.752e-05/0.5822, allocations: 31.38 kB / 458.6 MB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001309/0.5823, allocations: 52.17 kB / 458.6 MB, free: 4.883 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001157/0.5835, allocations: 431.6 kB / 459 MB, free: 4.586 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.5e-05/0.5835, allocations: 11.83 kB / 459.1 MB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.096e-05/0.5836, allocations: 17.12 kB / 459.1 MB, free: 4.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.817e-05/0.5836, allocations: 8 kB / 459.1 MB, free: 4.562 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001154/0.5848, allocations: 407.9 kB / 459.5 MB, free: 4.289 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003727/0.5885, allocations: 1.158 MB / 460.6 MB, free: 3.316 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/0.5898, allocations: 378.1 kB / 461 MB, free: 3.062 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006859/0.5905, allocations: 238.1 kB / 461.2 MB, free: 2.902 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.907e-05/0.5906, allocations: 12.41 kB / 461.2 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/0.5907, allocations: 42.95 kB / 461.3 MB, free: 2.836 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.947e-06/0.5907, allocations: 0 / 461.3 MB, free: 2.836 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.005028/0.5957, allocations: 1.64 MB / 462.9 MB, free: 1.102 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.584e-05/0.5959, allocations: 59.97 kB / 463 MB, free: 1.031 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004135/0.5963, allocations: 235.5 kB / 463.2 MB, free: 0.793 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.5964, allocations: 37.7 kB / 463.3 MB, free: 0.75 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.5966, allocations: 239.8 kB / 463.5 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002597/0.5969, allocations: 201.2 kB / 463.7 MB, free: 320 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.905e-05/0.5969, allocations: 12 kB / 463.7 MB, free: 308 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001868/0.5971, allocations: 334.8 kB / 464 MB, free: 15.96 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006415/0.5978, allocations: 197.5 kB / 464.2 MB, free: 15.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006658/0.5985, allocations: 246.2 kB / 464.5 MB, free: 15.52 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000508/0.599, allocations: 166 kB / 464.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.599, allocations: 0 / 464.6 MB, free: 15.36 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002515/0.6015, allocations: 0.6772 MB / 465.3 MB, free: 14.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.91e-05/0.6016, allocations: 8 kB / 465.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.558e-05/0.6016, allocations: 0 / 465.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001289/0.6029, allocations: 377.5 kB / 465.7 MB, free: 14.29 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007292/0.6037, allocations: 95.83 kB / 465.8 MB, free: 14.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001947/0.6057, allocations: 1.327 MB / 467.1 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001063/0.6068, allocations: 100 kB / 467.2 MB, free: 12.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001086/0.6069, allocations: 27.98 kB / 467.2 MB, free: 12.69 MB / 346.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.0002594/0.6072, allocations: 140.7 kB / 467.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.6074, allocations: 39.53 kB / 467.4 MB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002409/0.6098, allocations: 0.682 MB / 468.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/0.6098, allocations: 7.984 kB / 468.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.6099, allocations: 4 kB / 468.1 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.288e-05/0.6099, allocations: 3.984 kB / 468.1 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004549/0.6144, allocations: 1.387 MB / 469.5 MB, free: 10.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-05/0.6145, allocations: 4 kB / 469.5 MB, free: 10.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008073/0.6153, allocations: 84.05 kB / 469.6 MB, free: 10.24 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001215/0.6166, allocations: 361.5 kB / 469.9 MB, free: 9.883 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001091/0.6167, allocations: 19.98 kB / 469.9 MB, free: 9.863 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001765/0.6185, allocations: 1.304 MB / 471.2 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.643e-06/0.6185, allocations: 4.031 kB / 471.2 MB, free: 8.504 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002915/0.6215, allocations: 0.9989 MB / 472.2 MB, free: 7.441 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003823/0.6219, allocations: 164.6 kB / 472.4 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001413/0.622, allocations: 20 kB / 472.4 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008217/0.6229, allocations: 79.94 kB / 472.5 MB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003721/0.6233, allocations: 120.1 kB / 472.6 MB, free: 7.043 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.85e-05/0.6234, allocations: 27.97 kB / 472.7 MB, free: 7.016 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000326/0.6237, allocations: 191.4 kB / 472.8 MB, free: 6.828 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.6237, allocations: 0 / 472.8 MB, free: 6.828 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007158/0.6244, allocations: 132 kB / 473 MB, free: 6.699 MB / 346.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.003556/0.628, allocations: 1.94 MB / 474.9 MB, free: 4.695 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.6298, allocations: 0.558 MB / 475.5 MB, free: 4.117 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.414e-06/0.6299, allocations: 8.062 kB / 475.5 MB, free: 4.109 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.6309, allocations: 294.3 kB / 475.8 MB, free: 3.824 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007897/0.6317, allocations: 66.64 kB / 475.8 MB, free: 3.762 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006725/0.6385, allocations: 1.469 MB / 477.3 MB, free: 2.23 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005435/0.6391, allocations: 0.8405 MB / 478.1 MB, free: 1.359 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003447/0.6394, allocations: 131.4 kB / 478.3 MB, free: 1.23 MB / 346.7 MB Notification: Performance of SimCode: time 3.075e-06/0.6395, allocations: 4 kB / 478.3 MB, free: 1.227 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.949/3.589, allocations: 9.961 MB / 488.2 MB, free: 7.258 MB / 362.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