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.001677/0.001677, allocations: 118.6 kB / 18.5 MB, free: 4.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.002118/0.002118, allocations: 214.6 kB / 21.46 MB, free: 1.605 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.419/1.419, allocations: 230.4 MB / 254.7 MB, free: 14.86 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.00194/0.00194, allocations: 67.89 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.112, allocations: 53.31 MB / 426.9 MB, free: 4.875 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005164/0.1172, allocations: 2.975 MB / 429.8 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002114/0.1193, allocations: 1.06 MB / 430.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003275/0.1196, allocations: 7.938 kB / 430.9 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003762/0.12, allocations: 79.3 kB / 431 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005419/0.1206, allocations: 158.9 kB / 431.1 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004764/0.121, allocations: 187.7 kB / 431.3 MB, free: 396 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2162/0.3372, allocations: 0.5935 MB / 431.9 MB, free: 7.555 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003134/0.3375, allocations: 79.09 kB / 432 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004891/0.338, allocations: 267.6 kB / 432.3 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000379/0.3384, allocations: 290.6 kB / 432.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001078/0.3385, allocations: 47.41 kB / 432.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002424/0.3387, allocations: 102.2 kB / 432.7 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.3389, allocations: 127.6 kB / 432.8 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.3391, allocations: 231.1 kB / 433 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006373/0.3397, allocations: 0.5944 MB / 433.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3397, allocations: 2.375 kB / 433.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.294e-06/0.3397, allocations: 0 / 433.6 MB, free: 7.316 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3397, allocations: 1.656 kB / 433.6 MB, free: 7.316 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001324/0.3411, allocations: 0.7852 MB / 434.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.3411, allocations: 11.75 kB / 434.4 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.3412, allocations: 81.62 kB / 434.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001018/0.3413, allocations: 48.81 kB / 434.6 MB, free: 6.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004581/0.3418, allocations: 323.6 kB / 434.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.3418, allocations: 30.97 kB / 434.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.81e-05/0.3419, allocations: 37.81 kB / 434.9 MB, free: 6.504 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008099/0.3427, allocations: 447.7 kB / 435.4 MB, free: 6.453 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.198e-05/0.3427, allocations: 6.641 kB / 435.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.146e-05/0.3427, allocations: 15.12 kB / 435.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.3428, allocations: 9.5 kB / 435.4 MB, free: 6.449 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009616/0.3437, allocations: 449 kB / 435.9 MB, free: 6.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002336/0.3461, allocations: 1.303 MB / 437.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008327/0.3469, allocations: 378.9 kB / 437.5 MB, free: 5.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004604/0.3473, allocations: 233.5 kB / 437.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.192e-05/0.3474, allocations: 7.562 kB / 437.8 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.959e-05/0.3474, allocations: 38.17 kB / 437.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.284e-06/0.3474, allocations: 0 / 437.8 MB, free: 5.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005125/0.3525, allocations: 2.26 MB / 440.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/0.3526, allocations: 58.25 kB / 440.1 MB, free: 4.715 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002916/0.3529, allocations: 264.2 kB / 440.4 MB, free: 4.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.871e-05/0.3529, allocations: 45.38 kB / 440.4 MB, free: 4.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.679e-05/0.353, allocations: 174.8 kB / 440.6 MB, free: 4.375 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.3531, allocations: 192 kB / 440.8 MB, free: 4.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001614/0.3533, allocations: 100.1 kB / 440.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.87e-05/0.3533, allocations: 346.7 kB / 441.2 MB, free: 3.848 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000455/0.3538, allocations: 219.9 kB / 441.4 MB, free: 3.762 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004984/0.3543, allocations: 286.6 kB / 441.7 MB, free: 3.621 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007977/0.3551, allocations: 396.3 kB / 442.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.3551, allocations: 0.5 kB / 442.1 MB, free: 3.426 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001575/0.3567, allocations: 0.7183 MB / 442.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3567, allocations: 7.375 kB / 442.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3567, allocations: 1.156 kB / 442.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.3577, allocations: 438.4 kB / 443.2 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002713/0.358, allocations: 65.5 kB / 443.3 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002455/0.3604, allocations: 3.648 MB / 447 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000511/0.361, allocations: 72.62 kB / 447 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.525e-05/0.361, allocations: 23.17 kB / 447.1 MB, free: 15.45 MB / 366.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.0002617/0.3613, allocations: 174.5 kB / 447.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001028/0.3614, allocations: 41.44 kB / 447.3 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/0.363, allocations: 0.7096 MB / 448 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3631, allocations: 6.328 kB / 448 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3631, allocations: 1.188 kB / 448 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.3631, allocations: 3.547 kB / 448 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002441/0.3655, allocations: 1.273 MB / 449.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3655, allocations: 0 / 449.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002733/0.3658, allocations: 55.23 kB / 449.3 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009461/0.3667, allocations: 413.3 kB / 449.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.475e-05/0.3668, allocations: 23.89 kB / 449.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003203/0.37, allocations: 3.625 MB / 453.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.37, allocations: 0 / 453.4 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/0.3721, allocations: 1.01 MB / 454.4 MB, free: 10.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002739/0.3724, allocations: 160.6 kB / 454.5 MB, free: 10.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.397e-05/0.3725, allocations: 20 kB / 454.6 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004536/0.3729, allocations: 77.17 kB / 454.6 MB, free: 9.996 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002194/0.3731, allocations: 90.31 kB / 454.7 MB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.692e-05/0.3732, allocations: 26.09 kB / 454.7 MB, free: 9.973 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002213/0.3734, allocations: 190.4 kB / 454.9 MB, free: 9.863 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3734, allocations: 1.188 kB / 454.9 MB, free: 9.863 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005387/0.3739, allocations: 122.7 kB / 455 MB, free: 9.844 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.003569/0.3775, allocations: 1.839 MB / 456.9 MB, free: 8.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001703/0.3792, allocations: 0.7498 MB / 457.6 MB, free: 8.352 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.3792, allocations: 1.031 kB / 457.6 MB, free: 8.352 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009423/0.3802, allocations: 0.5173 MB / 458.2 MB, free: 8.035 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006105/0.3808, allocations: 72.39 kB / 458.2 MB, free: 8.012 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007584/0.3884, allocations: 4.297 MB / 462.5 MB, free: 5.414 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/0.3888, allocations: 0.8106 MB / 463.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002314/0.3891, allocations: 43.55 kB / 463.4 MB, free: 4.684 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.3893, allocations: 122.3 kB / 463.5 MB, free: 4.598 MB / 366.1 MB Notification: Performance of SimCode: time 9.21e-07/0.3893, allocations: 3.938 kB / 463.5 MB, free: 4.594 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04973/0.439, allocations: 13.8 MB / 477.3 MB, free: 12.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.69/13.13, allocations: 0 / 477.3 MB, free: 12.7 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.517765312921256] 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.279962575994432 13.300645636 12.957276966 Calling exit ...