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.001561/0.001561, allocations: 123.4 kB / 18.46 MB, free: 4.578 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.001651/0.001651, allocations: 192.3 kB / 21.4 MB, free: 1.648 MB / 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.629/1.629, allocations: 225.6 MB / 249.8 MB, free: 3.488 MB / 190.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.001513/0.001513, allocations: 55.91 kB / 366.8 MB, free: 352 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1052, allocations: 52.13 MB / 418.9 MB, free: 12.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004152/0.1094, allocations: 2.178 MB / 421.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001446/0.1108, allocations: 0.705 MB / 421.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.1109, allocations: 3.938 kB / 421.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001978/0.1111, allocations: 27.72 kB / 421.8 MB, free: 9.184 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002152/0.1114, allocations: 71.47 kB / 421.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003898/0.1117, allocations: 111.7 kB / 422 MB, free: 9.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003605/0.1121, allocations: 275.4 kB / 422.3 MB, free: 8.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1122, allocations: 44.38 kB / 422.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.1124, allocations: 119.6 kB / 422.5 MB, free: 8.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002129/0.1127, allocations: 119.5 kB / 422.6 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.352e-05/0.1127, allocations: 28 kB / 422.6 MB, free: 8.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.1129, allocations: 71.89 kB / 422.7 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.985e-05/0.1129, allocations: 51.81 kB / 422.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001416/0.1131, allocations: 119.4 kB / 422.8 MB, free: 8.191 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003836/0.1135, allocations: 278.9 kB / 423.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.1135, allocations: 0 / 423.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.1135, allocations: 0 / 423.1 MB, free: 7.918 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.292e-06/0.1135, allocations: 0 / 423.1 MB, free: 7.918 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001109/0.1146, allocations: 0.5741 MB / 423.7 MB, free: 7.289 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.1146, allocations: 11.89 kB / 423.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.966e-05/0.1147, allocations: 28.75 kB / 423.7 MB, free: 7.25 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.1151, allocations: 236 kB / 424 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.1151, allocations: 16.38 kB / 424 MB, free: 6.965 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.904e-05/0.1151, allocations: 20.38 kB / 424 MB, free: 6.945 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005184/0.1156, allocations: 239.5 kB / 424.2 MB, free: 6.699 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.816e-05/0.1157, allocations: 3.953 kB / 424.2 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.541e-05/0.1157, allocations: 8 kB / 424.2 MB, free: 6.688 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.1157, allocations: 11.97 kB / 424.2 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005085/0.1162, allocations: 195.8 kB / 424.4 MB, free: 6.484 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001096/0.1173, allocations: 0.676 MB / 425.1 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005938/0.1179, allocations: 196.3 kB / 425.3 MB, free: 5.555 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002465/0.1181, allocations: 92.8 kB / 425.4 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.1182, allocations: 4 kB / 425.4 MB, free: 5.457 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003688/0.1185, allocations: 167.5 kB / 425.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.583e-06/0.1185, allocations: 0 / 425.6 MB, free: 5.281 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.002548/0.1211, allocations: 1.149 MB / 426.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.324e-05/0.1211, allocations: 55.41 kB / 426.8 MB, free: 3.953 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001991/0.1213, allocations: 191.1 kB / 427 MB, free: 3.754 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.408e-05/0.1214, allocations: 37.69 kB / 427 MB, free: 3.711 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.1215, allocations: 136.4 kB / 427.1 MB, free: 3.574 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.8e-05/0.1215, allocations: 91.27 kB / 427.2 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1217, allocations: 57.69 kB / 427.3 MB, free: 3.422 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.1218, allocations: 338.8 kB / 427.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.1221, allocations: 112 kB / 427.7 MB, free: 2.969 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.1224, allocations: 148.9 kB / 427.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005262/0.1229, allocations: 243.8 kB / 428.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-06/0.1229, allocations: 0 / 428.1 MB, free: 2.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008698/0.1238, allocations: 396.8 kB / 428.5 MB, free: 2.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.249e-05/0.1238, allocations: 33.7 kB / 428.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.1238, allocations: 8 kB / 428.5 MB, free: 2.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000245/0.1241, allocations: 72.81 kB / 428.6 MB, free: 2.035 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002144/0.1243, allocations: 47.91 kB / 428.6 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000532/0.1248, allocations: 0.6109 MB / 429.3 MB, free: 1.352 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002698/0.1251, allocations: 36.06 kB / 429.3 MB, free: 1.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.752e-05/0.1251, allocations: 16.03 kB / 429.3 MB, free: 1.301 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 (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.0001488/0.1253, allocations: 141.8 kB / 429.4 MB, free: 1.152 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.799e-05/0.1253, allocations: 19.86 kB / 429.5 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.139e-05/0.1254, allocations: 37.73 kB / 429.5 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.1254, allocations: 4 kB / 429.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1254, allocations: 0 / 429.5 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1254, allocations: 8 kB / 429.5 MB, free: 1.082 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00115/0.1265, allocations: 0.6712 MB / 430.2 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.1265, allocations: 0 / 430.2 MB, free: 360 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002276/0.1268, allocations: 43.97 kB / 430.2 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001742/0.1269, allocations: 72.83 kB / 430.3 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.567e-05/0.127, allocations: 11.98 kB / 430.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000499/0.1275, allocations: 0.5992 MB / 430.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.1275, allocations: 0 / 430.9 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001023/0.1285, allocations: 0.5208 MB / 431.4 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000115/0.1286, allocations: 113 kB / 431.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.1287, allocations: 8 kB / 431.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.1289, allocations: 31.95 kB / 431.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.426e-05/0.129, allocations: 35.95 kB / 431.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.757e-05/0.129, allocations: 4 kB / 431.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.1292, allocations: 147.4 kB / 431.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1292, allocations: 0 / 431.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003582/0.1295, allocations: 71.94 kB / 431.8 MB, free: 14.63 MB / 366.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.0002123/0.1297, allocations: 119.2 kB / 431.9 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007759/0.1305, allocations: 311.2 kB / 432.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1305, allocations: 0 / 432.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003735/0.1309, allocations: 139.7 kB / 432.4 MB, free: 14.05 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004129/0.1313, allocations: 54.09 kB / 432.4 MB, free: 14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.1327, allocations: 0.6796 MB / 433.1 MB, free: 13.29 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003779/0.1331, allocations: 0.7402 MB / 433.9 MB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.442e-05/0.1331, allocations: 23.44 kB / 433.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1331, allocations: 4 kB / 433.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of Templates: time 0.006578/0.1397, allocations: 3.837 MB / 437.7 MB, free: 8.668 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 8.267715130932629]