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.001575/0.001575, allocations: 105.1 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.001761/0.001761, allocations: 213.9 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.411/1.411, allocations: 230.6 MB / 258.3 MB, free: 8.055 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.001917/0.001917, allocations: 64.77 kB / 378.5 MB, free: 3.242 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2779/0.2799, allocations: 53.37 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004811/0.2847, allocations: 3.207 MB / 435.1 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.2868, allocations: 1.138 MB / 436.3 MB, free: 2.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.287, allocations: 11.94 kB / 436.3 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003423/0.2873, allocations: 91.16 kB / 436.4 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004153/0.2877, allocations: 182.7 kB / 436.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004392/0.2882, allocations: 203.6 kB / 436.7 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007477/0.2889, allocations: 0.6667 MB / 437.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002151/0.2892, allocations: 96.69 kB / 437.5 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000461/0.2896, allocations: 311 kB / 437.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004396/0.2901, allocations: 322.8 kB / 438.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.992e-05/0.2901, allocations: 55.94 kB / 438.2 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002076/0.2903, allocations: 108 kB / 438.3 MB, free: 500 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.2905, allocations: 139.6 kB / 438.4 MB, free: 360 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002558/0.2908, allocations: 266.6 kB / 438.7 MB, free: 92 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007756/0.2915, allocations: 0.6467 MB / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2915, allocations: 0 / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.2915, allocations: 0 / 439.3 MB, free: 15.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.39e-05/0.2916, allocations: 4 kB / 439.3 MB, free: 15.44 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.001522/0.2931, allocations: 0.7697 MB / 440.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2931, allocations: 12.03 kB / 440.1 MB, free: 14.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001414/0.2933, allocations: 87.66 kB / 440.2 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002183/0.2935, allocations: 68.59 kB / 440.3 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005187/0.294, allocations: 286.2 kB / 440.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.171e-05/0.294, allocations: 37.38 kB / 440.6 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.313e-05/0.2941, allocations: 52.27 kB / 440.6 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000912/0.295, allocations: 478.4 kB / 441.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.392e-05/0.2951, allocations: 3.984 kB / 441.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.699e-05/0.2951, allocations: 20 kB / 441.1 MB, free: 13.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.703e-05/0.2951, allocations: 16 kB / 441.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001014/0.2961, allocations: 471.7 kB / 441.6 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.2983, allocations: 1.122 MB / 442.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009085/0.2992, allocations: 397.6 kB / 443.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005441/0.2997, allocations: 253 kB / 443.4 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.873e-05/0.2998, allocations: 12.44 kB / 443.4 MB, free: 11.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.784e-05/0.2998, allocations: 43 kB / 443.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.763e-06/0.2998, allocations: 0 / 443.4 MB, free: 11.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005105/0.3049, allocations: 2.014 MB / 445.4 MB, free: 9.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.3049, allocations: 55.91 kB / 445.5 MB, free: 9.098 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003733/0.3053, allocations: 308.5 kB / 445.8 MB, free: 8.785 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.998e-05/0.3054, allocations: 45.69 kB / 445.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001436/0.3055, allocations: 185.6 kB / 446 MB, free: 8.547 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/0.3057, allocations: 222.2 kB / 446.2 MB, free: 8.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001898/0.3059, allocations: 106.3 kB / 446.3 MB, free: 8.219 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000178/0.3061, allocations: 354.8 kB / 446.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004995/0.3066, allocations: 225.2 kB / 446.9 MB, free: 7.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005381/0.3071, allocations: 280.8 kB / 447.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008095/0.3079, allocations: 394.1 kB / 447.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3079, allocations: 0 / 447.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001666/0.3096, allocations: 0.7445 MB / 448.3 MB, free: 6.215 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.812e-05/0.3096, allocations: 4 kB / 448.3 MB, free: 6.211 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.3096, allocations: 4 kB / 448.3 MB, free: 6.207 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008802/0.3105, allocations: 373.4 kB / 448.7 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003432/0.3109, allocations: 91.83 kB / 448.8 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001527/0.3124, allocations: 1.405 MB / 450.2 MB, free: 4.289 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004635/0.3129, allocations: 76.06 kB / 450.2 MB, free: 4.215 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.385e-05/0.3129, allocations: 16 kB / 450.2 MB, free: 4.199 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.0002691/0.3132, allocations: 182.2 kB / 450.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.718e-05/0.3133, allocations: 43.72 kB / 450.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000149/0.3134, allocations: 64.52 kB / 450.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.3134, allocations: 8 kB / 450.5 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.3134, allocations: 4 kB / 450.5 MB, free: 3.895 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.3134, allocations: 3.984 kB / 450.5 MB, free: 3.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002842/0.3163, allocations: 1.406 MB / 452 MB, free: 2.418 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.111e-06/0.3163, allocations: 4 kB / 452 MB, free: 2.414 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003634/0.3166, allocations: 83.89 kB / 452 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007739/0.3174, allocations: 349.8 kB / 452.4 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.826e-05/0.3175, allocations: 19.97 kB / 452.4 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.3188, allocations: 1.37 MB / 453.8 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.3188, allocations: 7.969 kB / 453.8 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002032/0.3209, allocations: 1.045 MB / 454.8 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002166/0.3211, allocations: 91.67 kB / 454.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.325e-05/0.3212, allocations: 20 kB / 454.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004137/0.3216, allocations: 63.92 kB / 455 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002151/0.3218, allocations: 100.3 kB / 455.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-05/0.3219, allocations: 23.97 kB / 455.1 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002484/0.3221, allocations: 223 kB / 455.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3221, allocations: 0 / 455.3 MB, free: 14.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00047/0.3226, allocations: 135.9 kB / 455.5 MB, free: 14.8 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.003604/0.3262, allocations: 1.865 MB / 457.3 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.3276, allocations: 0.546 MB / 457.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3276, allocations: 0 / 457.9 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007599/0.3283, allocations: 334.9 kB / 458.2 MB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006463/0.329, allocations: 93.92 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.009496/0.3385, allocations: 5.008 MB / 463.3 MB, free: 6.922 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004688/0.3389, allocations: 0.8362 MB / 464.1 MB, free: 6.055 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002032/0.3391, allocations: 43.39 kB / 464.2 MB, free: 6.012 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.3394, allocations: 147.4 kB / 464.3 MB, free: 5.867 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3394, allocations: 0 / 464.3 MB, free: 5.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05179/0.3912, allocations: 14.91 MB / 479.2 MB, free: 7.078 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.17, allocations: 3.938 kB / 479.2 MB, free: 7.074 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.630857347976416] 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'] 13.340698833111674 13.369238298 13.07198638 Calling exit ...