Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 97.12 kB / 16.95 MB, free: 6.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 179.3 kB / 17.84 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.4 MB / 224 MB, free: 13.06 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004261/0.0004262, allocations: 8 kB / 280.8 MB, free: 3.727 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08359/0.08403, allocations: 47.59 MB / 328.4 MB, free: 4.066 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002222/0.08629, allocations: 1.803 MB / 330.2 MB, free: 2.246 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.08746, allocations: 0.6987 MB / 330.9 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.421e-05/0.08757, allocations: 7.938 kB / 330.9 MB, free: 1.531 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.08772, allocations: 19.84 kB / 330.9 MB, free: 1.512 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001455/0.08787, allocations: 67.53 kB / 331 MB, free: 1.445 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002704/0.08815, allocations: 71.91 kB / 331 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002506/0.08841, allocations: 247.4 kB / 331.3 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001249/0.08855, allocations: 48.55 kB / 331.3 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.08871, allocations: 99.61 kB / 331.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001629/0.08889, allocations: 111.5 kB / 331.5 MB, free: 0.8789 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.188e-05/0.08893, allocations: 12 kB / 331.5 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001238/0.08906, allocations: 55.94 kB / 331.6 MB, free: 0.8125 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.313e-05/0.08913, allocations: 43.83 kB / 331.6 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.695e-05/0.08921, allocations: 61.58 kB / 331.7 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002199/0.08943, allocations: 191.8 kB / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.08944, allocations: 0 / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.08945, allocations: 0 / 331.9 MB, free: 0.5156 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.08946, allocations: 0 / 331.9 MB, free: 0.5156 MB / 270.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.0009584/0.09043, allocations: 0.5392 MB / 332.4 MB, free: 15.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.226e-05/0.09047, allocations: 8.031 kB / 332.4 MB, free: 15.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.835e-05/0.09053, allocations: 23.72 kB / 332.4 MB, free: 15.89 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.09079, allocations: 230.6 kB / 332.7 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.678e-05/0.09084, allocations: 23.98 kB / 332.7 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/0.0909, allocations: 16 kB / 332.7 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004868/0.09139, allocations: 239.1 kB / 332.9 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.09142, allocations: 0 / 332.9 MB, free: 15.34 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.729e-05/0.09145, allocations: 12 kB / 333 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.09147, allocations: 8 kB / 333 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.09195, allocations: 199.8 kB / 333.2 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001039/0.093, allocations: 0.6952 MB / 333.9 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005645/0.09358, allocations: 210.5 kB / 334.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002277/0.09382, allocations: 104.8 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.443e-05/0.09385, allocations: 4 kB / 334.2 MB, free: 14.05 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004311/0.09429, allocations: 179.4 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 4.568e-06/0.09431, allocations: 7.984 kB / 334.3 MB, free: 13.86 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002456/0.09677, allocations: 1.203 MB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.167e-05/0.09683, allocations: 59.34 kB / 335.6 MB, free: 12.47 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001926/0.09703, allocations: 194.8 kB / 335.8 MB, free: 12.27 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/0.09706, allocations: 33.7 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.582e-05/0.09716, allocations: 136.3 kB / 336 MB, free: 12.09 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.255e-05/0.09724, allocations: 90.83 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.587e-05/0.09727, allocations: 4 kB / 336.1 MB, free: 12 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.0974, allocations: 334.8 kB / 336.4 MB, free: 11.66 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002755/0.09768, allocations: 112.3 kB / 336.5 MB, free: 11.55 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003069/0.098, allocations: 152.3 kB / 336.6 MB, free: 11.39 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002685/0.09828, allocations: 139.1 kB / 336.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.09829, allocations: 0 / 336.8 MB, free: 11.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008395/0.09913, allocations: 417.2 kB / 337.2 MB, free: 10.83 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.143e-05/0.09919, allocations: 33.7 kB / 337.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.576e-06/0.0992, allocations: 0 / 337.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002637/0.09947, allocations: 68.81 kB / 337.3 MB, free: 10.72 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002183/0.0997, allocations: 55.91 kB / 337.3 MB, free: 10.66 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005433/0.1003, allocations: 0.6226 MB / 338 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002452/0.1005, allocations: 40 kB / 338 MB, free: 9.977 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.744e-05/0.1005, allocations: 15.98 kB / 338 MB, free: 9.961 MB / 286.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 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001379/0.1007, allocations: 146.1 kB / 338.2 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.041e-05/0.1007, allocations: 19.81 kB / 338.2 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.835e-05/0.1008, allocations: 25.88 kB / 338.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.1008, allocations: 0 / 338.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.1008, allocations: 0 / 338.2 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.032e-06/0.1008, allocations: 3.984 kB / 338.2 MB, free: 9.758 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.1019, allocations: 0.6903 MB / 338.9 MB, free: 9.008 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.911e-06/0.1019, allocations: 4 kB / 338.9 MB, free: 9.004 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002074/0.1022, allocations: 55.84 kB / 339 MB, free: 8.949 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000159/0.1023, allocations: 72.84 kB / 339 MB, free: 8.875 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.929e-05/0.1024, allocations: 4 kB / 339 MB, free: 8.871 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004535/0.1028, allocations: 0.6071 MB / 339.6 MB, free: 8.238 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1028, allocations: 4.062 kB / 339.6 MB, free: 8.234 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009933/0.1038, allocations: 0.5193 MB / 340.2 MB, free: 7.695 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.762e-05/0.1039, allocations: 108.9 kB / 340.3 MB, free: 7.57 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.13e-05/0.104, allocations: 7.953 kB / 340.3 MB, free: 7.562 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002298/0.1042, allocations: 43.97 kB / 340.3 MB, free: 7.52 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.156e-05/0.1043, allocations: 35.88 kB / 340.4 MB, free: 7.484 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-05/0.1043, allocations: 11.98 kB / 340.4 MB, free: 7.473 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001198/0.1045, allocations: 139.2 kB / 340.5 MB, free: 7.336 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1045, allocations: 7.938 kB / 340.5 MB, free: 7.328 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000355/0.1048, allocations: 68 kB / 340.6 MB, free: 7.262 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001996/0.105, allocations: 115.2 kB / 340.7 MB, free: 7.141 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007445/0.1058, allocations: 347.6 kB / 341 MB, free: 6.789 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.706e-06/0.1058, allocations: 4.125 kB / 341 MB, free: 6.785 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003617/0.1062, allocations: 151.8 kB / 341.2 MB, free: 6.637 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000394/0.1066, allocations: 36.12 kB / 341.2 MB, free: 6.602 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001418/0.108, allocations: 0.7973 MB / 342 MB, free: 5.777 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.1084, allocations: 0.7479 MB / 342.8 MB, free: 5.004 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.1085, allocations: 21.95 kB / 342.8 MB, free: 4.984 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.435e-05/0.1086, allocations: 19.44 kB / 342.8 MB, free: 4.965 MB / 286.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1086, allocations: 0 / 342.8 MB, free: 4.965 MB / 286.1 MB Notification: Performance of Templates: time 0.007009/0.1156, allocations: 3.312 MB / 346.1 MB, free: 1.656 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches