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.001687/0.001687, allocations: 109.2 kB / 19.8 MB, free: 2.516 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.002145/0.002145, allocations: 221 kB / 23 MB, free: 5.617 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.416/1.416, allocations: 230.4 MB / 256.5 MB, free: 8.246 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.001839/0.001839, allocations: 63.89 kB / 376.2 MB, free: 4.039 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2321/0.2339, allocations: 53.32 MB / 429.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004296/0.2382, allocations: 2.31 MB / 431.8 MB, free: 5.082 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001372/0.2396, allocations: 0.884 MB / 432.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.37e-05/0.2397, allocations: 4 kB / 432.7 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002375/0.2399, allocations: 51.58 kB / 432.8 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002872/0.2402, allocations: 111.2 kB / 432.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.2404, allocations: 79.83 kB / 432.9 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003551/0.2408, allocations: 299.3 kB / 433.2 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.2409, allocations: 40.39 kB / 433.3 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002382/0.2412, allocations: 135.5 kB / 433.4 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002084/0.2414, allocations: 135.5 kB / 433.5 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.922e-05/0.2414, allocations: 20 kB / 433.6 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001563/0.2416, allocations: 83.95 kB / 433.6 MB, free: 3.246 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.847e-05/0.2417, allocations: 55.83 kB / 433.7 MB, free: 3.191 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.2418, allocations: 119.4 kB / 433.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004097/0.2422, allocations: 319.1 kB / 434.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.2422, allocations: 0 / 434.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2422, allocations: 0 / 434.1 MB, free: 2.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.641e-06/0.2422, allocations: 0 / 434.1 MB, free: 2.766 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.001007/0.2432, allocations: 0.5973 MB / 434.7 MB, free: 2.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.33e-05/0.2432, allocations: 8.031 kB / 434.7 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.732e-05/0.2433, allocations: 46.73 kB / 434.8 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000157/0.2435, allocations: 40.73 kB / 434.8 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.2438, allocations: 252.8 kB / 435.1 MB, free: 1.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.2438, allocations: 12.38 kB / 435.1 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.539e-05/0.2439, allocations: 16.38 kB / 435.1 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004643/0.2444, allocations: 239 kB / 435.3 MB, free: 1.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.2444, allocations: 4 kB / 435.3 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.229e-05/0.2444, allocations: 8 kB / 435.3 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.2444, allocations: 4 kB / 435.3 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004784/0.2449, allocations: 175.9 kB / 435.5 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000981/0.2459, allocations: 0.6564 MB / 436.2 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005533/0.2464, allocations: 194.4 kB / 436.4 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.2467, allocations: 92.81 kB / 436.5 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.384e-05/0.2467, allocations: 11.98 kB / 436.5 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003644/0.247, allocations: 167.2 kB / 436.6 MB, free: 72 kB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.634e-06/0.247, allocations: 0 / 436.6 MB, free: 72 kB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002533/0.2496, allocations: 1.167 MB / 437.8 MB, free: 14.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.2496, allocations: 55.41 kB / 437.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/0.2498, allocations: 198.8 kB / 438 MB, free: 14.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.066e-05/0.2499, allocations: 33.7 kB / 438.1 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.25, allocations: 132.5 kB / 438.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.994e-05/0.25, allocations: 95.2 kB / 438.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/0.2501, allocations: 57.7 kB / 438.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.2503, allocations: 342.8 kB / 438.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002617/0.2506, allocations: 99.88 kB / 438.8 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002959/0.2509, allocations: 145 kB / 438.9 MB, free: 13.6 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005006/0.2514, allocations: 242.9 kB / 439.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2514, allocations: 0 / 439.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008236/0.2522, allocations: 373.8 kB / 439.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.661e-05/0.2522, allocations: 37.75 kB / 439.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2522, allocations: 4 kB / 439.6 MB, free: 12.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001953/0.2524, allocations: 52.78 kB / 439.6 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.2526, allocations: 51.89 kB / 439.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001939/0.2546, allocations: 1.801 MB / 441.5 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000259/0.2548, allocations: 40.05 kB / 441.5 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.529e-05/0.2549, allocations: 12 kB / 441.5 MB, free: 10.82 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.0001509/0.255, allocations: 141.8 kB / 441.7 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.255, allocations: 19.86 kB / 441.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.053e-05/0.2551, allocations: 38.55 kB / 441.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.2551, allocations: 0 / 441.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2551, allocations: 3.938 kB / 441.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2551, allocations: 7.984 kB / 441.7 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001148/0.2563, allocations: 0.683 MB / 442.4 MB, free: 9.863 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.187e-06/0.2563, allocations: 3.984 kB / 442.4 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002222/0.2565, allocations: 47.91 kB / 442.5 MB, free: 9.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001387/0.2566, allocations: 49 kB / 442.5 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.304e-05/0.2567, allocations: 7.984 kB / 442.5 MB, free: 9.754 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00166/0.2583, allocations: 1.646 MB / 444.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2583, allocations: 0 / 444.2 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00101/0.2593, allocations: 0.5055 MB / 444.7 MB, free: 7.441 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.2595, allocations: 117 kB / 444.8 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.519e-05/0.2595, allocations: 4 kB / 444.8 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002379/0.2597, allocations: 35.89 kB / 444.8 MB, free: 7.27 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.2599, allocations: 71.89 kB / 444.9 MB, free: 7.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.2599, allocations: 12 kB / 444.9 MB, free: 7.188 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001482/0.2601, allocations: 147.6 kB / 445.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2601, allocations: 0 / 445.1 MB, free: 7.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003957/0.2605, allocations: 75.94 kB / 445.1 MB, free: 6.969 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.002565/0.263, allocations: 1.316 MB / 446.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008896/0.2639, allocations: 429.7 kB / 446.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2639, allocations: 3.938 kB / 446.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004469/0.2644, allocations: 258.6 kB / 447.1 MB, free: 5.051 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004029/0.2648, allocations: 50.48 kB / 447.2 MB, free: 5.004 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004329/0.2691, allocations: 2.828 MB / 450 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004466/0.2696, allocations: 0.7518 MB / 450.7 MB, free: 1.285 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001233/0.2697, allocations: 29.91 kB / 450.8 MB, free: 1.254 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001244/0.2698, allocations: 67.41 kB / 450.8 MB, free: 1.188 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.2698, allocations: 7.938 kB / 450.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03503/0.3048, allocations: 7.21 MB / 458.1 MB, free: 10.06 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.9, allocations: 11.12 kB / 458.1 MB, free: 10.05 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 --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.216105147002963] Failed to read output from testmodel.py, exit status != 0: ['time', 'inertiaIn.phi', 'inertiaIn.w', 'oneWayClutch.phi_rel', 'oneWayClutch.w_rel'] 12.049269172013737 12.065008751 11.819382613 Calling exit ...