Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.002219/0.002219, allocations: 113.6 kB / 21.19 MB, free: 0.7031 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.002652/0.002652, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.408/1.408, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 51.92 kB / 347.2 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3059, allocations: 49.16 MB / 396.3 MB, free: 8.988 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003353/0.3093, allocations: 2.183 MB / 398.5 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00128/0.3105, allocations: 0.7607 MB / 399.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.3107, allocations: 2.812 kB / 399.3 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000195/0.3109, allocations: 31.31 kB / 399.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001762/0.311, allocations: 66.52 kB / 399.4 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000423/0.3115, allocations: 114 kB / 399.5 MB, free: 6.832 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003885/0.3118, allocations: 275.6 kB / 399.8 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001412/0.312, allocations: 44.61 kB / 399.8 MB, free: 6.68 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000206/0.3122, allocations: 128.2 kB / 399.9 MB, free: 6.621 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.3124, allocations: 123.5 kB / 400 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.438e-05/0.3125, allocations: 20.38 kB / 400.1 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.3126, allocations: 73.77 kB / 400.1 MB, free: 6.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.561e-05/0.3127, allocations: 58.22 kB / 400.2 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001228/0.3128, allocations: 113.6 kB / 400.3 MB, free: 6.441 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004004/0.3132, allocations: 284.9 kB / 400.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.3132, allocations: 1.125 kB / 400.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.3133, allocations: 0.6094 kB / 400.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.3133, allocations: 0 / 400.6 MB, free: 6.336 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0009212/0.3142, allocations: 0.4889 MB / 401.1 MB, free: 5.938 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.128e-05/0.3142, allocations: 18.14 kB / 401.1 MB, free: 5.93 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.501e-05/0.3143, allocations: 56.64 kB / 401.2 MB, free: 5.875 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.828e-05/0.3143, allocations: 25.8 kB / 401.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.3146, allocations: 176.4 kB / 401.3 MB, free: 5.699 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.888e-05/0.3146, allocations: 12.36 kB / 401.4 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.7e-05/0.3147, allocations: 22.5 kB / 401.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004684/0.3151, allocations: 237.6 kB / 401.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/0.3151, allocations: 1.859 kB / 401.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.127e-05/0.3152, allocations: 13.31 kB / 401.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.634e-06/0.3152, allocations: 4.25 kB / 401.6 MB, free: 5.562 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004622/0.3156, allocations: 193.9 kB / 401.8 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000994/0.3166, allocations: 0.6425 MB / 402.5 MB, free: 5.047 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005546/0.3172, allocations: 188.8 kB / 402.7 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.3174, allocations: 91.8 kB / 402.7 MB, free: 4.945 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.3174, allocations: 6.406 kB / 402.7 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003368/0.3178, allocations: 169.5 kB / 402.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.3178, allocations: 0 / 402.9 MB, free: 4.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002166/0.3199, allocations: 0.9259 MB / 403.8 MB, free: 4.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.32, allocations: 63.16 kB / 403.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.3201, allocations: 191.1 kB / 404.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.212e-05/0.3201, allocations: 32.86 kB / 404.1 MB, free: 4.117 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.07e-05/0.3202, allocations: 139.8 kB / 404.3 MB, free: 3.992 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.464e-05/0.3202, allocations: 86.81 kB / 404.3 MB, free: 3.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.023e-05/0.3203, allocations: 63.78 kB / 404.4 MB, free: 3.887 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.85e-05/0.3204, allocations: 338 kB / 404.7 MB, free: 3.559 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002718/0.3207, allocations: 105.8 kB / 404.8 MB, free: 3.523 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002692/0.3209, allocations: 145.1 kB / 405 MB, free: 3.457 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000443/0.3214, allocations: 251.4 kB / 405.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.3214, allocations: 0 / 405.2 MB, free: 3.32 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007957/0.3222, allocations: 397.6 kB / 405.6 MB, free: 3.137 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.3222, allocations: 36.44 kB / 405.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3222, allocations: 1.156 kB / 405.6 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002302/0.3225, allocations: 75.52 kB / 405.7 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002039/0.3227, allocations: 49.7 kB / 405.8 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000373/0.323, allocations: 0.6078 MB / 406.4 MB, free: 2.508 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.3233, allocations: 32.98 kB / 406.4 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.402e-05/0.3233, allocations: 15.66 kB / 406.4 MB, free: 2.496 MB / 318.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 (32): * Single equations (assignments): 30 * 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.0001144/0.3234, allocations: 144.2 kB / 406.6 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.229e-05/0.3235, allocations: 21.28 kB / 406.6 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.75e-05/0.3235, allocations: 32.41 kB / 406.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.3235, allocations: 3.906 kB / 406.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3235, allocations: 0 / 406.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.3235, allocations: 1.078 kB / 406.6 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.3245, allocations: 0.6522 MB / 407.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3245, allocations: 1.375 kB / 407.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000199/0.3247, allocations: 36.75 kB / 407.3 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000155/0.3249, allocations: 65.88 kB / 407.4 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.15e-05/0.3249, allocations: 10.97 kB / 407.4 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003334/0.3253, allocations: 0.611 MB / 408 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3253, allocations: 4.641 kB / 408 MB, free: 1.305 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008809/0.3261, allocations: 0.5022 MB / 408.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.462e-05/0.3262, allocations: 36.94 kB / 408.5 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.073e-05/0.3263, allocations: 7.078 kB / 408.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.3265, allocations: 26.03 kB / 408.6 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001075/0.3266, allocations: 35.23 kB / 408.6 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.886e-05/0.3266, allocations: 11.16 kB / 408.6 MB, free: 1 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.3268, allocations: 140.5 kB / 408.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3268, allocations: 0 / 408.8 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003724/0.3271, allocations: 72.89 kB / 408.8 MB, free: 0.8945 MB / 318.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 (20): * Single equations (assignments): 17 * 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.001235/0.3284, allocations: 1.072 MB / 409.9 MB, free: 76 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007709/0.3291, allocations: 308 kB / 410.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.3291, allocations: 128 / 410.2 MB, free: 15.95 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003636/0.3295, allocations: 132.4 kB / 410.3 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.3299, allocations: 48.5 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004775/0.3347, allocations: 2.833 MB / 413.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004113/0.3351, allocations: 0.7458 MB / 414 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001136/0.3352, allocations: 21.23 kB / 414 MB, free: 13.22 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001221/0.3353, allocations: 68.11 kB / 414 MB, free: 13.17 MB / 334.1 MB Notification: Performance of SimCode: time 5.91e-07/0.3353, allocations: 1.375 kB / 414 MB, free: 13.17 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0374/0.3727, allocations: 6.393 MB / 420.4 MB, free: 9.793 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/13.19, allocations: 5.078 kB / 420.4 MB, free: 9.789 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable inertiaIn.phi in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.78125977000309]