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.001251/0.001251, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.001396/0.001396, allocations: 213.2 kB / 24.54 MB, free: 4.016 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.6 MB / 258.3 MB, free: 8.043 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.001937/0.001937, allocations: 60.78 kB / 378.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2717/0.2737, allocations: 53.37 MB / 431.9 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.006179/0.2798, allocations: 2.31 MB / 434.2 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002593/0.2824, allocations: 0.884 MB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001905/0.2826, allocations: 7.938 kB / 435.1 MB, free: 3.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003348/0.283, allocations: 51.56 kB / 435.2 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004433/0.2834, allocations: 115.2 kB / 435.3 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000388/0.2838, allocations: 79.83 kB / 435.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005249/0.2843, allocations: 291.4 kB / 435.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001786/0.2845, allocations: 44.52 kB / 435.7 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003879/0.2849, allocations: 139.5 kB / 435.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003408/0.2852, allocations: 131.5 kB / 435.9 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.076e-05/0.2853, allocations: 20 kB / 436 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002658/0.2855, allocations: 87.91 kB / 436 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001152/0.2857, allocations: 55.83 kB / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.2858, allocations: 119.4 kB / 436.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006738/0.2865, allocations: 315.6 kB / 436.5 MB, free: 2.238 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.356e-06/0.2865, allocations: 4 kB / 436.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2865, allocations: 0 / 436.5 MB, free: 2.234 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.2865, allocations: 0 / 436.5 MB, free: 2.234 MB / 334.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.001417/0.288, allocations: 0.518 MB / 437 MB, free: 1.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.288, allocations: 16.03 kB / 437.1 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.211e-05/0.2881, allocations: 46.73 kB / 437.1 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002427/0.2883, allocations: 44.73 kB / 437.1 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005271/0.2888, allocations: 191.8 kB / 437.3 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.526e-05/0.2889, allocations: 12.38 kB / 437.3 MB, free: 1.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.962e-05/0.289, allocations: 24.36 kB / 437.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007795/0.2897, allocations: 235.1 kB / 437.6 MB, free: 1.074 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.448e-05/0.2898, allocations: 4 kB / 437.6 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.175e-05/0.2898, allocations: 4 kB / 437.6 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.2898, allocations: 8 kB / 437.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007874/0.2906, allocations: 179.8 kB / 437.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001465/0.2921, allocations: 0.6165 MB / 438.4 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008396/0.2929, allocations: 200.8 kB / 438.6 MB, free: 16 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004062/0.2933, allocations: 96.73 kB / 438.7 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.451e-05/0.2933, allocations: 12 kB / 438.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005277/0.2939, allocations: 155.2 kB / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.154e-06/0.2939, allocations: 0 / 438.9 MB, free: 15.74 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003569/0.2974, allocations: 0.9466 MB / 439.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.293e-05/0.2975, allocations: 59.39 kB / 439.9 MB, free: 14.67 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.2979, allocations: 199.2 kB / 440.1 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.489e-05/0.2979, allocations: 29.7 kB / 440.1 MB, free: 14.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.2981, allocations: 132.5 kB / 440.2 MB, free: 14.3 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.2982, allocations: 99.2 kB / 440.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001566/0.2983, allocations: 61.69 kB / 440.4 MB, free: 14.13 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000212/0.2985, allocations: 334.8 kB / 440.7 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000397/0.2989, allocations: 99.95 kB / 440.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004442/0.2994, allocations: 143.1 kB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007417/0.3001, allocations: 242 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3001, allocations: 4 kB / 441.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.001227/0.3014, allocations: 377.7 kB / 441.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.489e-05/0.3014, allocations: 33.77 kB / 441.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.3014, allocations: 4 kB / 441.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002891/0.3017, allocations: 60.77 kB / 441.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003142/0.302, allocations: 51.91 kB / 441.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002791/0.3048, allocations: 1.695 MB / 443.4 MB, free: 10.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004256/0.3052, allocations: 36.03 kB / 443.4 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.876e-05/0.3053, allocations: 12 kB / 443.4 MB, free: 10.89 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.0002585/0.3055, allocations: 145.8 kB / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-05/0.3056, allocations: 19.86 kB / 443.6 MB, free: 10.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.669e-05/0.3057, allocations: 26.66 kB / 443.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.572e-06/0.3057, allocations: 4 kB / 443.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.3057, allocations: 3.984 kB / 443.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.122e-05/0.3057, allocations: 15.91 kB / 443.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001882/0.3076, allocations: 0.6548 MB / 444.3 MB, free: 9.965 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.3076, allocations: 4 kB / 444.3 MB, free: 9.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003832/0.308, allocations: 35.97 kB / 444.3 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002432/0.3082, allocations: 60.83 kB / 444.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.403e-05/0.3083, allocations: 4 kB / 444.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002661/0.3109, allocations: 1.538 MB / 445.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3109, allocations: 0 / 445.9 MB, free: 8.203 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001674/0.3126, allocations: 0.5053 MB / 446.5 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001688/0.3128, allocations: 43.88 kB / 446.5 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.607e-05/0.3128, allocations: 4 kB / 446.5 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003839/0.3132, allocations: 39.83 kB / 446.5 MB, free: 7.594 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003231/0.3135, allocations: 67.88 kB / 446.6 MB, free: 7.527 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.694e-05/0.3136, allocations: 19.92 kB / 446.6 MB, free: 7.508 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002242/0.3138, allocations: 148.9 kB / 446.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3138, allocations: 0 / 446.8 MB, free: 7.363 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007724/0.3146, allocations: 79.94 kB / 446.8 MB, free: 7.285 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.004005/0.3186, allocations: 1.3 MB / 448.1 MB, free: 6.086 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001543/0.3201, allocations: 438.4 kB / 448.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.985e-06/0.3201, allocations: 0 / 448.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007949/0.3209, allocations: 262.6 kB / 448.8 MB, free: 5.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006961/0.3216, allocations: 49.36 kB / 448.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007135/0.3287, allocations: 2.827 MB / 451.7 MB, free: 2.383 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007066/0.3295, allocations: 0.7518 MB / 452.5 MB, free: 1.605 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001791/0.3296, allocations: 17.95 kB / 452.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001907/0.3298, allocations: 75.41 kB / 452.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of SimCode: time 1.684e-06/0.3298, allocations: 4 kB / 452.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04863/0.3784, allocations: 7.407 MB / 460 MB, free: 10.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.11/12.49, allocations: 7.688 kB / 460 MB, free: 10.19 MB / 366.1 MB " [Timeout remaining time 647] (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.85298526706174] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.656985096633434 12.682279336 12.390938242 Calling exit ...