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.001171/0.001171, allocations: 105 kB / 19.74 MB, free: 2.566 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.001252/0.001252, allocations: 216.2 kB / 22.92 MB, free: 5.535 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.271/1.271, allocations: 230.4 MB / 256.4 MB, free: 8.426 MB / 206.1 MB " [Timeout remaining time 179] 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.001779/0.001779, allocations: 63.89 kB / 376.1 MB, free: 4.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2066/0.2084, allocations: 53.31 MB / 429.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004388/0.2128, allocations: 3.211 MB / 432.6 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001963/0.2148, allocations: 1.134 MB / 433.7 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001831/0.215, allocations: 4 kB / 433.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003035/0.2153, allocations: 87.22 kB / 433.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003887/0.2156, allocations: 194.5 kB / 434 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000396/0.216, allocations: 203.6 kB / 434.2 MB, free: 2.586 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006345/0.2167, allocations: 0.6591 MB / 434.9 MB, free: 1.926 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001959/0.2169, allocations: 100.3 kB / 435 MB, free: 1.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000405/0.2173, allocations: 307 kB / 435.3 MB, free: 1.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003926/0.2177, allocations: 322.8 kB / 435.6 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.518e-05/0.2178, allocations: 52 kB / 435.6 MB, free: 1.152 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002113/0.218, allocations: 115.9 kB / 435.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001647/0.2181, allocations: 131.6 kB / 435.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002401/0.2184, allocations: 266.7 kB / 436.1 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006772/0.219, allocations: 0.6463 MB / 436.8 MB, free: 4 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.2191, allocations: 0 / 436.8 MB, free: 4 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2191, allocations: 0 / 436.8 MB, free: 4 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.2191, allocations: 0 / 436.8 MB, free: 4 kB / 334.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.001492/0.2206, allocations: 0.8451 MB / 437.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.2206, allocations: 8.031 kB / 437.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001336/0.2207, allocations: 95.59 kB / 437.7 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.2209, allocations: 72.55 kB / 437.8 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000478/0.2214, allocations: 343.4 kB / 438.1 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.599e-05/0.2215, allocations: 41.38 kB / 438.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.043e-05/0.2215, allocations: 48.31 kB / 438.2 MB, free: 14.47 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008554/0.2224, allocations: 486.4 kB / 438.7 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.2224, allocations: 3.953 kB / 438.7 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.029e-05/0.2225, allocations: 20 kB / 438.7 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.116e-05/0.2225, allocations: 16 kB / 438.7 MB, free: 13.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009411/0.2234, allocations: 463.7 kB / 439.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001993/0.2254, allocations: 1.161 MB / 440.4 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008485/0.2263, allocations: 400.9 kB / 440.7 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000525/0.2268, allocations: 246.4 kB / 441 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.476e-05/0.2268, allocations: 8.562 kB / 441 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.361e-05/0.2269, allocations: 39.12 kB / 441 MB, free: 11.58 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.704e-06/0.2269, allocations: 0 / 441 MB, free: 11.58 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005027/0.2319, allocations: 2.325 MB / 443.4 MB, free: 9.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.13e-05/0.2319, allocations: 59.97 kB / 443.4 MB, free: 9.059 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000329/0.2323, allocations: 312.5 kB / 443.7 MB, free: 8.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.428e-05/0.2323, allocations: 41.7 kB / 443.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001252/0.2324, allocations: 193.6 kB / 444 MB, free: 8.508 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.2326, allocations: 222.2 kB / 444.2 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001735/0.2328, allocations: 102.3 kB / 444.3 MB, free: 8.18 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000147/0.2329, allocations: 354.8 kB / 444.6 MB, free: 7.824 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004611/0.2334, allocations: 229.2 kB / 444.8 MB, free: 7.602 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004899/0.2339, allocations: 276.8 kB / 445.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007544/0.2346, allocations: 390.4 kB / 445.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.2346, allocations: 0 / 445.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001576/0.2362, allocations: 0.7523 MB / 446.2 MB, free: 6.176 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2362, allocations: 4 kB / 446.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.2362, allocations: 0 / 446.2 MB, free: 6.172 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000837/0.2371, allocations: 381.4 kB / 446.6 MB, free: 5.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003179/0.2374, allocations: 83.89 kB / 446.7 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001326/0.2387, allocations: 1.394 MB / 448.1 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004867/0.2392, allocations: 80.06 kB / 448.2 MB, free: 4.188 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.114e-05/0.2392, allocations: 20 kB / 448.2 MB, free: 4.168 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.0002132/0.2395, allocations: 174.5 kB / 448.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.771e-05/0.2396, allocations: 47.72 kB / 448.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.2397, allocations: 60.52 kB / 448.5 MB, free: 3.879 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.019e-06/0.2397, allocations: 8 kB / 448.5 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2397, allocations: 3.938 kB / 448.5 MB, free: 3.867 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.748e-06/0.2397, allocations: 7.984 kB / 448.5 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002637/0.2423, allocations: 1.448 MB / 449.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.2423, allocations: 0 / 449.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003493/0.2427, allocations: 79.89 kB / 450 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007144/0.2434, allocations: 353.6 kB / 450.4 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.838e-05/0.2435, allocations: 27.97 kB / 450.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001251/0.2447, allocations: 1.359 MB / 451.7 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.2447, allocations: 4.031 kB / 451.8 MB, free: 472 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001895/0.2466, allocations: 1.051 MB / 452.8 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002021/0.2468, allocations: 176.7 kB / 453 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.528e-05/0.2469, allocations: 24.08 kB / 453 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004293/0.2473, allocations: 63.88 kB / 453.1 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.2475, allocations: 92.41 kB / 453.2 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.424e-05/0.2476, allocations: 27.97 kB / 453.2 MB, free: 14.98 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002238/0.2478, allocations: 219.1 kB / 453.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2478, allocations: 0 / 453.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004341/0.2482, allocations: 128 kB / 453.5 MB, free: 14.64 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.003293/0.2515, allocations: 1.872 MB / 455.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.2527, allocations: 0.5431 MB / 455.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2527, allocations: 0 / 455.9 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006994/0.2534, allocations: 335.2 kB / 456.3 MB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005848/0.254, allocations: 97.12 kB / 456.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008749/0.2627, allocations: 5.011 MB / 461.4 MB, free: 6.746 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004276/0.2632, allocations: 0.8323 MB / 462.2 MB, free: 5.887 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000184/0.2634, allocations: 47.38 kB / 462.2 MB, free: 5.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002194/0.2636, allocations: 151.4 kB / 462.4 MB, free: 5.691 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.2636, allocations: 0 / 462.4 MB, free: 5.691 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04149/0.3051, allocations: 14.55 MB / 476.9 MB, free: 7.266 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.25, allocations: 6.781 kB / 476.9 MB, free: 7.262 MB / 382.1 MB " [Timeout remaining time 649] (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 --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: 13.414501348001068]