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.001302/0.001302, allocations: 108.2 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.001471/0.001471, 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.52/1.52, 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.00185/0.00185, allocations: 51.92 kB / 347.2 MB, free: 10.05 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3228, allocations: 49.17 MB / 396.3 MB, free: 8.973 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003416/0.3262, allocations: 2.23 MB / 398.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.3275, allocations: 0.7364 MB / 399.3 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001168/0.3276, allocations: 6.594 kB / 399.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.3278, allocations: 29.08 kB / 399.3 MB, free: 6.918 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001861/0.328, allocations: 74.25 kB / 399.4 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.3284, allocations: 98.66 kB / 399.5 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003464/0.3287, allocations: 268.2 kB / 399.8 MB, free: 6.691 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.3289, allocations: 49.64 kB / 399.8 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001876/0.329, allocations: 114.8 kB / 399.9 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.3293, allocations: 120.3 kB / 400.1 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.079e-05/0.3293, allocations: 20.12 kB / 400.1 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001513/0.3295, allocations: 75.39 kB / 400.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.261e-05/0.3295, allocations: 47.75 kB / 400.2 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001135/0.3297, allocations: 118.5 kB / 400.3 MB, free: 6.434 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004097/0.3301, allocations: 274.7 kB / 400.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.3301, allocations: 1.281 kB / 400.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3301, allocations: 0 / 400.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.3301, 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008125/0.3309, allocations: 453.5 kB / 401 MB, free: 5.973 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.3309, allocations: 13.08 kB / 401 MB, free: 5.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.327e-05/0.331, allocations: 60.98 kB / 401.1 MB, free: 5.91 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.764e-05/0.3311, allocations: 29.81 kB / 401.1 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000259/0.3313, allocations: 172.2 kB / 401.3 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.3313, allocations: 16.53 kB / 401.3 MB, free: 5.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.91e-05/0.3314, allocations: 25.58 kB / 401.3 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000451/0.3318, allocations: 222.4 kB / 401.6 MB, free: 5.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.3319, allocations: 5.922 kB / 401.6 MB, free: 5.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.3319, allocations: 13.25 kB / 401.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.3319, allocations: 5.188 kB / 401.6 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003509/0.3322, allocations: 168.7 kB / 401.7 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001134/0.3334, allocations: 0.7153 MB / 402.5 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000371/0.3337, allocations: 128.3 kB / 402.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.3339, allocations: 65.53 kB / 402.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.157e-05/0.3339, allocations: 2.625 kB / 402.6 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.3339, allocations: 40 kB / 402.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.232e-06/0.3339, allocations: 0 / 402.7 MB, free: 4.879 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001694/0.3356, allocations: 0.7616 MB / 403.4 MB, free: 4.414 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.56e-05/0.3356, allocations: 53.47 kB / 403.5 MB, free: 4.352 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000202/0.3358, allocations: 209.5 kB / 403.7 MB, free: 4.211 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.3359, allocations: 32.62 kB / 403.7 MB, free: 4.176 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.141e-05/0.3359, allocations: 140.6 kB / 403.9 MB, free: 4.051 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.173e-05/0.336, allocations: 79.95 kB / 404 MB, free: 3.988 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.272e-05/0.3361, allocations: 50.75 kB / 404 MB, free: 3.957 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.735e-05/0.3361, allocations: 333.5 kB / 404.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001572/0.3363, allocations: 74.89 kB / 404.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.3364, allocations: 118.3 kB / 404.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002703/0.3367, allocations: 167.5 kB / 404.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.3367, allocations: 0 / 404.7 MB, free: 3.453 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004841/0.3372, allocations: 292.2 kB / 405 MB, free: 3.316 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/0.3372, allocations: 6.047 kB / 405 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3372, allocations: 1.344 kB / 405 MB, free: 3.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002551/0.3375, allocations: 74.91 kB / 405 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.3376, allocations: 36.06 kB / 405.1 MB, free: 3.285 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004191/0.3381, allocations: 0.6266 MB / 405.7 MB, free: 2.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001784/0.3382, allocations: 23.92 kB / 405.7 MB, free: 2.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.959e-05/0.3383, allocations: 7.156 kB / 405.7 MB, free: 2.707 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 0.0001076/0.3384, allocations: 140.5 kB / 405.9 MB, free: 2.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.368e-05/0.3384, allocations: 16.47 kB / 405.9 MB, free: 2.562 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.699e-05/0.3385, allocations: 29.59 kB / 405.9 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.357e-06/0.3385, allocations: 2.031 kB / 405.9 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3385, allocations: 4.062 kB / 405.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.3385, allocations: 2.625 kB / 405.9 MB, free: 2.535 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008099/0.3393, allocations: 0.5689 MB / 406.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.3393, allocations: 1.188 kB / 406.5 MB, free: 2.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001598/0.3394, allocations: 32.03 kB / 406.5 MB, free: 2.121 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.3396, allocations: 70.73 kB / 406.6 MB, free: 2.094 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.051e-05/0.3396, allocations: 7.531 kB / 406.6 MB, free: 2.09 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003452/0.34, allocations: 0.6158 MB / 407.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.34, allocations: 1.984 kB / 407.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005427/0.3405, allocations: 421.3 kB / 407.6 MB, free: 1.258 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.414e-05/0.3406, allocations: 27.36 kB / 407.7 MB, free: 1.246 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/0.3406, allocations: 6.438 kB / 407.7 MB, free: 1.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001779/0.3408, allocations: 25.19 kB / 407.7 MB, free: 1.234 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.379e-05/0.3409, allocations: 23.7 kB / 407.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.378e-05/0.3409, allocations: 6 kB / 407.7 MB, free: 1.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001375/0.3411, allocations: 156.1 kB / 407.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3411, allocations: 1.312 kB / 407.9 MB, free: 1.129 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003642/0.3414, allocations: 63.03 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.000811/0.3422, allocations: 0.9695 MB / 408.9 MB, free: 320 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005004/0.3427, allocations: 193.6 kB / 409.1 MB, free: 260 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3427, allocations: 4 kB / 409.1 MB, free: 256 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002207/0.3429, allocations: 97.42 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.0003958/0.3433, allocations: 38.56 kB / 409.2 MB, free: 208 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003759/0.3471, allocations: 2.663 MB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003975/0.3475, allocations: 0.7398 MB / 412.6 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.485e-05/0.3476, allocations: 16.53 kB / 412.7 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/0.3477, allocations: 63.45 kB / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of SimCode: time 6.22e-07/0.3477, allocations: 0 / 412.7 MB, free: 13.54 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03895/0.3867, allocations: 5.757 MB / 418.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.14, allocations: 17 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 & /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.666299605974928]