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.001279/0.00128, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.606/1.606, allocations: 221.5 MB / 230.3 MB, free: 7.516 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.001034/0.001034, allocations: 92.61 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.778e-05/1.78e-05, allocations: 0 / 337.1 MB, free: 9.922 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1256/0.1256, allocations: 50.42 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3576/0.4833, allocations: 80.69 MB / 468.2 MB, free: 14.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.4836, allocations: 71.97 kB / 468.3 MB, free: 13.94 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02225/0.5058, allocations: 7.814 MB / 476.1 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5059, allocations: 0 / 476.1 MB, free: 6.109 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.5059, allocations: 12 kB / 476.1 MB, free: 6.098 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.00124/0.5072, allocations: 0.6943 MB / 476.8 MB, free: 5.359 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.5072, allocations: 8.031 kB / 476.8 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.986e-05/0.5073, allocations: 51.44 kB / 476.9 MB, free: 5.301 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.5077, allocations: 306.1 kB / 477.2 MB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.5078, allocations: 16 kB / 477.2 MB, free: 4.941 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.831e-05/0.5078, allocations: 24 kB / 477.2 MB, free: 4.918 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007097/0.5086, allocations: 377.4 kB / 477.6 MB, free: 4.551 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006571/0.5092, allocations: 370 kB / 478 MB, free: 4.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.5093, allocations: 19.83 kB / 478 MB, free: 4.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.109e-05/0.5093, allocations: 0 / 478 MB, free: 4.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.266e-05/0.5093, allocations: 12 kB / 478 MB, free: 4.148 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002096/0.5114, allocations: 1.057 MB / 479.1 MB, free: 3.051 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006295/0.5121, allocations: 348 kB / 479.4 MB, free: 2.699 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.5124, allocations: 222.1 kB / 479.6 MB, free: 2.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.973e-05/0.5125, allocations: 16.41 kB / 479.6 MB, free: 2.465 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.5125, allocations: 39 kB / 479.7 MB, free: 2.418 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 1.773e-06/0.5126, allocations: 4 kB / 479.7 MB, free: 2.414 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.003227/0.5158, allocations: 1.554 MB / 481.2 MB, free: 0.7656 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.117e-05/0.5158, allocations: 64.22 kB / 481.3 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002152/0.5161, allocations: 198.3 kB / 481.5 MB, free: 0.4922 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.504e-05/0.5161, allocations: 33.7 kB / 481.5 MB, free: 464 kB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.239e-05/0.5162, allocations: 185.3 kB / 481.7 MB, free: 276 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001748/0.5164, allocations: 197.1 kB / 481.9 MB, free: 76 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.146e-05/0.5164, allocations: 0 / 481.9 MB, free: 76 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.5166, allocations: 350.8 kB / 482.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000289/0.5169, allocations: 185.5 kB / 482.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/0.5172, allocations: 228.7 kB / 482.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003892/0.5176, allocations: 164.5 kB / 482.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.714e-06/0.5177, allocations: 4 kB / 482.8 MB, free: 15.15 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001378/0.519, allocations: 0.6535 MB / 483.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.5191, allocations: 8 kB / 483.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.5191, allocations: 0 / 483.5 MB, free: 14.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006993/0.5198, allocations: 389.4 kB / 483.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003366/0.5201, allocations: 87.89 kB / 483.9 MB, free: 14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.5215, allocations: 1.374 MB / 485.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004955/0.522, allocations: 96.06 kB / 485.4 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.266e-05/0.5221, allocations: 20 kB / 485.4 MB, free: 12.46 MB / 362.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.0002098/0.5223, allocations: 125.4 kB / 485.5 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001189/0.5235, allocations: 0.5471 MB / 486.1 MB, free: 11.78 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.654e-05/0.5236, allocations: 39.53 kB / 486.1 MB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001361/0.525, allocations: 0.6471 MB / 486.8 MB, free: 11.07 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.999e-06/0.525, allocations: 8 kB / 486.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.525, allocations: 4 kB / 486.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.982e-06/0.525, allocations: 0 / 486.8 MB, free: 11.06 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002419/0.5275, allocations: 1.271 MB / 488 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.609e-06/0.5275, allocations: 0 / 488 MB, free: 9.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000386/0.5279, allocations: 87.89 kB / 488.1 MB, free: 9.637 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007233/0.5286, allocations: 369.7 kB / 488.5 MB, free: 9.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.704e-05/0.5287, allocations: 15.98 kB / 488.5 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001276/0.53, allocations: 1.343 MB / 489.9 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.53, allocations: 0 / 489.9 MB, free: 7.859 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001723/0.5317, allocations: 0.9676 MB / 490.8 MB, free: 6.824 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002208/0.5319, allocations: 160.6 kB / 491 MB, free: 6.648 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.401e-05/0.532, allocations: 15.98 kB / 491 MB, free: 6.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004281/0.5325, allocations: 67.94 kB / 491.1 MB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002168/0.5327, allocations: 116.2 kB / 491.2 MB, free: 6.453 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.394e-05/0.5328, allocations: 27.97 kB / 491.2 MB, free: 6.426 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001574/0.5329, allocations: 162 kB / 491.4 MB, free: 6.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5329, allocations: 7.938 kB / 491.4 MB, free: 6.262 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005526/0.5335, allocations: 116 kB / 491.5 MB, free: 6.148 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) * 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.002209/0.5357, allocations: 1.884 MB / 493.4 MB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009957/0.5367, allocations: 0.5399 MB / 493.9 MB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/0.5367, allocations: 0 / 493.9 MB, free: 3.645 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005039/0.5373, allocations: 289.5 kB / 494.2 MB, free: 3.363 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004767/0.5377, allocations: 52.84 kB / 494.2 MB, free: 3.309 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003644/0.5414, allocations: 1.382 MB / 495.6 MB, free: 1.875 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000425/0.5418, allocations: 0.8286 MB / 496.4 MB, free: 1.023 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001662/0.542, allocations: 39.27 kB / 496.5 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/0.5422, allocations: 123.4 kB / 496.6 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.5422, allocations: 0 / 496.6 MB, free: 0.8633 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03361/0.5758, allocations: 11.09 MB / 0.4958 GB, free: 5.836 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002346/0.5762, allocations: 138.6 kB / 0.4959 GB, free: 5.641 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.231/2.807, allocations: 0 / 0.4959 GB, free: 5.641 MB / 378.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