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.000806/0.0008063, allocations: 94.67 kB / 18.01 MB, free: 5.73 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009718/0.0009718, allocations: 204.1 kB / 18.94 MB, free: 4.844 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.388/1.388, allocations: 227.7 MB / 247.5 MB, free: 11.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000233/0.000233, allocations: 8 kB / 308.4 MB, free: 0.8281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09812/0.09837, allocations: 51.52 MB / 359.9 MB, free: 13.31 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002729/0.1011, allocations: 1.975 MB / 361.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001474/0.1026, allocations: 0.8376 MB / 362.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001026/0.1028, allocations: 8 kB / 362.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.103, allocations: 43.75 kB / 362.8 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002437/0.1033, allocations: 91.41 kB / 362.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002114/0.1035, allocations: 75.91 kB / 362.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002996/0.1038, allocations: 279.4 kB / 363.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.104, allocations: 56.25 kB / 363.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002346/0.1042, allocations: 119.5 kB / 363.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001901/0.1044, allocations: 123.5 kB / 363.5 MB, free: 9.691 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.446e-05/0.1045, allocations: 12 kB / 363.5 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.1046, allocations: 71.95 kB / 363.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.676e-05/0.1047, allocations: 35.84 kB / 363.6 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.1048, allocations: 137.1 kB / 363.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002756/0.1051, allocations: 231.7 kB / 364 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1051, allocations: 0 / 364 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.1052, allocations: 4 kB / 364 MB, free: 9.203 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.551e-06/0.1052, allocations: 0 / 364 MB, free: 9.203 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.0009822/0.1062, allocations: 0.5511 MB / 364.5 MB, free: 8.598 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.953e-05/0.1062, allocations: 8.031 kB / 364.5 MB, free: 8.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001863/0.1064, allocations: 36.64 kB / 364.6 MB, free: 8.555 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002945/0.1067, allocations: 257.5 kB / 364.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.661e-05/0.1067, allocations: 16.31 kB / 364.8 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.223e-05/0.1068, allocations: 20.38 kB / 364.9 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004841/0.1073, allocations: 243.4 kB / 365.1 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1073, allocations: 3.906 kB / 365.1 MB, free: 7.973 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.1073, allocations: 12 kB / 365.1 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.1074, allocations: 4 kB / 365.1 MB, free: 7.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/0.1079, allocations: 199.6 kB / 365.3 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009748/0.1089, allocations: 0.6564 MB / 366 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005783/0.1094, allocations: 218.5 kB / 366.2 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002524/0.1097, allocations: 108.8 kB / 366.3 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.747e-05/0.1097, allocations: 4 kB / 366.3 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000406/0.1102, allocations: 176.3 kB / 366.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.1102, allocations: 0 / 366.5 MB, free: 6.531 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002544/0.1127, allocations: 1.219 MB / 367.7 MB, free: 5.203 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.1128, allocations: 63.41 kB / 367.7 MB, free: 5.129 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002103/0.113, allocations: 199.2 kB / 367.9 MB, free: 4.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.995e-05/0.113, allocations: 33.7 kB / 368 MB, free: 4.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.362e-05/0.1131, allocations: 132.3 kB / 368.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.259e-05/0.1132, allocations: 94.73 kB / 368.2 MB, free: 4.656 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.962e-05/0.1133, allocations: 33.7 kB / 368.2 MB, free: 4.617 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001335/0.1134, allocations: 334.8 kB / 368.6 MB, free: 4.281 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.1137, allocations: 107.9 kB / 368.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002943/0.114, allocations: 152.3 kB / 368.8 MB, free: 4.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005097/0.1145, allocations: 262 kB / 369.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.1145, allocations: 3.938 kB / 369.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008038/0.1153, allocations: 389.7 kB / 369.5 MB, free: 3.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/0.1154, allocations: 40.2 kB / 369.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.323e-06/0.1154, allocations: 0 / 369.5 MB, free: 3.301 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/0.1156, allocations: 64.7 kB / 369.6 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.1158, allocations: 43.97 kB / 369.6 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001728/0.1176, allocations: 1.639 MB / 371.2 MB, free: 1.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.1178, allocations: 47.97 kB / 371.3 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.235e-05/0.1179, allocations: 11.94 kB / 371.3 MB, free: 1.355 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.0001622/0.118, allocations: 145.7 kB / 371.4 MB, free: 1.203 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.61e-05/0.1181, allocations: 19.72 kB / 371.5 MB, free: 1.184 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.081e-05/0.1181, allocations: 34.56 kB / 371.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1182, allocations: 0 / 371.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.685e-06/0.1182, allocations: 0 / 371.5 MB, free: 1.148 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.1182, allocations: 3.984 kB / 371.5 MB, free: 1.145 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.1193, allocations: 0.7117 MB / 372.2 MB, free: 384 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1193, allocations: 4 kB / 372.2 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.1195, allocations: 40.02 kB / 372.2 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001491/0.1197, allocations: 64.75 kB / 372.3 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.516e-05/0.1197, allocations: 0 / 372.3 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1695/0.2892, allocations: 1.544 MB / 373.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.2893, allocations: 0.5938 kB / 373.9 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.2905, allocations: 0.5236 MB / 374.4 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001289/0.2906, allocations: 120.7 kB / 374.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/0.2907, allocations: 9.75 kB / 374.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.291, allocations: 42.67 kB / 374.5 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001905/0.2912, allocations: 70.23 kB / 374.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.348e-05/0.2912, allocations: 6.578 kB / 374.6 MB, free: 17.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001497/0.2913, allocations: 144.8 kB / 374.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2913, allocations: 0 / 374.8 MB, free: 17.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004691/0.2918, allocations: 73.08 kB / 374.8 MB, free: 17.75 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.0008789/0.2927, allocations: 378.7 kB / 375.2 MB, free: 17.61 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.2937, allocations: 456.8 kB / 375.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.2937, allocations: 3.969 kB / 375.7 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004699/0.2942, allocations: 276 kB / 375.9 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004407/0.2946, allocations: 44.42 kB / 376 MB, free: 17.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.2961, allocations: 0.8432 MB / 376.8 MB, free: 16.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.2963, allocations: 0.7498 MB / 377.6 MB, free: 16.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.979e-05/0.2964, allocations: 24.59 kB / 377.6 MB, free: 16.12 MB / 302.1 MB Notification: Performance of SimCode: time 1.243e-06/0.2964, allocations: 0 / 377.6 MB, free: 16.12 MB / 302.1 MB Notification: Performance of Templates: time 0.009147/0.3056, allocations: 4.322 MB / 381.9 MB, free: 15.75 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches