Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001281/0.001281, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001952/0.001952, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.43/1.43, allocations: 230.6 MB / 258.3 MB, free: 8.02 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.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",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.002131/0.002131, allocations: 67.89 kB / 378.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2902/0.2923, allocations: 53.36 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004733/0.297, allocations: 2.991 MB / 434.9 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001967/0.299, allocations: 1.06 MB / 436 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001722/0.2992, allocations: 7.938 kB / 436 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003187/0.2995, allocations: 83.28 kB / 436 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003903/0.2999, allocations: 154.9 kB / 436.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.3003, allocations: 191.7 kB / 436.4 MB, free: 2.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006671/0.3009, allocations: 0.6008 MB / 437 MB, free: 1.777 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002144/0.3011, allocations: 90.97 kB / 437.1 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003339/0.3015, allocations: 267.2 kB / 437.3 MB, free: 1.426 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004004/0.3019, allocations: 291 kB / 437.6 MB, free: 1.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.004e-05/0.3019, allocations: 48 kB / 437.7 MB, free: 1.094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002046/0.3022, allocations: 104 kB / 437.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001736/0.3023, allocations: 127.6 kB / 437.9 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002343/0.3026, allocations: 230.9 kB / 438.1 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007337/0.3033, allocations: 0.6 MB / 438.7 MB, free: 44 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.3033, allocations: 0 / 438.7 MB, free: 44 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3033, allocations: 0 / 438.7 MB, free: 44 kB / 334.1 MB Notification: Performance of Transformations before backend: time 8.285e-06/0.3033, allocations: 0 / 438.7 MB, free: 44 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001498/0.3048, allocations: 0.7117 MB / 439.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.3049, allocations: 16.02 kB / 439.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001408/0.305, allocations: 75.72 kB / 439.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001003/0.3051, allocations: 52.61 kB / 439.6 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004921/0.3056, allocations: 260.9 kB / 439.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.624e-05/0.3056, allocations: 25.38 kB / 439.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.824e-05/0.3057, allocations: 48.3 kB / 439.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008824/0.3066, allocations: 442.5 kB / 440.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.13e-05/0.3066, allocations: 7.984 kB / 440.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.429e-05/0.3066, allocations: 16 kB / 440.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.3067, allocations: 8 kB / 440.4 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009927/0.3076, allocations: 447.7 kB / 440.8 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00242/0.3101, allocations: 1.233 MB / 442 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009453/0.311, allocations: 389 kB / 442.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.3115, allocations: 226.1 kB / 442.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.11e-05/0.3116, allocations: 8.422 kB / 442.6 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.998e-05/0.3116, allocations: 39 kB / 442.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.853e-06/0.3116, allocations: 0 / 442.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005415/0.317, allocations: 1.955 MB / 444.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.3171, allocations: 59.84 kB / 444.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003318/0.3174, allocations: 269.8 kB / 445 MB, free: 9.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.705e-05/0.3174, allocations: 41.7 kB / 445 MB, free: 9.523 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001402/0.3176, allocations: 180.9 kB / 445.2 MB, free: 9.34 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001714/0.3178, allocations: 186.5 kB / 445.4 MB, free: 9.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/0.3179, allocations: 106.2 kB / 445.5 MB, free: 9.047 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.3181, allocations: 342.8 kB / 445.8 MB, free: 8.703 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005167/0.3186, allocations: 225.2 kB / 446 MB, free: 8.484 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005428/0.3192, allocations: 284.1 kB / 446.3 MB, free: 8.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000834/0.32, allocations: 402.7 kB / 446.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.32, allocations: 0 / 446.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001625/0.3216, allocations: 0.7299 MB / 447.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.3216, allocations: 8 kB / 447.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.3217, allocations: 0 / 447.4 MB, free: 7.023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00109/0.3227, allocations: 426.5 kB / 447.8 MB, free: 6.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002721/0.323, allocations: 67.89 kB / 447.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003313/0.3263, allocations: 3.443 MB / 451.3 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004972/0.3268, allocations: 80.03 kB / 451.4 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.3269, allocations: 19.98 kB / 451.4 MB, free: 2.734 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (44): * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002458/0.3271, allocations: 173.7 kB / 451.6 MB, free: 2.555 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.888e-05/0.3272, allocations: 51.7 kB / 451.7 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/0.329, allocations: 0.699 MB / 452.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.329, allocations: 11.94 kB / 452.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.329, allocations: 0 / 452.4 MB, free: 1.785 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.325e-06/0.329, allocations: 7.984 kB / 452.4 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002303/0.3313, allocations: 1.236 MB / 453.6 MB, free: 492 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3313, allocations: 4 kB / 453.6 MB, free: 488 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002749/0.3316, allocations: 59.91 kB / 453.7 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009675/0.3325, allocations: 406 kB / 454.1 MB, free: 12 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.541e-05/0.3326, allocations: 19.97 kB / 454.1 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003371/0.336, allocations: 3.396 MB / 457.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.336, allocations: 4.031 kB / 457.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002112/0.3381, allocations: 1.023 MB / 458.5 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000266/0.3383, allocations: 79.73 kB / 458.6 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.276e-05/0.3384, allocations: 27.92 kB / 458.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004478/0.3389, allocations: 71.91 kB / 458.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002276/0.3391, allocations: 100.2 kB / 458.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.473e-05/0.3391, allocations: 23.97 kB / 458.8 MB, free: 10.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.3394, allocations: 193.2 kB / 459 MB, free: 10.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3394, allocations: 0 / 459 MB, free: 10.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005235/0.3399, allocations: 123.9 kB / 459.1 MB, free: 10.68 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003643/0.3435, allocations: 1.822 MB / 461 MB, free: 8.957 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001685/0.3452, allocations: 0.7638 MB / 461.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3452, allocations: 0 / 461.7 MB, free: 8.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009319/0.3462, allocations: 0.5064 MB / 462.2 MB, free: 7.633 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005375/0.3467, allocations: 74.27 kB / 462.3 MB, free: 7.566 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008026/0.3547, allocations: 4.303 MB / 466.6 MB, free: 3.133 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005976/0.3553, allocations: 0.8085 MB / 467.4 MB, free: 2.293 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001841/0.3555, allocations: 35.27 kB / 467.4 MB, free: 2.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002305/0.3557, allocations: 119.4 kB / 467.6 MB, free: 2.141 MB / 366.1 MB Notification: Performance of SimCode: time 2.255e-06/0.3557, allocations: 0 / 467.6 MB, free: 2.141 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05218/0.4079, allocations: 14.34 MB / 481.9 MB, free: 3.914 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.21, allocations: 0 / 481.9 MB, free: 3.914 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.678554839920253] Failed to read output from testmodel.py, exit status != 0: ['time', 'clutch.phi_rel', 'clutch.w_rel', 'engine.phi', 'engine.w', 'load.phi', 'load.w', 'brake.mode', 'brake.startBackward', 'brake.startForward', 'clutch.mode', 'clutch.startBackward', 'clutch.startForward'] 13.382129973731935 13.397869329 13.091130841 Calling exit ...