Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001641/0.001641, allocations: 109.6 kB / 21.18 MB, free: 0.6992 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.002202/0.002202, allocations: 216.7 kB / 24.5 MB, free: 4.027 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.38/1.38, 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.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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: 55.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.2893, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003342/0.2926, allocations: 2.236 MB / 398.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.2939, allocations: 0.7372 MB / 399.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.294, allocations: 3.875 kB / 399.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001899/0.2942, allocations: 31.05 kB / 399.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.2944, allocations: 67.11 kB / 399.4 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000345/0.2947, allocations: 111 kB / 399.5 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002993/0.295, allocations: 266.2 kB / 399.8 MB, free: 6.688 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.2952, allocations: 50.75 kB / 399.8 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.2954, allocations: 114.3 kB / 399.9 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.2956, allocations: 119.4 kB / 400.1 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.545e-05/0.2956, allocations: 19.72 kB / 400.1 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001409/0.2957, allocations: 71.72 kB / 400.1 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.281e-05/0.2958, allocations: 48.72 kB / 400.2 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.986e-05/0.2959, allocations: 115.8 kB / 400.3 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003766/0.2963, allocations: 282.4 kB / 400.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.576e-06/0.2963, allocations: 0 / 400.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2963, allocations: 0 / 400.6 MB, free: 6.332 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.2963, allocations: 0 / 400.6 MB, free: 6.332 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007378/0.297, allocations: 454.1 kB / 401 MB, free: 5.969 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.2971, allocations: 13.45 kB / 401 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.352e-05/0.2971, allocations: 52.14 kB / 401.1 MB, free: 5.914 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.05e-05/0.2972, allocations: 26.11 kB / 401.1 MB, free: 5.902 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002919/0.2975, allocations: 175.5 kB / 401.3 MB, free: 5.738 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.2975, allocations: 17.64 kB / 401.3 MB, free: 5.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.306e-05/0.2975, allocations: 29.39 kB / 401.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003902/0.2979, allocations: 222.1 kB / 401.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.2979, allocations: 2.375 kB / 401.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.005e-05/0.298, allocations: 9.75 kB / 401.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.298, allocations: 4.344 kB / 401.6 MB, free: 5.59 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003531/0.2983, allocations: 169.5 kB / 401.7 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.2994, allocations: 0.714 MB / 402.4 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003453/0.2997, allocations: 128.5 kB / 402.6 MB, free: 4.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.2999, allocations: 67.61 kB / 402.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.2999, allocations: 1.25 kB / 402.6 MB, free: 4.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.2999, allocations: 37.48 kB / 402.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.163e-06/0.2999, allocations: 0 / 402.7 MB, free: 4.887 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001627/0.3015, allocations: 0.764 MB / 403.4 MB, free: 4.422 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.3015, allocations: 54.62 kB / 403.5 MB, free: 4.359 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001786/0.3017, allocations: 205.7 kB / 403.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.3017, allocations: 34.92 kB / 403.7 MB, free: 4.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.458e-05/0.3018, allocations: 140.4 kB / 403.9 MB, free: 4.059 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.568e-05/0.3018, allocations: 79.69 kB / 403.9 MB, free: 3.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.947e-05/0.3019, allocations: 50.42 kB / 404 MB, free: 3.965 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.92e-05/0.302, allocations: 337.5 kB / 404.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001713/0.3022, allocations: 82.91 kB / 404.4 MB, free: 3.605 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001769/0.3023, allocations: 118.2 kB / 404.5 MB, free: 3.539 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002591/0.3026, allocations: 167.2 kB / 404.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.3026, allocations: 1.125 kB / 404.7 MB, free: 3.449 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004332/0.303, allocations: 286.8 kB / 405 MB, free: 3.32 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.303, allocations: 8.812 kB / 405 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.404e-06/0.3031, allocations: 1.094 kB / 405 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002503/0.3033, allocations: 68.45 kB / 405 MB, free: 3.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.3035, allocations: 44.03 kB / 405.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000372/0.3038, allocations: 0.618 MB / 405.7 MB, free: 2.719 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000181/0.304, allocations: 23.8 kB / 405.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.304, allocations: 6.75 kB / 405.7 MB, free: 2.711 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: 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 (26): * Single equations (assignments): 25 * 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 9.961e-05/0.3041, allocations: 143.9 kB / 405.9 MB, free: 2.574 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.451e-05/0.3042, allocations: 17.06 kB / 405.9 MB, free: 2.566 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.507e-05/0.3042, allocations: 27.12 kB / 405.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.667e-06/0.3042, allocations: 2.375 kB / 405.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.3042, allocations: 0 / 405.9 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.3042, allocations: 5.453 kB / 405.9 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007918/0.305, allocations: 0.5709 MB / 406.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.305, allocations: 0 / 406.5 MB, free: 2.129 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001493/0.3052, allocations: 33.78 kB / 406.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001604/0.3053, allocations: 73.84 kB / 406.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.3054, allocations: 7.297 kB / 406.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003218/0.3057, allocations: 0.6133 MB / 407.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3057, allocations: 1.438 kB / 407.2 MB, free: 1.527 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005617/0.3063, allocations: 420.6 kB / 407.6 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.336e-05/0.3063, allocations: 26.72 kB / 407.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.57e-05/0.3064, allocations: 7.547 kB / 407.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.3065, allocations: 20.58 kB / 407.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.742e-05/0.3066, allocations: 31.91 kB / 407.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.28e-05/0.3066, allocations: 6.812 kB / 407.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001177/0.3067, allocations: 155.4 kB / 407.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3067, allocations: 1.375 kB / 407.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003446/0.3071, allocations: 62.33 kB / 407.9 MB, free: 1.121 MB / 318.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 (14): * Single equations (assignments): 13 * 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.0007767/0.3079, allocations: 0.9737 MB / 408.9 MB, free: 316 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004611/0.3083, allocations: 189.2 kB / 409.1 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.3083, allocations: 0 / 409.1 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.3085, allocations: 103 kB / 409.2 MB, free: 228 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.3089, allocations: 35.41 kB / 409.2 MB, free: 212 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003678/0.3126, allocations: 2.655 MB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.313, allocations: 0.7402 MB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.331e-05/0.3131, allocations: 20.58 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.3132, allocations: 63.5 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3132, allocations: 4 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03623/0.3494, allocations: 5.763 MB / 418.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.68/13.03, allocations: 5.219 kB / 418.5 MB, free: 10.8 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_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_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.phi from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! Error: Could not read variable inertiaIn.w in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv. Warning: Get data of variable inertiaIn.w from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.4963071470047]