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.001712/0.001712, allocations: 116.8 kB / 18.5 MB, free: 4.52 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.002107/0.002107, allocations: 212.9 kB / 21.46 MB, free: 1.566 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.487/1.487, allocations: 230.5 MB / 254.8 MB, free: 15.12 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.00315/0.00315, allocations: 71.83 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1259, allocations: 53.32 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005305/0.1312, allocations: 3.189 MB / 430.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.1336, allocations: 1.138 MB / 431.3 MB, free: 464 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002461/0.1338, allocations: 15.88 kB / 431.3 MB, free: 448 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003785/0.1342, allocations: 83.23 kB / 431.4 MB, free: 364 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004604/0.1346, allocations: 186.6 kB / 431.6 MB, free: 176 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2075/0.3421, allocations: 197.3 kB / 431.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001337/0.3435, allocations: 0.6681 MB / 432.5 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.3437, allocations: 96.88 kB / 432.6 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005164/0.3443, allocations: 308.6 kB / 432.9 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004271/0.3447, allocations: 323.6 kB / 433.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001084/0.3448, allocations: 51.73 kB / 433.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002764/0.3451, allocations: 111 kB / 433.3 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.3452, allocations: 137.1 kB / 433.5 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002192/0.3455, allocations: 262.2 kB / 433.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000778/0.3462, allocations: 0.646 MB / 434.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3462, allocations: 4.781 kB / 434.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3462, allocations: 0 / 434.4 MB, free: 7.344 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3463, allocations: 0 / 434.4 MB, free: 7.344 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.001481/0.3477, allocations: 0.8473 MB / 435.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/0.3478, allocations: 11.03 kB / 435.2 MB, free: 6.805 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001281/0.3479, allocations: 86.11 kB / 435.3 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002315/0.3482, allocations: 67.52 kB / 435.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005172/0.3487, allocations: 345.9 kB / 435.7 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.3487, allocations: 35.22 kB / 435.8 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-05/0.3488, allocations: 45.72 kB / 435.8 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000949/0.3497, allocations: 487.7 kB / 436.3 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.599e-05/0.3498, allocations: 9.578 kB / 436.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.259e-05/0.3498, allocations: 16.53 kB / 436.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.629e-05/0.3498, allocations: 10.81 kB / 436.3 MB, free: 6.441 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001044/0.3509, allocations: 472.1 kB / 436.8 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002129/0.353, allocations: 1.15 MB / 437.9 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000868/0.3539, allocations: 411.3 kB / 438.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005079/0.3544, allocations: 244.9 kB / 438.6 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.749e-05/0.3544, allocations: 9.656 kB / 438.6 MB, free: 5.898 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.788e-05/0.3545, allocations: 37.41 kB / 438.6 MB, free: 5.855 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 1.804e-06/0.3545, allocations: 1.25 kB / 438.6 MB, free: 5.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.005225/0.3597, allocations: 2.326 MB / 440.9 MB, free: 4.559 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.348e-05/0.3597, allocations: 58.45 kB / 441 MB, free: 4.492 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003498/0.3601, allocations: 309.3 kB / 441.3 MB, free: 4.332 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.099e-05/0.3601, allocations: 39.83 kB / 441.3 MB, free: 4.293 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.759e-05/0.3602, allocations: 193.7 kB / 441.5 MB, free: 4.129 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001344/0.3604, allocations: 219.4 kB / 441.7 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002158/0.3606, allocations: 108.3 kB / 441.8 MB, free: 3.902 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.484e-05/0.3607, allocations: 353.5 kB / 442.2 MB, free: 3.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000546/0.3612, allocations: 225.1 kB / 442.4 MB, free: 3.488 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005146/0.3617, allocations: 282.4 kB / 442.7 MB, free: 3.371 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007481/0.3625, allocations: 393.2 kB / 443.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.3625, allocations: 1.875 kB / 443.1 MB, free: 3.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001621/0.3641, allocations: 0.7483 MB / 443.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3641, allocations: 6.688 kB / 443.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3641, allocations: 0.6094 kB / 443.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008877/0.365, allocations: 370.1 kB / 444.2 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003342/0.3653, allocations: 90.75 kB / 444.3 MB, free: 2.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001116/0.3665, allocations: 1.4 MB / 445.7 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005533/0.367, allocations: 75.28 kB / 445.8 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.3671, allocations: 19 kB / 445.8 MB, free: 1.523 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.0002355/0.3673, allocations: 175.2 kB / 445.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.3674, allocations: 45.12 kB / 446 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001449/0.3675, allocations: 69.36 kB / 446.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.374e-06/0.3675, allocations: 5.219 kB / 446.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.3676, allocations: 1.469 kB / 446.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.3676, allocations: 3.375 kB / 446.1 MB, free: 1.293 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002783/0.3703, allocations: 1.449 MB / 447.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.3704, allocations: 1.469 kB / 447.5 MB, free: 0.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003997/0.3708, allocations: 90.34 kB / 447.6 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007712/0.3715, allocations: 349.4 kB / 447.9 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-05/0.3716, allocations: 19.38 kB / 448 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001336/0.3729, allocations: 1.361 MB / 449.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.3729, allocations: 1.375 kB / 449.3 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.3751, allocations: 1.053 MB / 450.4 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/0.3753, allocations: 176 kB / 450.6 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.614e-05/0.3754, allocations: 22.83 kB / 450.6 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004524/0.3759, allocations: 60.31 kB / 450.6 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.3761, allocations: 98.41 kB / 450.7 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.176e-05/0.3762, allocations: 24.75 kB / 450.8 MB, free: 14.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002643/0.3764, allocations: 217.2 kB / 451 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3764, allocations: 0 / 451 MB, free: 14.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005132/0.377, allocations: 132.1 kB / 451.1 MB, free: 14.38 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.003699/0.3807, allocations: 1.884 MB / 453 MB, free: 13.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.382, allocations: 0.5406 MB / 453.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.382, allocations: 0 / 453.5 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007792/0.3828, allocations: 339 kB / 453.8 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006908/0.3835, allocations: 92.03 kB / 453.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009965/0.3935, allocations: 5.02 MB / 459 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005044/0.394, allocations: 0.8363 MB / 459.8 MB, free: 9.422 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002125/0.3942, allocations: 40.08 kB / 459.8 MB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002599/0.3944, allocations: 149.7 kB / 460 MB, free: 9.305 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3944, allocations: 0 / 460 MB, free: 9.305 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04863/0.4431, allocations: 14.35 MB / 474.3 MB, free: 304 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.67/13.12, allocations: 8 kB / 474.3 MB, free: 296 kB / 366.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.733525288291276] 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.270886108279228 13.292969717 12.9420671 Calling exit ...