Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001666/0.001666, allocations: 109 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.002125/0.002125, allocations: 213.9 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.425/1.425, 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001925/0.001925, allocations: 68.77 kB / 378.5 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2789, allocations: 53.37 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00415/0.283, allocations: 2.355 MB / 434.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001676/0.2847, allocations: 0.8686 MB / 435.1 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001338/0.2848, allocations: 3.938 kB / 435.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002918/0.2851, allocations: 51.58 kB / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003051/0.2854, allocations: 103.3 kB / 435.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000246/0.2857, allocations: 83.78 kB / 435.4 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.2861, allocations: 279.4 kB / 435.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001639/0.2862, allocations: 48.52 kB / 435.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002484/0.2865, allocations: 131.5 kB / 435.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002344/0.2867, allocations: 127.5 kB / 435.9 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.082e-05/0.2867, allocations: 24 kB / 436 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001745/0.2869, allocations: 79.92 kB / 436 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-05/0.287, allocations: 55.83 kB / 436.1 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001169/0.2871, allocations: 107.5 kB / 436.2 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004489/0.2876, allocations: 315.5 kB / 436.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.2876, allocations: 0 / 436.5 MB, free: 2.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.2876, allocations: 4 kB / 436.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.763e-06/0.2876, allocations: 0 / 436.5 MB, free: 2.246 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008912/0.2885, allocations: 481.2 kB / 437 MB, free: 1.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.485e-05/0.2885, allocations: 12.03 kB / 437 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.065e-05/0.2886, allocations: 54.67 kB / 437.1 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001661/0.2887, allocations: 36.78 kB / 437.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003804/0.2891, allocations: 194.1 kB / 437.3 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.2891, allocations: 20.69 kB / 437.3 MB, free: 1.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.563e-05/0.2892, allocations: 20.33 kB / 437.3 MB, free: 1.379 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004086/0.2896, allocations: 218.5 kB / 437.5 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.625e-05/0.2896, allocations: 4 kB / 437.5 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.2896, allocations: 11.98 kB / 437.6 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.2897, allocations: 4 kB / 437.6 MB, free: 1.133 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003301/0.29, allocations: 159.3 kB / 437.7 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001144/0.2911, allocations: 0.7131 MB / 438.4 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003798/0.2915, allocations: 138.7 kB / 438.6 MB, free: 68 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001604/0.2917, allocations: 68.89 kB / 438.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.438e-05/0.2917, allocations: 3.984 kB / 438.6 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.2917, allocations: 34.91 kB / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=19): time 1.322e-06/0.2917, allocations: 0 / 438.7 MB, free: 15.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=21): time 0.001798/0.2935, allocations: 0.7767 MB / 439.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.058e-05/0.2936, allocations: 55.41 kB / 439.5 MB, free: 15.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000263/0.2938, allocations: 214.8 kB / 439.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.2939, allocations: 37.7 kB / 439.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.294, allocations: 140.5 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.653e-05/0.294, allocations: 71.39 kB / 439.9 MB, free: 14.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.442e-05/0.2941, allocations: 53.69 kB / 440 MB, free: 14.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2943, allocations: 326.8 kB / 440.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001639/0.2944, allocations: 67.97 kB / 440.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.2946, allocations: 107.4 kB / 440.5 MB, free: 14.01 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.2949, allocations: 155.3 kB / 440.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.142e-06/0.2949, allocations: 3.938 kB / 440.6 MB, free: 13.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004898/0.2954, allocations: 270.2 kB / 440.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.2954, allocations: 8.062 kB / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2954, allocations: 0 / 440.9 MB, free: 13.56 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002259/0.2957, allocations: 68.73 kB / 441 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.2958, allocations: 35.98 kB / 441 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001975/0.2978, allocations: 1.711 MB / 442.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.298, allocations: 24.08 kB / 442.8 MB, free: 11.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.949e-05/0.298, allocations: 12 kB / 442.8 MB, free: 11.59 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001584/0.2982, allocations: 138 kB / 442.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.551e-05/0.2982, allocations: 23.88 kB / 442.9 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.55e-05/0.2983, allocations: 29.91 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.41e-06/0.2983, allocations: 4 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.83e-06/0.2983, allocations: 4.062 kB / 443 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2983, allocations: 7.984 kB / 443 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009318/0.2992, allocations: 0.581 MB / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2992, allocations: 0 / 443.6 MB, free: 10.74 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.2994, allocations: 35.98 kB / 443.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001603/0.2995, allocations: 56.83 kB / 443.6 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/0.2996, allocations: 11.94 kB / 443.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/0.3012, allocations: 1.558 MB / 445.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3012, allocations: 0 / 445.2 MB, free: 8.961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007166/0.3019, allocations: 426.3 kB / 445.6 MB, free: 8.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.325e-05/0.302, allocations: 39.88 kB / 445.7 MB, free: 8.48 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.302, allocations: 7.938 kB / 445.7 MB, free: 8.473 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001797/0.3022, allocations: 23.97 kB / 445.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.3024, allocations: 63.89 kB / 445.8 MB, free: 8.387 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.457e-05/0.3024, allocations: 8 kB / 445.8 MB, free: 8.379 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001833/0.3026, allocations: 164.6 kB / 445.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3026, allocations: 0 / 445.9 MB, free: 8.219 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004049/0.303, allocations: 64 kB / 446 MB, free: 8.156 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.002243/0.3052, allocations: 1.216 MB / 447.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007224/0.3059, allocations: 306.4 kB / 447.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3059, allocations: 0 / 447.5 MB, free: 6.727 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003513/0.3063, allocations: 226.4 kB / 447.7 MB, free: 6.492 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/0.3067, allocations: 47.83 kB / 447.8 MB, free: 6.445 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003891/0.3106, allocations: 2.678 MB / 450.5 MB, free: 3.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000432/0.311, allocations: 0.744 MB / 451.2 MB, free: 2.891 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001208/0.3111, allocations: 21.95 kB / 451.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001255/0.3113, allocations: 67.41 kB / 451.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of SimCode: time 1.372e-06/0.3113, allocations: 0 / 451.3 MB, free: 2.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05281/0.3641, allocations: 6.764 MB / 458 MB, free: 12.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.95/12.31, allocations: 0 / 458 MB, free: 12.12 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0-beta_om_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.751161008607596] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.476437996141613 12.492823191 12.201846991 Calling exit ...