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.001311/0.001311, allocations: 107.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.001415/0.001415, allocations: 208 kB / 24.47 MB, free: 3.801 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.339/1.339, allocations: 207.7 MB / 235.3 MB, free: 9.82 MB / 190.1 MB " [Timeout remaining time 179] 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.001791/0.001791, allocations: 66.52 kB / 347.2 MB, free: 9.922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.2334, allocations: 49.16 MB / 396.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002945/0.2363, allocations: 2.115 MB / 398.5 MB, free: 7.477 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001145/0.2374, allocations: 0.7049 MB / 399.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001318/0.2376, allocations: 7.375 kB / 399.2 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001703/0.2377, allocations: 33.94 kB / 399.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001713/0.2379, allocations: 65.11 kB / 399.3 MB, free: 6.926 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.2383, allocations: 105.1 kB / 399.4 MB, free: 6.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.2385, allocations: 257.4 kB / 399.6 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001292/0.2386, allocations: 54.73 kB / 399.7 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.2388, allocations: 114.2 kB / 399.8 MB, free: 6.676 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.239, allocations: 107.6 kB / 399.9 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.827e-05/0.239, allocations: 18.81 kB / 399.9 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001575/0.2392, allocations: 71.56 kB / 400 MB, free: 6.617 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.72e-05/0.2392, allocations: 53.62 kB / 400 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.144e-05/0.2393, allocations: 90.36 kB / 400.1 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003372/0.2397, allocations: 278 kB / 400.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2397, allocations: 0 / 400.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.2397, allocations: 0 / 400.4 MB, free: 6.43 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.562e-06/0.2397, allocations: 0.6562 kB / 400.4 MB, free: 6.43 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.0006723/0.2403, allocations: 460.9 kB / 400.8 MB, free: 6.059 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.2404, allocations: 14.33 kB / 400.8 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.295e-05/0.2404, allocations: 52.91 kB / 400.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.967e-05/0.2405, allocations: 25.61 kB / 400.9 MB, free: 5.992 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002917/0.2408, allocations: 175.9 kB / 401.1 MB, free: 5.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.128e-05/0.2408, allocations: 13.25 kB / 401.1 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.314e-05/0.2408, allocations: 25.86 kB / 401.1 MB, free: 5.812 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003856/0.2412, allocations: 226.2 kB / 401.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.696e-05/0.2412, allocations: 6.062 kB / 401.4 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.048e-05/0.2413, allocations: 10.94 kB / 401.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.2413, allocations: 4.406 kB / 401.4 MB, free: 5.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003192/0.2416, allocations: 163.7 kB / 401.5 MB, free: 5.633 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009945/0.2426, allocations: 0.6781 MB / 402.2 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003227/0.2429, allocations: 127.4 kB / 402.3 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.243, allocations: 71.53 kB / 402.4 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.835e-05/0.2431, allocations: 6.406 kB / 402.4 MB, free: 5.023 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.073e-05/0.2431, allocations: 37.55 kB / 402.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.422e-06/0.2431, allocations: 0 / 402.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001585/0.2447, allocations: 0.7593 MB / 403.2 MB, free: 4.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.293e-05/0.2447, allocations: 57.72 kB / 403.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.2449, allocations: 207.1 kB / 403.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.506e-05/0.2449, allocations: 30.7 kB / 403.5 MB, free: 4.285 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.742e-05/0.2449, allocations: 149.4 kB / 403.6 MB, free: 4.152 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.991e-05/0.245, allocations: 69.72 kB / 403.7 MB, free: 4.098 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.208e-05/0.2451, allocations: 50.14 kB / 403.8 MB, free: 4.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.959e-05/0.2451, allocations: 338 kB / 404.1 MB, free: 3.738 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2453, allocations: 74.69 kB / 404.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.2454, allocations: 115.9 kB / 404.3 MB, free: 3.652 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002662/0.2457, allocations: 172.5 kB / 404.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2457, allocations: 1.062 kB / 404.4 MB, free: 3.559 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004513/0.2461, allocations: 283.9 kB / 404.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2462, allocations: 7.094 kB / 404.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2462, allocations: 1.312 kB / 404.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002292/0.2464, allocations: 75.67 kB / 404.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000149/0.2465, allocations: 35.77 kB / 404.8 MB, free: 3.398 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003643/0.2469, allocations: 0.6239 MB / 405.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.2471, allocations: 20.98 kB / 405.5 MB, free: 2.824 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.013e-05/0.2471, allocations: 10.72 kB / 405.5 MB, free: 2.82 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.848e-05/0.2472, allocations: 138.9 kB / 405.6 MB, free: 2.688 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.417e-05/0.2472, allocations: 16.44 kB / 405.6 MB, free: 2.68 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.647e-05/0.2473, allocations: 34.34 kB / 405.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.2473, allocations: 1.375 kB / 405.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.2473, allocations: 1.047 kB / 405.7 MB, free: 2.652 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.558e-06/0.2473, allocations: 3.984 kB / 405.7 MB, free: 2.648 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007587/0.2481, allocations: 0.5406 MB / 406.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.2481, allocations: 1.25 kB / 406.2 MB, free: 2.25 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001515/0.2482, allocations: 40.77 kB / 406.3 MB, free: 2.238 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000157/0.2484, allocations: 65 kB / 406.3 MB, free: 2.215 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.2484, allocations: 9.453 kB / 406.3 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003343/0.2487, allocations: 0.6202 MB / 407 MB, free: 1.641 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.2487, allocations: 5.531 kB / 407 MB, free: 1.637 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005346/0.2493, allocations: 421.6 kB / 407.4 MB, free: 1.371 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.546e-05/0.2494, allocations: 32.47 kB / 407.4 MB, free: 1.355 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.535e-05/0.2494, allocations: 7.875 kB / 407.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/0.2496, allocations: 20.11 kB / 407.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.647e-05/0.2496, allocations: 24.11 kB / 407.5 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.305e-05/0.2496, allocations: 6.859 kB / 407.5 MB, free: 1.344 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001111/0.2498, allocations: 155.2 kB / 407.6 MB, free: 1.242 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2498, allocations: 1.375 kB / 407.6 MB, free: 1.242 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003274/0.2501, allocations: 62.33 kB / 407.7 MB, free: 1.234 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.0007654/0.2508, allocations: 0.9677 MB / 408.7 MB, free: 440 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004697/0.2513, allocations: 186.4 kB / 408.8 MB, free: 388 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.2513, allocations: 0 / 408.8 MB, free: 388 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002132/0.2515, allocations: 94.08 kB / 408.9 MB, free: 364 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003848/0.2519, allocations: 39.72 kB / 409 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004006/0.2559, allocations: 2.664 MB / 411.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001681/0.2561, allocations: 129.9 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000109/0.2562, allocations: 25.14 kB / 411.8 MB, free: 14.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.2563, allocations: 59.73 kB / 411.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2563, allocations: 0 / 411.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03579/0.2921, allocations: 5.799 MB / 417.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/13.08, allocations: 5.125 kB / 417.6 MB, free: 11.35 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged_fmu --startTime=0 --stopTime=2 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.640432080253959]