Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00162/0.00162, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001682/0.001682, allocations: 214 kB / 24.48 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 2.542/2.542, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 177] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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: 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_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_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00175/0.00175, allocations: 47.94 kB / 379 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3188, allocations: 53.37 MB / 432.3 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.006393/0.3252, allocations: 2.196 MB / 434.5 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00268/0.3279, allocations: 0.8179 MB / 435.3 MB, free: 3.672 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.328, allocations: 4 kB / 435.3 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.3283, allocations: 47.58 kB / 435.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004998/0.3288, allocations: 111.2 kB / 435.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004189/0.3292, allocations: 95.81 kB / 435.6 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005815/0.3298, allocations: 287.4 kB / 435.9 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000218/0.33, allocations: 43.53 kB / 435.9 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004177/0.3305, allocations: 139.5 kB / 436.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003493/0.3308, allocations: 139.4 kB / 436.2 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.467e-05/0.3309, allocations: 24 kB / 436.2 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002408/0.3311, allocations: 71.98 kB / 436.3 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001214/0.3312, allocations: 59.81 kB / 436.3 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001745/0.3314, allocations: 99.58 kB / 436.4 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006285/0.3321, allocations: 318.4 kB / 436.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.05e-06/0.3321, allocations: 4 kB / 436.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3321, allocations: 0 / 436.8 MB, free: 2.258 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.401e-05/0.3321, allocations: 0 / 436.8 MB, free: 2.258 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.001472/0.3335, allocations: 0.5219 MB / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.3336, allocations: 12.03 kB / 437.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002369/0.3338, allocations: 36.78 kB / 437.3 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004686/0.3343, allocations: 191.8 kB / 437.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.677e-05/0.3343, allocations: 12.38 kB / 437.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.821e-05/0.3344, allocations: 20.38 kB / 437.5 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000743/0.3351, allocations: 243.2 kB / 437.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.131e-05/0.3352, allocations: 0 / 437.8 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.3352, allocations: 11.98 kB / 437.8 MB, free: 1.145 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.848e-06/0.3352, allocations: 4 kB / 437.8 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007408/0.3359, allocations: 175.9 kB / 438 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001354/0.3373, allocations: 0.543 MB / 438.5 MB, free: 400 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/0.3381, allocations: 186.5 kB / 438.7 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003378/0.3384, allocations: 96.8 kB / 438.8 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.3384, allocations: 4 kB / 438.8 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005039/0.3389, allocations: 171.2 kB / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.944e-06/0.3389, allocations: 0 / 439 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.003133/0.3421, allocations: 0.9265 MB / 439.9 MB, free: 14.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.049e-05/0.3421, allocations: 55.41 kB / 439.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003016/0.3424, allocations: 207.1 kB / 440.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.08e-05/0.3425, allocations: 37.7 kB / 440.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.3426, allocations: 136.4 kB / 440.3 MB, free: 14.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/0.3427, allocations: 91.22 kB / 440.4 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000156/0.3429, allocations: 65.64 kB / 440.5 MB, free: 14.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.3431, allocations: 330.8 kB / 440.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003838/0.3434, allocations: 129.6 kB / 440.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.3439, allocations: 170.1 kB / 441.1 MB, free: 13.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006449/0.3445, allocations: 250 kB / 441.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3445, allocations: 4 kB / 441.3 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008198/0.3453, allocations: 407.3 kB / 441.7 MB, free: 12.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.3454, allocations: 37.75 kB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.3454, allocations: 4 kB / 441.8 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002065/0.3456, allocations: 60.8 kB / 441.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000206/0.3458, allocations: 47.91 kB / 441.9 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001937/0.3477, allocations: 1.668 MB / 443.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003159/0.348, allocations: 27.97 kB / 443.6 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.3481, allocations: 12 kB / 443.6 MB, free: 11.02 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.000176/0.3482, allocations: 149.7 kB / 443.7 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.224e-05/0.3483, allocations: 19.86 kB / 443.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.152e-05/0.3484, allocations: 30.66 kB / 443.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.9e-06/0.3484, allocations: 8.062 kB / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.3484, allocations: 0 / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.3484, allocations: 3.984 kB / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.3497, allocations: 0.5851 MB / 444.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.3497, allocations: 0 / 444.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/0.35, allocations: 51.89 kB / 444.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000171/0.3502, allocations: 52.83 kB / 444.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/0.3502, allocations: 8.047 kB / 444.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001883/0.3521, allocations: 1.515 MB / 446 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.031e-06/0.3521, allocations: 0 / 446 MB, free: 8.441 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001455/0.3536, allocations: 0.513 MB / 446.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.3537, allocations: 31.92 kB / 446.5 MB, free: 7.879 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.744e-05/0.3537, allocations: 4 kB / 446.5 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003141/0.354, allocations: 31.95 kB / 446.6 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.3542, allocations: 71.88 kB / 446.6 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.3543, allocations: 15.98 kB / 446.7 MB, free: 7.758 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001904/0.3544, allocations: 147.6 kB / 446.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3544, allocations: 3.938 kB / 446.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005425/0.355, allocations: 75.94 kB / 446.9 MB, free: 7.535 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.001523/0.3565, allocations: 394.4 kB / 447.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001067/0.3576, allocations: 467.7 kB / 447.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3576, allocations: 0 / 447.7 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000552/0.3581, allocations: 266.5 kB / 448 MB, free: 6.539 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005379/0.3587, allocations: 47.33 kB / 448 MB, free: 6.496 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001557/0.3602, allocations: 0.6642 MB / 448.7 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001567/0.3604, allocations: 138.2 kB / 448.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001389/0.3605, allocations: 29.94 kB / 448.9 MB, free: 5.621 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.359e-05/0.3606, allocations: 35.36 kB / 448.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3606, allocations: 0 / 448.9 MB, free: 5.586 MB / 350.1 MB Notification: Performance of Templates: time 0.01147/0.3721, allocations: 4.777 MB / 453.7 MB, free: 0.8672 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 6.878293130997918]