Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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.001878/0.001878, allocations: 180.9 kB / 8.699 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.046/2.046, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001012/0.001012, allocations: 82.7 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.342e-05/2.337e-05, allocations: 3.984 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1395, allocations: 47.59 MB / 363.2 MB, free: 6.973 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.408/0.5475, allocations: 80 MB / 443.2 MB, free: 15.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002129/0.5478, allocations: 68.92 kB / 443.2 MB, free: 15.37 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02227/0.5701, allocations: 7.666 MB / 450.9 MB, free: 8.879 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.5701, allocations: 0 / 450.9 MB, free: 8.879 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.287e-05/0.5702, allocations: 8 kB / 450.9 MB, free: 8.871 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.001334/0.5715, allocations: 0.6978 MB / 451.6 MB, free: 8.156 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.5716, allocations: 12.03 kB / 451.6 MB, free: 8.145 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001201/0.5717, allocations: 47.44 kB / 451.7 MB, free: 8.098 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004727/0.5722, allocations: 301.5 kB / 452 MB, free: 7.789 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.658e-05/0.5722, allocations: 15.95 kB / 452 MB, free: 7.773 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-05/0.5723, allocations: 31.92 kB / 452 MB, free: 7.742 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006887/0.573, allocations: 382.5 kB / 452.4 MB, free: 7.492 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006672/0.5737, allocations: 367.3 kB / 452.7 MB, free: 7.223 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/0.5737, allocations: 7.469 kB / 452.7 MB, free: 7.219 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.769e-05/0.5738, allocations: 7.984 kB / 452.8 MB, free: 7.211 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.473e-05/0.5738, allocations: 8 kB / 452.8 MB, free: 7.203 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.5761, allocations: 1.066 MB / 453.8 MB, free: 6.305 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006258/0.5767, allocations: 361.6 kB / 454.2 MB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003762/0.5771, allocations: 226.1 kB / 454.4 MB, free: 5.926 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.042e-05/0.5772, allocations: 4.438 kB / 454.4 MB, free: 5.922 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.481e-05/0.5772, allocations: 42.92 kB / 454.4 MB, free: 5.875 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.216e-06/0.5772, allocations: 0 / 454.4 MB, free: 5.875 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.003385/0.5806, allocations: 1.559 MB / 456 MB, free: 4.512 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.653e-05/0.5807, allocations: 59.91 kB / 456.1 MB, free: 4.441 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002292/0.5809, allocations: 208.2 kB / 456.3 MB, free: 4.262 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.568e-05/0.581, allocations: 35.7 kB / 456.3 MB, free: 4.227 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.5811, allocations: 182.7 kB / 456.5 MB, free: 4.074 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/0.5813, allocations: 197.9 kB / 456.7 MB, free: 3.906 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.225e-05/0.5813, allocations: 0 / 456.7 MB, free: 3.906 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.5815, allocations: 351.1 kB / 457 MB, free: 3.57 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002952/0.5818, allocations: 183.5 kB / 457.2 MB, free: 3.465 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003154/0.5821, allocations: 228.5 kB / 457.4 MB, free: 3.324 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003861/0.5825, allocations: 165.5 kB / 457.6 MB, free: 3.219 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/0.5825, allocations: 0 / 457.6 MB, free: 3.219 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001401/0.5839, allocations: 0.6553 MB / 458.2 MB, free: 2.707 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.389e-05/0.584, allocations: 4 kB / 458.2 MB, free: 2.703 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.849e-05/0.584, allocations: 0 / 458.2 MB, free: 2.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007511/0.5848, allocations: 381 kB / 458.6 MB, free: 2.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003836/0.5852, allocations: 95.05 kB / 458.7 MB, free: 2.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.5866, allocations: 1.369 MB / 460.1 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005312/0.5871, allocations: 92.03 kB / 460.2 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.292e-05/0.5872, allocations: 23.38 kB / 460.2 MB, free: 0.9258 MB / 330.7 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.0002629/0.5875, allocations: 124.7 kB / 460.3 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001194/0.5887, allocations: 0.5462 MB / 460.9 MB, free: 392 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.697e-05/0.5888, allocations: 43.48 kB / 460.9 MB, free: 348 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001428/0.5902, allocations: 0.653 MB / 461.5 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.115e-06/0.5902, allocations: 4 kB / 461.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.5902, allocations: 0 / 461.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/0.5902, allocations: 3.984 kB / 461.6 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002567/0.5928, allocations: 1.263 MB / 462.8 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.15e-06/0.5928, allocations: 0 / 462.8 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003823/0.5932, allocations: 91.11 kB / 462.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006209/0.5938, allocations: 365.6 kB / 463.3 MB, free: 14.4 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.177e-05/0.5939, allocations: 15.41 kB / 463.3 MB, free: 14.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001212/0.5951, allocations: 1.337 MB / 464.6 MB, free: 13.11 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/0.5952, allocations: 8.062 kB / 464.6 MB, free: 13.1 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.5967, allocations: 0.9669 MB / 465.6 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002512/0.5969, allocations: 156.4 kB / 465.7 MB, free: 12.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.477e-05/0.597, allocations: 15.55 kB / 465.8 MB, free: 12.15 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004278/0.5975, allocations: 75.89 kB / 465.8 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002286/0.5977, allocations: 114.1 kB / 465.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-05/0.5978, allocations: 30.78 kB / 466 MB, free: 11.95 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001811/0.598, allocations: 165.9 kB / 466.1 MB, free: 11.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.598, allocations: 3.938 kB / 466.1 MB, free: 11.81 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005685/0.5985, allocations: 116 kB / 466.3 MB, free: 11.7 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.002372/0.6009, allocations: 1.88 MB / 468.1 MB, free: 10 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00109/0.602, allocations: 0.5405 MB / 468.7 MB, free: 9.609 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.602, allocations: 4 kB / 468.7 MB, free: 9.605 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005251/0.6026, allocations: 282 kB / 469 MB, free: 9.418 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005016/0.6031, allocations: 52.09 kB / 469 MB, free: 9.375 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003901/0.607, allocations: 1.386 MB / 470.4 MB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004846/0.6075, allocations: 0.8286 MB / 471.2 MB, free: 7.16 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000179/0.6077, allocations: 31.28 kB / 471.3 MB, free: 7.133 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.6079, allocations: 125.8 kB / 471.4 MB, free: 7.094 MB / 346.7 MB Notification: Performance of SimCode: time 9.42e-07/0.6079, allocations: 0 / 471.4 MB, free: 7.094 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03543/0.6433, allocations: 11.09 MB / 482.5 MB, free: 12 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002333/0.6437, allocations: 138.1 kB / 482.6 MB, free: 11.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.216/2.86, allocations: 0 / 482.6 MB, free: 11.8 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat does not exist to compare? outputFormat=mat