Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001303/0.001303, allocations: 107.8 kB / 19.17 MB, free: 3.871 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00135/0.00135, allocations: 208.9 kB / 22.13 MB, free: 0.918 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.431/1.431, allocations: 230.4 MB / 255.4 MB, free: 15 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001916/0.001916, allocations: 67.89 kB / 374.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1025, allocations: 53.31 MB / 428 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003846/0.1063, allocations: 2.299 MB / 430.3 MB, free: 2.035 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001567/0.1079, allocations: 0.8763 MB / 431.2 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.108, allocations: 4 kB / 431.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002893/0.1083, allocations: 47.59 kB / 431.3 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000289/0.1086, allocations: 103.2 kB / 431.4 MB, free: 1 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000265/0.1089, allocations: 91.8 kB / 431.5 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003543/0.1092, allocations: 287.4 kB / 431.7 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.1094, allocations: 48.38 kB / 431.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.1096, allocations: 127.5 kB / 431.9 MB, free: 464 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000235/0.1098, allocations: 143.4 kB / 432 MB, free: 320 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.327e-05/0.1099, allocations: 24 kB / 432.1 MB, free: 296 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001535/0.11, allocations: 75.98 kB / 432.1 MB, free: 220 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.955e-05/0.1101, allocations: 55.81 kB / 432.2 MB, free: 164 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001298/0.1103, allocations: 119.4 kB / 432.3 MB, free: 44 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1953/0.3055, allocations: 316.8 kB / 432.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3055, allocations: 1.625 kB / 432.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.3055, allocations: 0 / 432.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.574e-06/0.3055, allocations: 0.5625 kB / 432.6 MB, free: 8.406 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001052/0.3066, allocations: 0.5936 MB / 433.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.3066, allocations: 10.16 kB / 433.2 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001906/0.3068, allocations: 35.06 kB / 433.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000342/0.3072, allocations: 253.9 kB / 433.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.645e-05/0.3072, allocations: 12.41 kB / 433.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.389e-05/0.3072, allocations: 24.84 kB / 433.5 MB, free: 7.699 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004677/0.3077, allocations: 227.2 kB / 433.8 MB, free: 7.645 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.3077, allocations: 5.219 kB / 433.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.472e-05/0.3078, allocations: 5.719 kB / 433.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.837e-06/0.3078, allocations: 4.156 kB / 433.8 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004735/0.3082, allocations: 183.6 kB / 434 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008943/0.3091, allocations: 0.6457 MB / 434.6 MB, free: 7.273 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005602/0.3097, allocations: 191.3 kB / 434.8 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002181/0.3099, allocations: 91.66 kB / 434.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.467e-05/0.3099, allocations: 10.33 kB / 434.9 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003427/0.3103, allocations: 166.3 kB / 435.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.803e-06/0.3103, allocations: 0 / 435.1 MB, free: 7.191 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002349/0.3126, allocations: 1.17 MB / 436.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.3127, allocations: 53.97 kB / 436.3 MB, free: 6.535 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.3128, allocations: 198.6 kB / 436.5 MB, free: 6.434 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.26e-05/0.3129, allocations: 30.42 kB / 436.5 MB, free: 6.402 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.3129, allocations: 140.7 kB / 436.6 MB, free: 6.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.479e-05/0.313, allocations: 93.91 kB / 436.7 MB, free: 6.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.097e-05/0.3131, allocations: 61.41 kB / 436.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.977e-05/0.3131, allocations: 331.5 kB / 437.1 MB, free: 5.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002586/0.3134, allocations: 98.23 kB / 437.2 MB, free: 5.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002767/0.3137, allocations: 148.5 kB / 437.4 MB, free: 5.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004733/0.3141, allocations: 241.2 kB / 437.6 MB, free: 5.801 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.3141, allocations: 5.75 kB / 437.6 MB, free: 5.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000765/0.3149, allocations: 375.5 kB / 438 MB, free: 5.707 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.412e-05/0.3149, allocations: 34.41 kB / 438 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.315, allocations: 1.219 kB / 438 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002179/0.3152, allocations: 64.17 kB / 438.1 MB, free: 5.668 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000214/0.3154, allocations: 52.55 kB / 438.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00152/0.3169, allocations: 1.797 MB / 439.9 MB, free: 4.156 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000279/0.3172, allocations: 38.81 kB / 440 MB, free: 4.152 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.595e-05/0.3172, allocations: 12.69 kB / 440 MB, free: 4.152 MB / 350.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 (31): * Single equations (assignments): 29 * 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.0001297/0.3173, allocations: 146.7 kB / 440.1 MB, free: 4.031 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.245e-05/0.3174, allocations: 24.17 kB / 440.1 MB, free: 4.02 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.709e-05/0.3174, allocations: 31.91 kB / 440.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.3174, allocations: 2.375 kB / 440.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3174, allocations: 0 / 440.2 MB, free: 4.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3175, allocations: 7.094 kB / 440.2 MB, free: 4.012 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001038/0.3185, allocations: 0.6889 MB / 440.9 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.3185, allocations: 0.6094 kB / 440.9 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.3187, allocations: 42.45 kB / 440.9 MB, free: 3.695 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001471/0.3189, allocations: 56.69 kB / 441 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.3189, allocations: 7.406 kB / 441 MB, free: 3.688 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00121/0.3201, allocations: 1.645 MB / 442.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.3201, allocations: 4.062 kB / 442.6 MB, free: 2.242 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009719/0.3211, allocations: 0.5056 MB / 443.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.978e-05/0.3212, allocations: 114.7 kB / 443.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.793e-05/0.3212, allocations: 12.19 kB / 443.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002469/0.3214, allocations: 30.62 kB / 443.3 MB, free: 1.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.3216, allocations: 76.06 kB / 443.3 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.117e-05/0.3216, allocations: 7.141 kB / 443.4 MB, free: 1.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001303/0.3218, allocations: 148 kB / 443.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3218, allocations: 0 / 443.5 MB, free: 1.727 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004369/0.3222, allocations: 72.55 kB / 443.6 MB, free: 1.719 MB / 350.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 (21): * Single equations (assignments): 18 * 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.001247/0.3235, allocations: 373.3 kB / 443.9 MB, free: 1.578 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009179/0.3244, allocations: 436 kB / 444.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3244, allocations: 0 / 444.4 MB, free: 1.324 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004344/0.3248, allocations: 254.7 kB / 444.6 MB, free: 1.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004285/0.3252, allocations: 48.47 kB / 444.7 MB, free: 1.156 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001269/0.3265, allocations: 0.7143 MB / 445.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.3267, allocations: 0.7485 MB / 446.1 MB, free: 15.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.637e-05/0.3268, allocations: 25.33 kB / 446.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3268, allocations: 1.188 kB / 446.1 MB, free: 15.97 MB / 366.1 MB Notification: Performance of Templates: time 0.008532/0.3354, allocations: 4.378 MB / 450.5 MB, free: 15.55 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 7.519174126908183]