Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001167/0.001167, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 60.09 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1115, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003661/0.1152, allocations: 2.315 MB / 361.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.1168, allocations: 0.8684 MB / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001395/0.117, allocations: 0 / 362.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.1173, allocations: 55.52 kB / 362.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002736/0.1176, allocations: 103.2 kB / 362.2 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002153/0.1178, allocations: 79.83 kB / 362.3 MB, free: 9.906 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000305/0.1181, allocations: 287.3 kB / 362.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.1183, allocations: 68.3 kB / 362.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.1185, allocations: 123.6 kB / 362.8 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.1187, allocations: 127.4 kB / 362.9 MB, free: 9.309 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.778e-05/0.1188, allocations: 20 kB / 362.9 MB, free: 9.289 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001551/0.119, allocations: 83.95 kB / 363 MB, free: 9.207 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.44e-05/0.119, allocations: 51.84 kB / 363.1 MB, free: 9.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.1192, allocations: 115.4 kB / 363.2 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003622/0.1195, allocations: 303 kB / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.1196, allocations: 4 kB / 363.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1196, allocations: 0 / 363.5 MB, free: 8.742 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.154e-05/0.1196, allocations: 0 / 363.5 MB, free: 8.742 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008399/0.1204, allocations: 0.5418 MB / 364 MB, free: 8.148 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.66e-05/0.1205, allocations: 8.031 kB / 364 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001656/0.1206, allocations: 36.64 kB / 364.1 MB, free: 8.105 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003678/0.121, allocations: 251.8 kB / 364.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.358e-05/0.121, allocations: 16.75 kB / 364.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.83e-05/0.1211, allocations: 16.38 kB / 364.3 MB, free: 7.789 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003616/0.1215, allocations: 215 kB / 364.6 MB, free: 7.566 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.1215, allocations: 4 kB / 364.6 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.181e-05/0.1215, allocations: 4 kB / 364.6 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.754e-06/0.1215, allocations: 8 kB / 364.6 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003081/0.1218, allocations: 163 kB / 364.7 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/0.1229, allocations: 0.7662 MB / 365.5 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003591/0.1233, allocations: 146.7 kB / 365.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001388/0.1235, allocations: 76.77 kB / 365.7 MB, free: 6.328 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/0.1235, allocations: 7.984 kB / 365.7 MB, free: 6.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.098e-05/0.1235, allocations: 34.56 kB / 365.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.353e-06/0.1235, allocations: 0 / 365.8 MB, free: 6.277 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001788/0.1253, allocations: 0.9954 MB / 366.7 MB, free: 5.176 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.217e-05/0.1254, allocations: 55.41 kB / 366.8 MB, free: 5.109 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002163/0.1256, allocations: 218.8 kB / 367 MB, free: 4.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.1256, allocations: 29.7 kB / 367 MB, free: 4.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.261e-05/0.1257, allocations: 144.2 kB / 367.2 MB, free: 4.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.855e-05/0.1258, allocations: 71 kB / 367.3 MB, free: 4.637 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.724e-05/0.1259, allocations: 53.61 kB / 367.3 MB, free: 4.578 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.126, allocations: 330.8 kB / 367.6 MB, free: 4.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.1261, allocations: 67.97 kB / 367.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001617/0.1263, allocations: 111.4 kB / 367.8 MB, free: 4.059 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002668/0.1266, allocations: 169 kB / 368 MB, free: 3.883 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1266, allocations: 3.938 kB / 368 MB, free: 3.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004598/0.127, allocations: 274.1 kB / 368.2 MB, free: 3.602 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1271, allocations: 4 kB / 368.2 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.1271, allocations: 0 / 368.2 MB, free: 3.598 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/0.1273, allocations: 56.83 kB / 368.3 MB, free: 3.539 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001491/0.1274, allocations: 39.91 kB / 368.3 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00175/0.1292, allocations: 1.821 MB / 370.2 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001764/0.1294, allocations: 28.06 kB / 370.2 MB, free: 1.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.1294, allocations: 8 kB / 370.2 MB, free: 1.504 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * 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.0001381/0.1296, allocations: 137.8 kB / 370.3 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.383e-05/0.1296, allocations: 27.59 kB / 370.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.17e-05/0.1297, allocations: 25.86 kB / 370.4 MB, free: 1.312 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1297, allocations: 4 kB / 370.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.934e-06/0.1297, allocations: 0 / 370.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.1297, allocations: 4 kB / 370.4 MB, free: 1.305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008453/0.1306, allocations: 0.5988 MB / 371 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/0.1306, allocations: 64 / 371 MB, free: 0.6367 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001701/0.1308, allocations: 43.91 kB / 371 MB, free: 0.5938 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001492/0.1309, allocations: 60.92 kB / 371.1 MB, free: 0.5312 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.1309, allocations: 8 kB / 371.1 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1975/0.3284, allocations: 1.652 MB / 372.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3285, allocations: 2.141 kB / 372.8 MB, free: 18.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007129/0.3292, allocations: 423.6 kB / 373.2 MB, free: 18.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.3293, allocations: 116.3 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.138e-05/0.3294, allocations: 9.828 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/0.3296, allocations: 20.05 kB / 373.3 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001813/0.3298, allocations: 64.03 kB / 373.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.3298, allocations: 12.56 kB / 373.4 MB, free: 18.53 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001707/0.33, allocations: 159.6 kB / 373.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.33, allocations: 0 / 373.5 MB, free: 18.45 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004474/0.3304, allocations: 69.39 kB / 373.6 MB, free: 18.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0008477/0.3313, allocations: 358.5 kB / 374 MB, free: 18.32 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006661/0.332, allocations: 312.9 kB / 374.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.332, allocations: 1.688 kB / 374.3 MB, free: 18.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003102/0.3323, allocations: 234.9 kB / 374.5 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.3327, allocations: 54.75 kB / 374.5 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.3339, allocations: 0.6857 MB / 375.2 MB, free: 17.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001849/0.3341, allocations: 0.7449 MB / 376 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.867e-05/0.3342, allocations: 23.78 kB / 376 MB, free: 17.06 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.155e-05/0.3343, allocations: 21.84 kB / 376 MB, free: 17.05 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3343, allocations: 0 / 376 MB, free: 17.05 MB / 302.1 MB Notification: Performance of Templates: time 0.00899/0.3433, allocations: 3.916 MB / 379.9 MB, free: 16.78 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches