Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.001237/0.001237, allocations: 118.7 kB / 18.5 MB, free: 4.602 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.0013/0.0013, allocations: 210.5 kB / 21.46 MB, free: 1.648 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.417/1.417, allocations: 230.5 MB / 254.7 MB, free: 15.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.OneWayClutch,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutch",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.001849/0.001849, allocations: 63.91 kB / 373.6 MB, free: 10.28 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1034, allocations: 53.32 MB / 426.9 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003846/0.1072, allocations: 2.295 MB / 429.2 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001427/0.1087, allocations: 0.8684 MB / 430 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.1088, allocations: 4 kB / 430 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.109, allocations: 59.56 kB / 430.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002666/0.1093, allocations: 107.2 kB / 430.2 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002157/0.1095, allocations: 79.83 kB / 430.3 MB, free: 1.438 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.1099, allocations: 295.4 kB / 430.6 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.11, allocations: 44.38 kB / 430.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002317/0.1103, allocations: 131.5 kB / 430.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002172/0.1105, allocations: 139.4 kB / 430.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.315e-05/0.1105, allocations: 24 kB / 430.9 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001395/0.1107, allocations: 79.97 kB / 431 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.916e-05/0.1107, allocations: 55.81 kB / 431 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001244/0.1109, allocations: 115.4 kB / 431.1 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004002/0.1113, allocations: 314.8 kB / 431.5 MB, free: 264 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1113, allocations: 0 / 431.5 MB, free: 264 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1113, allocations: 3.938 kB / 431.5 MB, free: 260 kB / 350.1 MB Notification: Performance of Transformations before backend: time 5.912e-06/0.1113, allocations: 0 / 431.5 MB, free: 260 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.1997/0.311, allocations: 0.5938 MB / 432.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.311, allocations: 9.281 kB / 432.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.187e-05/0.3111, allocations: 51.69 kB / 432.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.3113, allocations: 39.02 kB / 432.1 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00039/0.3117, allocations: 242.7 kB / 432.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.57e-05/0.3117, allocations: 15.53 kB / 432.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.252e-05/0.3117, allocations: 23.48 kB / 432.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.3122, allocations: 233.3 kB / 432.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.3122, allocations: 8.875 kB / 432.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.095e-05/0.3123, allocations: 4.531 kB / 432.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.3123, allocations: 4.719 kB / 432.7 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004471/0.3127, allocations: 177.1 kB / 432.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008284/0.3136, allocations: 0.6518 MB / 433.5 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005149/0.3141, allocations: 188.2 kB / 433.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002294/0.3143, allocations: 92.97 kB / 433.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.3143, allocations: 10.72 kB / 433.8 MB, free: 10.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003363/0.3147, allocations: 166.2 kB / 433.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.563e-06/0.3147, allocations: 0.5625 kB / 433.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002041/0.3167, allocations: 1.163 MB / 435.1 MB, free: 9.715 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.879e-05/0.3167, allocations: 54.88 kB / 435.2 MB, free: 9.652 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.3169, allocations: 197.8 kB / 435.4 MB, free: 9.551 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.3169, allocations: 31.81 kB / 435.4 MB, free: 9.52 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.041e-05/0.317, allocations: 139.8 kB / 435.5 MB, free: 9.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.453e-05/0.317, allocations: 97.95 kB / 435.6 MB, free: 9.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.902e-05/0.3171, allocations: 57.06 kB / 435.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.858e-05/0.3172, allocations: 332.4 kB / 436 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002471/0.3174, allocations: 99.67 kB / 436.1 MB, free: 9.039 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.3177, allocations: 149.5 kB / 436.2 MB, free: 8.973 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004427/0.3181, allocations: 240.7 kB / 436.5 MB, free: 8.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3181, allocations: 4.656 kB / 436.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0006975/0.3188, allocations: 374.9 kB / 436.8 MB, free: 8.672 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.057e-05/0.3189, allocations: 33.5 kB / 436.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3189, allocations: 3.844 kB / 436.9 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001972/0.3191, allocations: 56.81 kB / 436.9 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/0.3193, allocations: 53.06 kB / 437 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.3207, allocations: 1.802 MB / 438.8 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002557/0.321, allocations: 35.47 kB / 438.8 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.321, allocations: 13 kB / 438.8 MB, free: 6.945 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001275/0.3211, allocations: 147.6 kB / 439 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.467e-05/0.3212, allocations: 22.67 kB / 439 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.862e-05/0.3212, allocations: 28.61 kB / 439 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.3212, allocations: 3.516 kB / 439 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3212, allocations: 2.406 kB / 439 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.41e-06/0.3212, allocations: 5.391 kB / 439 MB, free: 6.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.3223, allocations: 0.6893 MB / 439.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3223, allocations: 0 / 439.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002154/0.3225, allocations: 43.69 kB / 439.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001275/0.3226, allocations: 56.09 kB / 439.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.3227, allocations: 4.906 kB / 439.8 MB, free: 6.297 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001125/0.3238, allocations: 1.655 MB / 441.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3238, allocations: 2.875 kB / 441.5 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008939/0.3247, allocations: 0.5076 MB / 442 MB, free: 4.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.831e-05/0.3248, allocations: 115.1 kB / 442.1 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.761e-05/0.3248, allocations: 9.641 kB / 442.1 MB, free: 4.395 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.3251, allocations: 30.66 kB / 442.2 MB, free: 4.391 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001792/0.3252, allocations: 76.09 kB / 442.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.021e-05/0.3253, allocations: 6.688 kB / 442.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001221/0.3254, allocations: 150.1 kB / 442.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3254, allocations: 0 / 442.4 MB, free: 4.273 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004137/0.3258, allocations: 75.39 kB / 442.5 MB, free: 4.262 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002278/0.3281, allocations: 1.298 MB / 443.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008444/0.3289, allocations: 432.1 kB / 444.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3289, allocations: 7.984 kB / 444.2 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004054/0.3293, allocations: 264 kB / 444.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.3297, allocations: 54.97 kB / 444.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00368/0.3334, allocations: 2.835 MB / 447.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001803/0.3336, allocations: 0.7444 MB / 448.1 MB, free: 324 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.3337, allocations: 23.7 kB / 448.1 MB, free: 320 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001165/0.3338, allocations: 68.19 kB / 448.2 MB, free: 272 kB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3338, allocations: 0 / 448.2 MB, free: 272 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03904/0.3729, allocations: 7.193 MB / 455.4 MB, free: 14.61 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/12.32, allocations: 11.86 kB / 455.4 MB, free: 14.6 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.708467436023057] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.470825521275401 12.49795992 12.381556209 Calling exit ...