Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001085/0.001085, allocations: 104.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001497/0.001497, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.346/1.346, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 62.88 kB / 306.3 MB, free: 1.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09558/0.0967, allocations: 50.54 MB / 356.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003535/0.1003, allocations: 2.329 MB / 359.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.1016, allocations: 0.8647 MB / 360 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.362e-05/0.1017, allocations: 0 / 360 MB, free: 11.29 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002359/0.1019, allocations: 43.77 kB / 360 MB, free: 11.24 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002302/0.1022, allocations: 95.44 kB / 360.1 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001965/0.1024, allocations: 75.92 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002535/0.1026, allocations: 275.4 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.1028, allocations: 52.27 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.103, allocations: 123.5 kB / 360.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001801/0.1032, allocations: 127.5 kB / 360.8 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.015e-05/0.1032, allocations: 16 kB / 360.8 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000142/0.1034, allocations: 67.91 kB / 360.8 MB, free: 10.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.803e-05/0.1035, allocations: 47.83 kB / 360.9 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.1036, allocations: 111.4 kB / 361 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.1039, allocations: 303.3 kB / 361.3 MB, free: 9.969 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1039, allocations: 3.938 kB / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1039, allocations: 0 / 361.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1039, allocations: 0 / 361.3 MB, free: 9.965 MB / 302.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.0009678/0.1049, allocations: 0.5861 MB / 361.9 MB, free: 9.324 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.099e-05/0.1049, allocations: 12.03 kB / 361.9 MB, free: 9.312 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001767/0.1051, allocations: 32.64 kB / 361.9 MB, free: 9.281 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.1054, allocations: 249.5 kB / 362.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.28e-05/0.1054, allocations: 16.38 kB / 362.2 MB, free: 8.98 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.1055, allocations: 28.36 kB / 362.2 MB, free: 8.953 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004801/0.106, allocations: 231.5 kB / 362.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.106, allocations: 0 / 362.4 MB, free: 8.715 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.633e-05/0.106, allocations: 8 kB / 362.4 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.905e-06/0.1061, allocations: 4 kB / 362.5 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005085/0.1066, allocations: 179.6 kB / 362.6 MB, free: 8.527 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001011/0.1076, allocations: 0.6526 MB / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005879/0.1082, allocations: 202.4 kB / 363.5 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002464/0.1085, allocations: 108.7 kB / 363.6 MB, free: 7.504 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.639e-05/0.1085, allocations: 4 kB / 363.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003987/0.1089, allocations: 164.3 kB / 363.7 MB, free: 7.328 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.1089, allocations: 0 / 363.7 MB, free: 7.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002452/0.1114, allocations: 1.161 MB / 364.9 MB, free: 6.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.398e-05/0.1114, allocations: 59.34 kB / 365 MB, free: 5.988 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002067/0.1116, allocations: 203.1 kB / 365.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.015e-05/0.1117, allocations: 37.69 kB / 365.2 MB, free: 5.734 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.158e-05/0.1118, allocations: 128.4 kB / 365.3 MB, free: 5.605 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.168e-05/0.1118, allocations: 90.73 kB / 365.4 MB, free: 5.516 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.647e-05/0.1119, allocations: 61.69 kB / 365.5 MB, free: 5.449 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1121, allocations: 334.8 kB / 365.8 MB, free: 5.113 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002686/0.1124, allocations: 95.94 kB / 365.9 MB, free: 5.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.1127, allocations: 148.3 kB / 366 MB, free: 4.863 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005035/0.1132, allocations: 234.1 kB / 366.3 MB, free: 4.617 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.1132, allocations: 4 kB / 366.3 MB, free: 4.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000789/0.114, allocations: 377.6 kB / 366.6 MB, free: 4.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.057e-05/0.114, allocations: 33.7 kB / 366.7 MB, free: 4.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.114, allocations: 4 kB / 366.7 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002156/0.1143, allocations: 60.7 kB / 366.7 MB, free: 4.125 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002035/0.1145, allocations: 48.03 kB / 366.8 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.1162, allocations: 1.627 MB / 368.4 MB, free: 2.312 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/0.1164, allocations: 39.92 kB / 368.5 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/0.1165, allocations: 8 kB / 368.5 MB, free: 2.266 MB / 302.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.0001408/0.1166, allocations: 145.7 kB / 368.6 MB, free: 2.113 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.1167, allocations: 27.8 kB / 368.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.828e-05/0.1167, allocations: 26.56 kB / 368.7 MB, free: 2.059 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.556e-06/0.1167, allocations: 4.062 kB / 368.7 MB, free: 2.055 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.1167, allocations: 4 kB / 368.7 MB, free: 2.051 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.992e-06/0.1168, allocations: 3.984 kB / 368.7 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001111/0.1179, allocations: 0.6981 MB / 369.4 MB, free: 1.289 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.1179, allocations: 4 kB / 369.4 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.1181, allocations: 35.97 kB / 369.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001647/0.1183, allocations: 52.83 kB / 369.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.195e-05/0.1183, allocations: 4 kB / 369.5 MB, free: 1.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1499/0.2683, allocations: 1.525 MB / 371 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2683, allocations: 0.8594 kB / 371 MB, free: 19.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.2694, allocations: 0.5076 MB / 371.5 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.259e-05/0.2695, allocations: 112.5 kB / 371.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.989e-05/0.2695, allocations: 14.72 kB / 371.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002476/0.2698, allocations: 30.61 kB / 371.6 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.2699, allocations: 70.92 kB / 371.7 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.27, allocations: 7.031 kB / 371.7 MB, free: 19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001218/0.2701, allocations: 143 kB / 371.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2701, allocations: 0.7188 kB / 371.9 MB, free: 18.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004491/0.2706, allocations: 78.89 kB / 371.9 MB, free: 18.93 MB / 302.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.0007705/0.2713, allocations: 372 kB / 372.3 MB, free: 18.8 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000815/0.2722, allocations: 442.8 kB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2722, allocations: 3.938 kB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004117/0.2726, allocations: 265.7 kB / 373 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.273, allocations: 39.14 kB / 373 MB, free: 18.51 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/0.2742, allocations: 0.7479 MB / 373.8 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001765/0.2744, allocations: 0.7475 MB / 374.5 MB, free: 17.4 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001176/0.2745, allocations: 27.77 kB / 374.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.764e-05/0.2746, allocations: 22.73 kB / 374.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2746, allocations: 0 / 374.6 MB, free: 17.39 MB / 302.1 MB Notification: Performance of Templates: time 0.008264/0.2829, allocations: 4.099 MB / 378.7 MB, free: 17.11 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches