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.001742/0.001742, allocations: 74.34 kB / 21.24 MB, free: 0.5547 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.002143/0.002143, allocations: 157.6 kB / 24.5 MB, free: 3.715 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 1.582/1.582, allocations: 177.2 MB / 204.9 MB, free: 9.004 MB / 190.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+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.001503/0.001503, allocations: 54.89 kB / 325.5 MB, free: 468 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08835/0.08986, allocations: 53.34 MB / 378.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003666/0.09352, allocations: 2.188 MB / 381.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.09498, allocations: 0.8374 MB / 381.9 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.09508, allocations: 7.938 kB / 381.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002249/0.09531, allocations: 43.64 kB / 382 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002832/0.09559, allocations: 111.2 kB / 382.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002245/0.09581, allocations: 91.75 kB / 382.2 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003548/0.09617, allocations: 295.5 kB / 382.4 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.0963, allocations: 36.56 kB / 382.5 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002413/0.09654, allocations: 143.5 kB / 382.6 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00021/0.09675, allocations: 119.5 kB / 382.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.237e-05/0.09679, allocations: 20 kB / 382.8 MB, free: 11.92 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000149/0.09694, allocations: 79.98 kB / 382.8 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.09703, allocations: 55.81 kB / 382.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00012/0.09715, allocations: 99.47 kB / 383 MB, free: 11.69 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004179/0.09756, allocations: 318.8 kB / 383.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.09757, allocations: 0 / 383.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.09757, allocations: 4 kB / 383.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.09757, allocations: 0 / 383.3 MB, free: 11.38 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.001045/0.09862, allocations: 0.522 MB / 383.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.959e-05/0.09865, allocations: 8.031 kB / 383.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.09883, allocations: 36.78 kB / 383.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/0.09916, allocations: 195.8 kB / 384.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.697e-05/0.09919, allocations: 16.31 kB / 384.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.096e-05/0.09925, allocations: 20.38 kB / 384.1 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004806/0.09973, allocations: 231.3 kB / 384.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.784e-05/0.09974, allocations: 3.984 kB / 384.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.694e-05/0.09977, allocations: 11.98 kB / 384.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.09978, allocations: 4 kB / 384.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000492/0.1003, allocations: 175.9 kB / 384.5 MB, free: 10.09 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009168/0.1012, allocations: 0.5391 MB / 385.1 MB, free: 9.516 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005695/0.1018, allocations: 186.5 kB / 385.2 MB, free: 9.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.102, allocations: 92.81 kB / 385.3 MB, free: 9.23 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.832e-05/0.102, allocations: 3.938 kB / 385.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003766/0.1024, allocations: 179.8 kB / 385.5 MB, free: 9.039 MB / 350.1 MB Notification: Performance of pre-optimization done (n=25): time 1.583e-06/0.1024, allocations: 0 / 385.5 MB, free: 9.039 MB / 350.1 MB Notification: Performance of matching and sorting (n=27): time 0.002456/0.1049, allocations: 0.9348 MB / 386.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/0.1049, allocations: 59.34 kB / 386.5 MB, free: 7.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002233/0.1051, allocations: 199.2 kB / 386.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.801e-05/0.1052, allocations: 29.7 kB / 386.7 MB, free: 7.738 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.607e-05/0.1052, allocations: 144.4 kB / 386.9 MB, free: 7.594 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.224e-05/0.1053, allocations: 99.22 kB / 387 MB, free: 7.496 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.595e-05/0.1054, allocations: 53.7 kB / 387 MB, free: 7.438 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.1056, allocations: 334.8 kB / 387.3 MB, free: 7.102 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002893/0.1059, allocations: 125.6 kB / 387.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.1062, allocations: 170.1 kB / 387.6 MB, free: 6.789 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005162/0.1067, allocations: 246 kB / 387.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.1067, allocations: 0 / 387.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008526/0.1076, allocations: 411.3 kB / 388.3 MB, free: 6.109 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.451e-05/0.1076, allocations: 33.7 kB / 388.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.1076, allocations: 0 / 388.3 MB, free: 6.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/0.1078, allocations: 64.88 kB / 388.4 MB, free: 6.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002153/0.108, allocations: 51.91 kB / 388.4 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001799/0.1098, allocations: 1.671 MB / 390.1 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002666/0.1101, allocations: 36.06 kB / 390.1 MB, free: 4.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.614e-05/0.1101, allocations: 12 kB / 390.1 MB, free: 4.137 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.0001465/0.1102, allocations: 146.6 kB / 390.3 MB, free: 3.984 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.611e-05/0.1103, allocations: 23.86 kB / 390.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.106e-05/0.1104, allocations: 26.66 kB / 390.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.1104, allocations: 0 / 390.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.1104, allocations: 0 / 390.3 MB, free: 3.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.1104, allocations: 7.984 kB / 390.3 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.1115, allocations: 0.6008 MB / 390.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1115, allocations: 0 / 390.9 MB, free: 3.285 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002362/0.1117, allocations: 43.91 kB / 391 MB, free: 3.242 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001367/0.1119, allocations: 44.84 kB / 391 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.466e-05/0.1119, allocations: 11.98 kB / 391 MB, free: 3.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001545/0.1134, allocations: 1.511 MB / 392.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.1134, allocations: 0 / 392.5 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001038/0.1145, allocations: 0.5166 MB / 393.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.096e-05/0.1146, allocations: 31.92 kB / 393.1 MB, free: 1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.532e-05/0.1146, allocations: 8 kB / 393.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002708/0.1149, allocations: 31.95 kB / 393.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.115, allocations: 75.86 kB / 393.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.84e-05/0.115, allocations: 4 kB / 393.2 MB, free: 0.8828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001443/0.1152, allocations: 155.5 kB / 393.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1152, allocations: 0 / 393.4 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003887/0.1156, allocations: 72 kB / 393.4 MB, free: 0.6602 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.001365/0.1169, allocations: 395.6 kB / 393.8 MB, free: 436 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009094/0.1179, allocations: 468 kB / 394.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1179, allocations: 0 / 394.3 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004678/0.1183, allocations: 266.4 kB / 394.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004282/0.1188, allocations: 52.03 kB / 394.6 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001289/0.12, allocations: 0.6641 MB / 395.3 MB, free: 14.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001419/0.1202, allocations: 138.2 kB / 395.4 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.915e-05/0.1203, allocations: 25.95 kB / 395.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.185e-05/0.1204, allocations: 28.48 kB / 395.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1204, allocations: 0 / 395.4 MB, free: 14.71 MB / 366.1 MB Notification: Performance of Templates: time 0.009279/0.1296, allocations: 4.51 MB / 400 MB, free: 10.25 MB / 366.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 ida -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: 4.493550210027024]