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.001957/0.001957, allocations: 92.62 kB / 20.96 MB, free: 3.473 MB / 18.57 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.002492/0.002492, allocations: 153.4 kB / 24.26 MB, free: 180 kB / 18.57 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.436/1.436, allocations: 173.4 MB / 200.8 MB, free: 9.281 MB / 186.7 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 1.934e-06/1.934e-06, allocations: 0 / 267.3 MB, free: 6.715 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.666e-05/2.859e-05, allocations: 2.312 kB / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003953/0.003982, allocations: 2.09 MB / 269.4 MB, free: 4.605 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001557/0.005539, allocations: 0.6661 MB / 270.1 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001577/0.005697, allocations: 7.875 kB / 270.1 MB, free: 3.926 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002137/0.00591, allocations: 31.72 kB / 270.1 MB, free: 3.895 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002566/0.006167, allocations: 71.41 kB / 270.2 MB, free: 3.824 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004708/0.006638, allocations: 119.6 kB / 270.3 MB, free: 3.707 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004433/0.007081, allocations: 283.4 kB / 270.6 MB, free: 3.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001666/0.007248, allocations: 36.56 kB / 270.6 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003689/0.007617, allocations: 167.7 kB / 270.8 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000244/0.007861, allocations: 99.75 kB / 270.9 MB, free: 3.129 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/0.007913, allocations: 20 kB / 270.9 MB, free: 3.109 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000164/0.008077, allocations: 75.88 kB / 271 MB, free: 3.035 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.008217, allocations: 47.83 kB / 271 MB, free: 2.988 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001376/0.008354, allocations: 79.8 kB / 271.1 MB, free: 2.91 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004792/0.008833, allocations: 303.1 kB / 271.4 MB, free: 2.613 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.008837, allocations: 0 / 271.4 MB, free: 2.613 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.008838, allocations: 0 / 271.4 MB, free: 2.613 MB / 250.7 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.008845, allocations: 3.938 kB / 271.4 MB, free: 2.609 MB / 250.7 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.001194/0.01004, allocations: 0.4987 MB / 271.9 MB, free: 2.074 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.107e-05/0.01008, allocations: 12.03 kB / 271.9 MB, free: 2.062 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001399/0.01022, allocations: 36.8 kB / 271.9 MB, free: 2.027 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003607/0.01058, allocations: 177.5 kB / 272.1 MB, free: 1.828 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.296e-05/0.01061, allocations: 16.38 kB / 272.1 MB, free: 1.812 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.771e-05/0.01067, allocations: 20.33 kB / 272.1 MB, free: 1.793 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005655/0.01124, allocations: 231.7 kB / 272.4 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.427e-05/0.01126, allocations: 12.19 kB / 272.4 MB, free: 1.543 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.001e-05/0.01129, allocations: 12.34 kB / 272.4 MB, free: 1.531 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.003e-05/0.0113, allocations: 7.938 kB / 272.4 MB, free: 1.523 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005384/0.01184, allocations: 191.8 kB / 272.6 MB, free: 1.336 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001174/0.01301, allocations: 0.5586 MB / 273.1 MB, free: 0.7422 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006673/0.01368, allocations: 194 kB / 273.3 MB, free: 0.5469 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002631/0.01394, allocations: 96.8 kB / 273.4 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.012e-05/0.01397, allocations: 4 kB / 273.4 MB, free: 456 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004227/0.0144, allocations: 163.5 kB / 273.6 MB, free: 280 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.054e-06/0.0144, allocations: 3.938 kB / 273.6 MB, free: 276 kB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.002751/0.01715, allocations: 0.928 MB / 274.5 MB, free: 15.29 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.455e-05/0.0172, allocations: 55.41 kB / 274.6 MB, free: 15.22 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002379/0.01744, allocations: 200 kB / 274.8 MB, free: 15.01 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.366e-05/0.01748, allocations: 29.7 kB / 274.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001184/0.01759, allocations: 136.5 kB / 274.9 MB, free: 14.84 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.651e-05/0.01769, allocations: 95.14 kB / 275 MB, free: 14.75 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001213/0.01781, allocations: 65.62 kB / 275.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002019/0.01801, allocations: 334.8 kB / 275.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003265/0.01834, allocations: 130 kB / 275.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000363/0.0187, allocations: 185.7 kB / 275.7 MB, free: 14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005829/0.01929, allocations: 239.8 kB / 276 MB, free: 13.75 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.01929, allocations: 0 / 276 MB, free: 13.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001041/0.02033, allocations: 450.5 kB / 276.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.863e-05/0.02038, allocations: 33.7 kB / 276.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.728e-06/0.02039, allocations: 4 kB / 276.4 MB, free: 13.25 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002665/0.02065, allocations: 72.84 kB / 276.5 MB, free: 13.18 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.0209, allocations: 47.91 kB / 276.6 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006469/0.02155, allocations: 0.6148 MB / 277.2 MB, free: 12.49 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.02184, allocations: 44.08 kB / 277.2 MB, free: 12.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.179e-05/0.02188, allocations: 8 kB / 277.2 MB, free: 12.44 MB / 266.7 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.0001677/0.02204, allocations: 137.8 kB / 277.4 MB, free: 12.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.171e-05/0.02211, allocations: 31.84 kB / 277.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.133e-05/0.02218, allocations: 29.95 kB / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-06/0.02218, allocations: 0 / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.02219, allocations: 4 kB / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.017e-06/0.02219, allocations: 0 / 277.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.02344, allocations: 0.5893 MB / 278 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.02344, allocations: 0 / 278 MB, free: 11.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.02367, allocations: 43.97 kB / 278 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002019/0.02387, allocations: 64.81 kB / 278.1 MB, free: 11.49 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.351e-05/0.0239, allocations: 4 kB / 278.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006143/0.02451, allocations: 0.6225 MB / 278.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.02451, allocations: 0 / 278.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001138/0.02565, allocations: 0.5125 MB / 279.3 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.907e-05/0.02575, allocations: 35.92 kB / 279.3 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.131e-05/0.0258, allocations: 4 kB / 279.3 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.02606, allocations: 35.97 kB / 279.3 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001079/0.02617, allocations: 35.94 kB / 279.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.32e-05/0.02619, allocations: 7.984 kB / 279.4 MB, free: 10.19 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001587/0.02635, allocations: 151.3 kB / 279.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02635, allocations: 0 / 279.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003809/0.02673, allocations: 68 kB / 279.6 MB, free: 9.973 MB / 266.7 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.0002354/0.02696, allocations: 123.1 kB / 279.7 MB, free: 9.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008531/0.02782, allocations: 336.9 kB / 280 MB, free: 9.492 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.02782, allocations: 0 / 280 MB, free: 9.492 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003873/0.02821, allocations: 135.8 kB / 280.2 MB, free: 9.359 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.02863, allocations: 55.33 kB / 280.2 MB, free: 9.309 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00138/0.03001, allocations: 0.567 MB / 280.8 MB, free: 8.711 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001518/0.03016, allocations: 133.6 kB / 280.9 MB, free: 8.559 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.994e-05/0.03026, allocations: 17.95 kB / 280.9 MB, free: 8.543 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.761e-05/0.03033, allocations: 24.48 kB / 281 MB, free: 8.52 MB / 266.7 MB Notification: Performance of SimCode: time 5.31e-07/0.03033, allocations: 0 / 281 MB, free: 8.52 MB / 266.7 MB Notification: Performance of Templates: time 0.008818/0.03915, allocations: 3.63 MB / 284.6 MB, free: 4.938 MB / 266.7 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.36159471294377]