Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 112.2 kB / 19.04 MB, free: 3.254 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001328/0.001328, allocations: 196.4 kB / 22.22 MB, free: 72 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.39/1.39, allocations: 225.6 MB / 250.8 MB, free: 13.33 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001612/0.001612, allocations: 51.86 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2866, allocations: 52.14 MB / 420.8 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003654/0.2902, allocations: 2.207 MB / 423.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001412/0.2917, allocations: 0.7012 MB / 423.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000123/0.2918, allocations: 8 kB / 423.8 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002136/0.292, allocations: 31.66 kB / 423.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001864/0.2922, allocations: 71.47 kB / 423.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.2926, allocations: 107.7 kB / 424 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003239/0.2929, allocations: 275.4 kB / 424.2 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000134/0.293, allocations: 48.25 kB / 424.3 MB, free: 11.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001933/0.2932, allocations: 119.6 kB / 424.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001915/0.2934, allocations: 123.5 kB / 424.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.2934, allocations: 23.98 kB / 424.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.2936, allocations: 71.95 kB / 424.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.101e-05/0.2937, allocations: 55.77 kB / 424.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001154/0.2938, allocations: 107.5 kB / 424.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00038/0.2942, allocations: 288.2 kB / 425.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.2942, allocations: 0 / 425.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2942, allocations: 0 / 425.1 MB, free: 10.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.873e-06/0.2942, allocations: 0 / 425.1 MB, free: 10.9 MB / 334.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.001045/0.2952, allocations: 0.5663 MB / 425.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.2953, allocations: 11.89 kB / 425.6 MB, free: 10.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.63e-05/0.2953, allocations: 32.69 kB / 425.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003373/0.2957, allocations: 236 kB / 425.9 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.72e-05/0.2957, allocations: 16.38 kB / 425.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.693e-05/0.2957, allocations: 16.38 kB / 425.9 MB, free: 9.938 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.2962, allocations: 243.5 kB / 426.2 MB, free: 9.688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.2963, allocations: 3.953 kB / 426.2 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.444e-05/0.2963, allocations: 8 kB / 426.2 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/0.2963, allocations: 4 kB / 426.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000494/0.2968, allocations: 191.8 kB / 426.4 MB, free: 9.484 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001079/0.2979, allocations: 0.6799 MB / 427.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000582/0.2985, allocations: 194.3 kB / 427.2 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002333/0.2987, allocations: 96.75 kB / 427.3 MB, free: 8.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.711e-05/0.2987, allocations: 4 kB / 427.3 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003653/0.2991, allocations: 167 kB / 427.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.813e-06/0.2991, allocations: 0 / 427.5 MB, free: 8.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.00252/0.3016, allocations: 1.146 MB / 428.6 MB, free: 7.016 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.107e-05/0.3017, allocations: 55.41 kB / 428.7 MB, free: 6.949 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002042/0.3019, allocations: 195.9 kB / 428.9 MB, free: 6.746 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.127e-05/0.3019, allocations: 29.7 kB / 428.9 MB, free: 6.711 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.824e-05/0.302, allocations: 136.5 kB / 429.1 MB, free: 6.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.991e-05/0.3021, allocations: 95.2 kB / 429.2 MB, free: 6.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.3022, allocations: 65.69 kB / 429.2 MB, free: 6.41 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001452/0.3023, allocations: 338.8 kB / 429.5 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.3026, allocations: 108 kB / 429.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002977/0.3029, allocations: 144.9 kB / 429.8 MB, free: 5.809 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005454/0.3034, allocations: 246.7 kB / 430 MB, free: 5.551 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.383e-06/0.3035, allocations: 0 / 430 MB, free: 5.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008525/0.3043, allocations: 398 kB / 430.4 MB, free: 5.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.773e-05/0.3044, allocations: 37.69 kB / 430.5 MB, free: 5.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.3044, allocations: 3.938 kB / 430.5 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002625/0.3046, allocations: 68.83 kB / 430.5 MB, free: 5.031 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002122/0.3048, allocations: 51.89 kB / 430.6 MB, free: 4.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005682/0.3054, allocations: 0.611 MB / 431.2 MB, free: 4.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.3057, allocations: 28 kB / 431.2 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.068e-05/0.3057, allocations: 23.86 kB / 431.2 MB, free: 4.293 MB / 334.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.0001515/0.3058, allocations: 145.8 kB / 431.4 MB, free: 4.141 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.682e-05/0.3059, allocations: 19.86 kB / 431.4 MB, free: 4.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.943e-05/0.3059, allocations: 29.94 kB / 431.4 MB, free: 4.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.306, allocations: 7.984 kB / 431.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.306, allocations: 0 / 431.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.306, allocations: 3.938 kB / 431.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.3071, allocations: 0.6751 MB / 432.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3072, allocations: 0 / 432.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002122/0.3074, allocations: 43.97 kB / 432.2 MB, free: 3.301 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001782/0.3075, allocations: 72.75 kB / 432.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.345e-05/0.3076, allocations: 7.984 kB / 432.2 MB, free: 3.219 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005154/0.3081, allocations: 0.6033 MB / 432.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3081, allocations: 0 / 432.8 MB, free: 2.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009949/0.3091, allocations: 0.5091 MB / 433.4 MB, free: 2.059 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001096/0.3092, allocations: 113 kB / 433.5 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.189e-05/0.3092, allocations: 7.938 kB / 433.5 MB, free: 1.922 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002301/0.3095, allocations: 35.95 kB / 433.5 MB, free: 1.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3096, allocations: 35.95 kB / 433.5 MB, free: 1.852 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.878e-05/0.3096, allocations: 4 kB / 433.5 MB, free: 1.848 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001328/0.3097, allocations: 139.5 kB / 433.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3097, allocations: 0 / 433.7 MB, free: 1.711 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003481/0.3101, allocations: 71.94 kB / 433.8 MB, free: 1.641 MB / 334.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.0002454/0.3103, allocations: 131.2 kB / 433.9 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000776/0.3111, allocations: 308.2 kB / 434.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.3111, allocations: 0 / 434.2 MB, free: 1.188 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003474/0.3114, allocations: 139.8 kB / 434.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.3118, allocations: 44.03 kB / 434.4 MB, free: 1.008 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00131/0.3131, allocations: 0.6623 MB / 435 MB, free: 328 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000369/0.3135, allocations: 0.7479 MB / 435.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.922e-05/0.3136, allocations: 17.95 kB / 435.8 MB, free: 15.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/0.3137, allocations: 19.44 kB / 435.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3137, allocations: 0 / 435.8 MB, free: 15.51 MB / 350.1 MB Notification: Performance of Templates: time 0.008476/0.3221, allocations: 3.966 MB / 439.8 MB, free: 11.57 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 4.472670798189938]