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.001626/0.001626, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.001927/0.001927, allocations: 214.9 kB / 24.47 MB, free: 3.793 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.342/1.342, allocations: 207.7 MB / 235.3 MB, free: 9.777 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.00195/0.00195, allocations: 55.06 kB / 347.2 MB, free: 9.898 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.23/0.232, allocations: 49.15 MB / 396.3 MB, free: 8.867 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002918/0.2349, allocations: 2.082 MB / 398.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001195/0.2361, allocations: 0.7108 MB / 399.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.2362, allocations: 2.438 kB / 399.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.2364, allocations: 31.73 kB / 399.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.2365, allocations: 70.2 kB / 399.2 MB, free: 6.941 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.2369, allocations: 115.2 kB / 399.3 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002679/0.2371, allocations: 274.8 kB / 399.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2372, allocations: 45.5 kB / 399.7 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001703/0.2374, allocations: 122.6 kB / 399.8 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001687/0.2376, allocations: 116.9 kB / 399.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.844e-05/0.2376, allocations: 20.41 kB / 399.9 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001322/0.2377, allocations: 69.2 kB / 400 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.991e-05/0.2378, allocations: 52.52 kB / 400 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.442e-05/0.2379, allocations: 99.42 kB / 400.1 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.2383, allocations: 285.6 kB / 400.4 MB, free: 6.418 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.2383, allocations: 3.938 kB / 400.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.532e-06/0.2383, allocations: 0 / 400.4 MB, free: 6.414 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2383, allocations: 0 / 400.4 MB, free: 6.414 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.000854/0.2391, allocations: 0.4892 MB / 400.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.2392, allocations: 13.61 kB / 400.9 MB, free: 6.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.294e-05/0.2392, allocations: 57.52 kB / 401 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.758e-05/0.2393, allocations: 25.86 kB / 401 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002734/0.2395, allocations: 180.8 kB / 401.2 MB, free: 5.777 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/0.2396, allocations: 16.53 kB / 401.2 MB, free: 5.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.675e-05/0.2396, allocations: 17.89 kB / 401.2 MB, free: 5.766 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004508/0.2401, allocations: 233.8 kB / 401.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.706e-05/0.2401, allocations: 5.922 kB / 401.4 MB, free: 5.652 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.103e-05/0.2401, allocations: 10.62 kB / 401.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.015e-06/0.2401, allocations: 8.172 kB / 401.5 MB, free: 5.641 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004624/0.2406, allocations: 195.2 kB / 401.6 MB, free: 5.586 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008837/0.2415, allocations: 0.5914 MB / 402.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005156/0.242, allocations: 191.2 kB / 402.4 MB, free: 5.07 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.2422, allocations: 95.56 kB / 402.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.2422, allocations: 3.156 kB / 402.5 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003448/0.2426, allocations: 158.5 kB / 402.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.2426, allocations: 1.062 kB / 402.7 MB, free: 4.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002133/0.2447, allocations: 0.9355 MB / 403.6 MB, free: 4.449 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.554e-05/0.2447, allocations: 54.75 kB / 403.7 MB, free: 4.387 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001566/0.2449, allocations: 188 kB / 403.8 MB, free: 4.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.2449, allocations: 34.89 kB / 403.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.675e-05/0.245, allocations: 140.6 kB / 404 MB, free: 4.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.08e-05/0.245, allocations: 94.53 kB / 404.1 MB, free: 4.02 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001156/0.2452, allocations: 64.45 kB / 404.2 MB, free: 3.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.2452, allocations: 333.6 kB / 404.5 MB, free: 3.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.2455, allocations: 133.4 kB / 404.6 MB, free: 3.59 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002622/0.2458, allocations: 171.8 kB / 404.8 MB, free: 3.492 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004338/0.2462, allocations: 249.2 kB / 405 MB, free: 3.359 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2462, allocations: 0 / 405 MB, free: 3.359 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000769/0.247, allocations: 429.9 kB / 405.5 MB, free: 3.141 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.019e-05/0.247, allocations: 37.98 kB / 405.5 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.247, allocations: 4 kB / 405.5 MB, free: 3.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002236/0.2472, allocations: 68.95 kB / 405.6 MB, free: 3.078 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002061/0.2474, allocations: 52.11 kB / 405.6 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003546/0.2478, allocations: 0.609 MB / 406.2 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000262/0.2481, allocations: 35.09 kB / 406.3 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.2481, allocations: 17.64 kB / 406.3 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.0001207/0.2482, allocations: 143.1 kB / 406.4 MB, free: 2.359 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.518e-05/0.2482, allocations: 23.17 kB / 406.4 MB, free: 2.348 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.605e-05/0.2483, allocations: 27.86 kB / 406.5 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.509e-06/0.2483, allocations: 6.469 kB / 406.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.2483, allocations: 0.6562 kB / 406.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.2483, allocations: 2.25 kB / 406.5 MB, free: 2.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001064/0.2494, allocations: 0.6239 MB / 407.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.2494, allocations: 1.438 kB / 407.1 MB, free: 1.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002053/0.2496, allocations: 44.44 kB / 407.1 MB, free: 1.902 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001698/0.2498, allocations: 70.02 kB / 407.2 MB, free: 1.875 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.25e-05/0.2498, allocations: 6.656 kB / 407.2 MB, free: 1.871 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003347/0.2501, allocations: 0.6042 MB / 407.8 MB, free: 1.316 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2501, allocations: 8 kB / 407.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000942/0.2511, allocations: 0.4974 MB / 408.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.2512, allocations: 37.55 kB / 408.4 MB, free: 1.027 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.113e-05/0.2512, allocations: 5.984 kB / 408.4 MB, free: 1.023 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000233/0.2514, allocations: 34.3 kB / 408.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000106/0.2515, allocations: 35.45 kB / 408.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.845e-05/0.2516, allocations: 6.812 kB / 408.4 MB, free: 1.008 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001117/0.2517, allocations: 143.5 kB / 408.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2517, allocations: 0 / 408.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003722/0.252, allocations: 70.02 kB / 408.7 MB, free: 0.9023 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.001251/0.2533, allocations: 1.072 MB / 409.7 MB, free: 84 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007574/0.254, allocations: 341.5 kB / 410.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.254, allocations: 0 / 410.1 MB, free: 15.91 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000344/0.2544, allocations: 129.5 kB / 410.2 MB, free: 15.88 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004166/0.2548, allocations: 51.5 kB / 410.2 MB, free: 15.85 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00463/0.2594, allocations: 2.949 MB / 413.2 MB, free: 13.76 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001525/0.2596, allocations: 137.1 kB / 413.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001159/0.2597, allocations: 16.55 kB / 413.3 MB, free: 13.68 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001147/0.2598, allocations: 69.33 kB / 413.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2598, allocations: 0 / 413.4 MB, free: 13.63 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1705/0.4303, allocations: 6.466 MB / 419.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.53/12.96, allocations: 5.391 kB / 419.9 MB, free: 10.04 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.565887816250324]