Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00148/0.00148, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001463/0.001463, allocations: 215.6 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.372/1.372, allocations: 230.6 MB / 257.5 MB, free: 7.785 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+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 47.92 kB / 377.7 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2453, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003702/0.2491, allocations: 2.189 MB / 433.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.2505, allocations: 0.8335 MB / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.2506, allocations: 0 / 434.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002631/0.2509, allocations: 55.56 kB / 434.1 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002932/0.2512, allocations: 111.2 kB / 434.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.2514, allocations: 83.83 kB / 434.3 MB, free: 3.375 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003561/0.2518, allocations: 291.4 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.2519, allocations: 48.56 kB / 434.7 MB, free: 3.039 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002437/0.2522, allocations: 127.6 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002169/0.2524, allocations: 147.4 kB / 434.9 MB, free: 2.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.125e-05/0.2524, allocations: 24 kB / 435 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.2526, allocations: 75.98 kB / 435 MB, free: 2.672 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.194e-05/0.2526, allocations: 55.81 kB / 435.1 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000111/0.2528, allocations: 95.59 kB / 435.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003887/0.2531, allocations: 312.5 kB / 435.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.2531, allocations: 0 / 435.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2531, allocations: 0 / 435.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.159e-05/0.2532, allocations: 15.88 kB / 435.5 MB, free: 2.203 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.001024/0.2542, allocations: 0.5278 MB / 436 MB, free: 1.641 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.2542, allocations: 12.03 kB / 436 MB, free: 1.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.094e-05/0.2543, allocations: 46.73 kB / 436.1 MB, free: 1.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001689/0.2544, allocations: 36.78 kB / 436.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.2548, allocations: 191.8 kB / 436.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.2548, allocations: 16.38 kB / 436.3 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.13e-05/0.2549, allocations: 20.38 kB / 436.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004846/0.2554, allocations: 235 kB / 436.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.632e-05/0.2554, allocations: 4 kB / 436.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.491e-05/0.2554, allocations: 8 kB / 436.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.2554, allocations: 4 kB / 436.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004728/0.2559, allocations: 179.8 kB / 436.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009439/0.2568, allocations: 0.5815 MB / 437.3 MB, free: 232 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005612/0.2574, allocations: 193.1 kB / 437.5 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002526/0.2577, allocations: 92.8 kB / 437.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.632e-05/0.2577, allocations: 4 kB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003877/0.2581, allocations: 167.3 kB / 437.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 2.294e-06/0.2581, allocations: 0 / 437.8 MB, free: 15.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002406/0.2605, allocations: 0.9349 MB / 438.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.2605, allocations: 55.41 kB / 438.8 MB, free: 14.7 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/0.2608, allocations: 203.8 kB / 439 MB, free: 14.49 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.2608, allocations: 33.64 kB / 439 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.287e-05/0.2609, allocations: 136.5 kB / 439.1 MB, free: 14.32 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.978e-05/0.261, allocations: 95.2 kB / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.2611, allocations: 61.7 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2612, allocations: 334.8 kB / 439.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002865/0.2615, allocations: 129.6 kB / 439.8 MB, free: 13.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002991/0.2618, allocations: 168.8 kB / 439.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004774/0.2623, allocations: 246.1 kB / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.2623, allocations: 0 / 440.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008507/0.2631, allocations: 399.5 kB / 440.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.396e-05/0.2632, allocations: 33.69 kB / 440.6 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.516e-06/0.2632, allocations: 4 kB / 440.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002281/0.2634, allocations: 64.77 kB / 440.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.2636, allocations: 51.95 kB / 440.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.2655, allocations: 1.691 MB / 442.4 MB, free: 10.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002818/0.2658, allocations: 36.03 kB / 442.4 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.256e-05/0.2658, allocations: 11.94 kB / 442.4 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.0001658/0.266, allocations: 145.8 kB / 442.6 MB, free: 10.67 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.266, allocations: 19.86 kB / 442.6 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.363e-05/0.2661, allocations: 26.66 kB / 442.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.2661, allocations: 4 kB / 442.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.2661, allocations: 3.938 kB / 442.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.2661, allocations: 3.984 kB / 442.6 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001149/0.2672, allocations: 0.6314 MB / 443.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.2672, allocations: 0 / 443.3 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002266/0.2675, allocations: 47.91 kB / 443.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000152/0.2676, allocations: 52.77 kB / 443.4 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.2676, allocations: 8 kB / 443.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001561/0.2692, allocations: 1.538 MB / 444.9 MB, free: 8.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.2692, allocations: 3.938 kB / 444.9 MB, free: 8.16 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.2702, allocations: 0.5053 MB / 445.4 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.995e-05/0.2703, allocations: 35.92 kB / 445.5 MB, free: 7.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.253e-05/0.2704, allocations: 11.98 kB / 445.5 MB, free: 7.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000246/0.2706, allocations: 31.91 kB / 445.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.2708, allocations: 79.8 kB / 445.6 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.2708, allocations: 4 kB / 445.6 MB, free: 7.477 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001456/0.2709, allocations: 152.9 kB / 445.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2709, allocations: 0 / 445.7 MB, free: 7.328 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004132/0.2714, allocations: 83.92 kB / 445.8 MB, free: 7.246 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.002518/0.2739, allocations: 1.321 MB / 447.1 MB, free: 6.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009462/0.2748, allocations: 456 kB / 447.6 MB, free: 5.574 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.2748, allocations: 4 kB / 447.6 MB, free: 5.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004534/0.2753, allocations: 262.6 kB / 447.8 MB, free: 5.301 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004382/0.2757, allocations: 43.47 kB / 447.9 MB, free: 5.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004368/0.2801, allocations: 2.947 MB / 450.8 MB, free: 2.18 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001474/0.2802, allocations: 142.1 kB / 451 MB, free: 2.023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.2804, allocations: 29.92 kB / 451 MB, free: 1.996 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001288/0.2805, allocations: 63.42 kB / 451.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of SimCode: time 9.02e-07/0.2805, allocations: 0 / 451.1 MB, free: 1.934 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04791/0.3284, allocations: 7.726 MB / 458.8 MB, free: 10.3 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.41, allocations: 3.75 kB / 458.8 MB, free: 10.3 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.752383032988291]