Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002216/0.002216, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002295/0.002295, allocations: 213.2 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.464/1.464, allocations: 230.6 MB / 258.3 MB, free: 8.051 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002028/0.002028, allocations: 68.75 kB / 378.5 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2705, allocations: 53.37 MB / 431.9 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005285/0.2758, allocations: 3.207 MB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002385/0.2782, allocations: 1.149 MB / 436.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002778/0.2785, allocations: 7.938 kB / 436.3 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003827/0.2789, allocations: 83.23 kB / 436.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004652/0.2793, allocations: 186.7 kB / 436.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.2798, allocations: 199.7 kB / 436.7 MB, free: 2.051 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008391/0.2806, allocations: 0.6706 MB / 437.4 MB, free: 1.379 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.2808, allocations: 92.7 kB / 437.5 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005404/0.2814, allocations: 315 kB / 437.8 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004636/0.2818, allocations: 322.8 kB / 438.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.144e-05/0.2819, allocations: 52 kB / 438.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002407/0.2822, allocations: 112 kB / 438.3 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.2823, allocations: 135.6 kB / 438.4 MB, free: 372 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002854/0.2826, allocations: 266.7 kB / 438.7 MB, free: 104 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008551/0.2835, allocations: 0.6545 MB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.2835, allocations: 0 / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2835, allocations: 0 / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.039e-05/0.2835, allocations: 4 kB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.00158/0.2851, allocations: 0.7698 MB / 440.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.2851, allocations: 8.031 kB / 440.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001503/0.2853, allocations: 87.67 kB / 440.2 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002406/0.2855, allocations: 64.59 kB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005665/0.2861, allocations: 290.1 kB / 440.5 MB, free: 14.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.28e-05/0.2861, allocations: 37.36 kB / 440.6 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.939e-05/0.2862, allocations: 48.33 kB / 440.6 MB, free: 14.09 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009624/0.2872, allocations: 482.4 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.335e-05/0.2872, allocations: 4 kB / 441.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.247e-05/0.2873, allocations: 20 kB / 441.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.192e-05/0.2873, allocations: 11.94 kB / 441.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001076/0.2884, allocations: 475.6 kB / 441.6 MB, free: 13.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002249/0.2906, allocations: 1.122 MB / 442.7 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009468/0.2916, allocations: 408.5 kB / 443.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005684/0.2921, allocations: 242.2 kB / 443.4 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.303e-05/0.2922, allocations: 8.5 kB / 443.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.2922, allocations: 35.06 kB / 443.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.284e-06/0.2922, allocations: 0 / 443.4 MB, free: 11.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005387/0.2976, allocations: 2.014 MB / 445.4 MB, free: 9.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.2976, allocations: 59.91 kB / 445.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003966/0.298, allocations: 308.5 kB / 445.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.863e-05/0.2981, allocations: 41.7 kB / 445.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001604/0.2983, allocations: 193.6 kB / 446 MB, free: 8.555 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.2985, allocations: 226.2 kB / 446.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001912/0.2987, allocations: 102.3 kB / 446.3 MB, free: 8.227 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.2989, allocations: 354.8 kB / 446.7 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005147/0.2994, allocations: 229.2 kB / 446.9 MB, free: 7.648 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005945/0.3, allocations: 276.8 kB / 447.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008247/0.3008, allocations: 394.1 kB / 447.5 MB, free: 6.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3008, allocations: 4 kB / 447.6 MB, free: 6.977 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001788/0.3026, allocations: 0.7406 MB / 448.3 MB, free: 6.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.606e-05/0.3026, allocations: 8 kB / 448.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.144e-06/0.3026, allocations: 3.938 kB / 448.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009682/0.3036, allocations: 381.4 kB / 448.7 MB, free: 5.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003742/0.304, allocations: 87.89 kB / 448.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0016/0.3056, allocations: 1.394 MB / 450.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005422/0.3061, allocations: 76.06 kB / 450.2 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.665e-05/0.3061, allocations: 16 kB / 450.2 MB, free: 4.211 MB / 350.1 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.0002941/0.3064, allocations: 186.2 kB / 450.4 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.3065, allocations: 51.66 kB / 450.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000155/0.3067, allocations: 64.52 kB / 450.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.3067, allocations: 4 kB / 450.5 MB, free: 3.902 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/0.3067, allocations: 3.938 kB / 450.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3067, allocations: 3.984 kB / 450.6 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003015/0.3097, allocations: 1.403 MB / 452 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.3097, allocations: 4.156 kB / 452 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003933/0.3101, allocations: 83.89 kB / 452 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008413/0.311, allocations: 345.4 kB / 452.4 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-05/0.311, allocations: 19.97 kB / 452.4 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.3125, allocations: 1.37 MB / 453.8 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.538e-06/0.3126, allocations: 3.984 kB / 453.8 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002195/0.3147, allocations: 1.042 MB / 454.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/0.315, allocations: 95.67 kB / 454.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3151, allocations: 27.98 kB / 454.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000452/0.3156, allocations: 51.94 kB / 455 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.3158, allocations: 108.2 kB / 455.1 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.923e-05/0.3158, allocations: 23.98 kB / 455.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002794/0.3161, allocations: 219.1 kB / 455.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3161, allocations: 0 / 455.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005394/0.3167, allocations: 139.9 kB / 455.5 MB, free: 14.81 MB / 366.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 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003836/0.3205, allocations: 1.875 MB / 457.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.322, allocations: 0.546 MB / 457.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.322, allocations: 0 / 457.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007994/0.3228, allocations: 330.5 kB / 458.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007385/0.3235, allocations: 98.95 kB / 458.3 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.3336, allocations: 4.997 MB / 463.3 MB, free: 6.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005005/0.3341, allocations: 0.8362 MB / 464.1 MB, free: 6.066 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.3344, allocations: 39.39 kB / 464.2 MB, free: 6.027 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002428/0.3346, allocations: 147.4 kB / 464.3 MB, free: 5.883 MB / 366.1 MB Notification: Performance of SimCode: time 8.02e-07/0.3346, allocations: 4 kB / 464.3 MB, free: 5.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05057/0.3852, allocations: 14.91 MB / 479.2 MB, free: 7.086 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/12.73, allocations: 15.94 kB / 479.3 MB, free: 7.07 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.415598175022751] Failed to read output from testmodel.py, exit status != 0: ['time', 'clutch.phi_rel', 'clutch.w_rel', 'inertia3.phi', 'inertia3.w', 'spring.phi_rel', 'spring.w_rel', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'clutch.mode', 'clutch.startBackward', 'clutch.startForward'] 12.90515823289752 12.931283479 12.64366232 Calling exit ...