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.001614/0.001614, allocations: 116.5 kB / 18.5 MB, free: 4.434 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.00204/0.00204, allocations: 216.9 kB / 21.47 MB, free: 1.473 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.415/1.415, allocations: 230.5 MB / 254.7 MB, free: 15.2 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.001912/0.001912, allocations: 75.83 kB / 373.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1039, allocations: 53.31 MB / 426.9 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004893/0.1088, allocations: 3.189 MB / 430.1 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002154/0.1109, allocations: 1.138 MB / 431.2 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001751/0.1111, allocations: 7.938 kB / 431.2 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.1114, allocations: 83.23 kB / 431.3 MB, free: 460 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004139/0.1118, allocations: 186.7 kB / 431.5 MB, free: 272 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.1123, allocations: 203.6 kB / 431.7 MB, free: 68 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1973/0.3096, allocations: 0.6597 MB / 432.3 MB, free: 7.691 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002502/0.3098, allocations: 95.36 kB / 432.4 MB, free: 7.672 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004715/0.3103, allocations: 300.8 kB / 432.7 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003687/0.3107, allocations: 325.1 kB / 433 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.539e-05/0.3107, allocations: 50.91 kB / 433.1 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002459/0.311, allocations: 111 kB / 433.2 MB, free: 7.586 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001445/0.3111, allocations: 139.8 kB / 433.3 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002039/0.3113, allocations: 263.2 kB / 433.6 MB, free: 7.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000636/0.312, allocations: 0.65 MB / 434.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.312, allocations: 1.219 kB / 434.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.312, allocations: 0 / 434.2 MB, free: 7.398 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.438e-05/0.312, allocations: 0 / 434.2 MB, free: 7.398 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.001368/0.3134, allocations: 0.8418 MB / 435.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.3134, allocations: 9.094 kB / 435.1 MB, free: 6.859 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001235/0.3135, allocations: 89.92 kB / 435.2 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002215/0.3137, allocations: 72.94 kB / 435.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005135/0.3143, allocations: 345.2 kB / 435.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.873e-05/0.3143, allocations: 37.66 kB / 435.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.433e-05/0.3144, allocations: 46.09 kB / 435.7 MB, free: 6.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008865/0.3153, allocations: 485.5 kB / 436.2 MB, free: 6.496 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.44e-05/0.3153, allocations: 6.078 kB / 436.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.363e-05/0.3153, allocations: 19.16 kB / 436.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.3153, allocations: 10.75 kB / 436.2 MB, free: 6.492 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009738/0.3163, allocations: 471 kB / 436.6 MB, free: 6.488 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00206/0.3184, allocations: 1.152 MB / 437.8 MB, free: 6.156 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008601/0.3192, allocations: 404.5 kB / 438.2 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004873/0.3197, allocations: 245.5 kB / 438.4 MB, free: 5.914 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.094e-05/0.3198, allocations: 14.75 kB / 438.4 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.961e-05/0.3198, allocations: 39.28 kB / 438.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.154e-06/0.3198, allocations: 0 / 438.5 MB, free: 5.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.004825/0.3246, allocations: 2.318 MB / 440.8 MB, free: 4.574 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.822e-05/0.3246, allocations: 62.62 kB / 440.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/0.325, allocations: 307.9 kB / 441.2 MB, free: 4.344 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.744e-05/0.325, allocations: 48.42 kB / 441.2 MB, free: 4.301 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.929e-05/0.3251, allocations: 193.3 kB / 441.4 MB, free: 4.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.3252, allocations: 221.7 kB / 441.6 MB, free: 3.973 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.3254, allocations: 105 kB / 441.7 MB, free: 3.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.374e-05/0.3255, allocations: 349.4 kB / 442.1 MB, free: 3.586 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005136/0.326, allocations: 233.6 kB / 442.3 MB, free: 3.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004652/0.3265, allocations: 277.6 kB / 442.6 MB, free: 3.379 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006963/0.3271, allocations: 388.5 kB / 442.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.3272, allocations: 1.094 kB / 442.9 MB, free: 3.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001448/0.3286, allocations: 0.7475 MB / 443.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.3286, allocations: 5.594 kB / 443.7 MB, free: 2.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.104e-06/0.3286, allocations: 6.031 kB / 443.7 MB, free: 2.891 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008182/0.3294, allocations: 373 kB / 444.1 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003193/0.3298, allocations: 84.55 kB / 444.1 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001059/0.3308, allocations: 1.399 MB / 445.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.3313, allocations: 75.75 kB / 445.6 MB, free: 1.539 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.456e-05/0.3314, allocations: 23.72 kB / 445.6 MB, free: 1.531 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.0002147/0.3316, allocations: 174.9 kB / 445.8 MB, free: 1.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.62e-05/0.3317, allocations: 46.58 kB / 445.9 MB, free: 1.359 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.3318, allocations: 60.98 kB / 445.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.266e-06/0.3318, allocations: 6.344 kB / 445.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.428e-06/0.3318, allocations: 0 / 445.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.3318, allocations: 3.094 kB / 445.9 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.3344, allocations: 1.456 MB / 447.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.3344, allocations: 4.609 kB / 447.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000348/0.3347, allocations: 78.56 kB / 447.5 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007749/0.3355, allocations: 359.5 kB / 447.8 MB, free: 436 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/0.3356, allocations: 19.56 kB / 447.8 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/0.3368, allocations: 1.357 MB / 449.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.3368, allocations: 2.844 kB / 449.2 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002116/0.3389, allocations: 1.056 MB / 450.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.3392, allocations: 177 kB / 450.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.68e-05/0.3393, allocations: 21.5 kB / 450.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004115/0.3397, allocations: 60.5 kB / 450.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002277/0.3399, allocations: 98.25 kB / 450.6 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.087e-05/0.34, allocations: 28.39 kB / 450.6 MB, free: 14.5 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.3403, allocations: 216.7 kB / 450.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3403, allocations: 0 / 450.8 MB, free: 14.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005479/0.3408, allocations: 128.6 kB / 451 MB, free: 14.37 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.00362/0.3444, allocations: 1.877 MB / 452.8 MB, free: 13.25 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.3458, allocations: 0.5466 MB / 453.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.3458, allocations: 0 / 453.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000754/0.3465, allocations: 334.4 kB / 453.7 MB, free: 12.97 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006943/0.3472, allocations: 90.94 kB / 453.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0099/0.3571, allocations: 5.01 MB / 458.8 MB, free: 10.16 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.3576, allocations: 0.8342 MB / 459.6 MB, free: 9.449 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002156/0.3578, allocations: 48.59 kB / 459.7 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002466/0.3581, allocations: 152.1 kB / 459.8 MB, free: 9.324 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3581, allocations: 0 / 459.8 MB, free: 9.324 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04405/0.4021, allocations: 14.37 MB / 474.2 MB, free: 400 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.39/12.79, allocations: 0 / 474.2 MB, free: 400 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 & /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.165841235313565] 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.941765130031854 12.960427664 12.644748323 Calling exit ...