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.001466/0.001466, allocations: 104 kB / 17.16 MB, free: 6.32 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.001398/0.001398, allocations: 190 kB / 18.07 MB, free: 5.414 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.484/1.484, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001256/0.001256, allocations: 47.94 kB / 280 MB, free: 3.574 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1028, allocations: 46.64 MB / 326.6 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003169/0.106, allocations: 2.188 MB / 328.8 MB, free: 2.66 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1072, allocations: 0.7528 MB / 329.5 MB, free: 1.898 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.699e-05/0.1073, allocations: 7.938 kB / 329.6 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001795/0.1075, allocations: 19.86 kB / 329.6 MB, free: 1.871 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001461/0.1076, allocations: 63.47 kB / 329.6 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002679/0.1079, allocations: 83.91 kB / 329.7 MB, free: 1.727 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002513/0.1082, allocations: 275.4 kB / 330 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1083, allocations: 48.38 kB / 330 MB, free: 1.41 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001543/0.1085, allocations: 103.6 kB / 330.1 MB, free: 1.309 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.1087, allocations: 115.5 kB / 330.2 MB, free: 1.195 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.1087, allocations: 12 kB / 330.3 MB, free: 1.184 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001177/0.1088, allocations: 67.89 kB / 330.3 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.1089, allocations: 43.83 kB / 330.4 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001138/0.109, allocations: 103.4 kB / 330.5 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002707/0.1093, allocations: 263.4 kB / 330.7 MB, free: 0.7148 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.1093, allocations: 4 kB / 330.7 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1093, allocations: 0 / 330.7 MB, free: 0.7109 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.1093, allocations: 0 / 330.7 MB, free: 0.7109 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.0009647/0.1103, allocations: 0.5627 MB / 331.3 MB, free: 96 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.1103, allocations: 15.95 kB / 331.3 MB, free: 80 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.06e-05/0.1104, allocations: 24.66 kB / 331.3 MB, free: 56 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002499/0.1107, allocations: 228 kB / 331.6 MB, free: 15.79 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.1107, allocations: 20.31 kB / 331.6 MB, free: 15.77 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.676e-05/0.1107, allocations: 20.36 kB / 331.6 MB, free: 15.75 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.1112, allocations: 235.5 kB / 331.8 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1112, allocations: 4 kB / 331.8 MB, free: 15.51 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.528e-05/0.1113, allocations: 8 kB / 331.8 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-06/0.1113, allocations: 7.938 kB / 331.8 MB, free: 15.49 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004666/0.1118, allocations: 199.8 kB / 332 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009742/0.1127, allocations: 0.6758 MB / 332.7 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005423/0.1133, allocations: 206.3 kB / 332.9 MB, free: 14.36 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002202/0.1135, allocations: 96.67 kB / 333 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.695e-05/0.1136, allocations: 4 kB / 333 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003606/0.1139, allocations: 167.5 kB / 333.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.1139, allocations: 0 / 333.2 MB, free: 14.08 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002292/0.1162, allocations: 1.149 MB / 334.3 MB, free: 12.82 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.599e-05/0.1163, allocations: 59.41 kB / 334.4 MB, free: 12.75 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001656/0.1165, allocations: 194.9 kB / 334.6 MB, free: 12.55 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.1165, allocations: 29.7 kB / 334.6 MB, free: 12.51 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.898e-05/0.1166, allocations: 136.3 kB / 334.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.314e-05/0.1166, allocations: 86.73 kB / 334.8 MB, free: 12.29 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.587e-05/0.1167, allocations: 61.69 kB / 334.9 MB, free: 12.22 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.1169, allocations: 330.8 kB / 335.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000257/0.1171, allocations: 116.2 kB / 335.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002662/0.1174, allocations: 140.3 kB / 335.5 MB, free: 11.63 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004764/0.1179, allocations: 246.7 kB / 335.7 MB, free: 11.37 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1179, allocations: 0 / 335.7 MB, free: 11.37 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007841/0.1187, allocations: 400.9 kB / 336.1 MB, free: 10.96 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.444e-05/0.1187, allocations: 33.69 kB / 336.1 MB, free: 10.93 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.1187, allocations: 3.938 kB / 336.1 MB, free: 10.92 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002319/0.119, allocations: 76.88 kB / 336.2 MB, free: 10.84 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002065/0.1192, allocations: 51.91 kB / 336.3 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004724/0.1197, allocations: 0.6148 MB / 336.9 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.1199, allocations: 32.03 kB / 336.9 MB, free: 10.12 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.596e-05/0.12, allocations: 12 kB / 336.9 MB, free: 10.11 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 (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.0001418/0.1201, allocations: 150.1 kB / 337.1 MB, free: 9.953 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.598e-05/0.1202, allocations: 23.72 kB / 337.1 MB, free: 9.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.968e-05/0.1202, allocations: 25.88 kB / 337.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1202, allocations: 0 / 337.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1202, allocations: 0 / 337.1 MB, free: 9.902 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.1203, allocations: 7.984 kB / 337.1 MB, free: 9.895 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.1213, allocations: 0.6785 MB / 337.8 MB, free: 9.156 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1213, allocations: 3.984 kB / 337.8 MB, free: 9.152 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.1215, allocations: 31.98 kB / 337.8 MB, free: 9.121 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001598/0.1217, allocations: 76.75 kB / 337.9 MB, free: 9.043 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/0.1217, allocations: 7.984 kB / 337.9 MB, free: 9.035 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004447/0.1222, allocations: 0.607 MB / 338.5 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1222, allocations: 0 / 338.5 MB, free: 8.402 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000943/0.1232, allocations: 0.5076 MB / 339 MB, free: 7.875 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.953e-05/0.1233, allocations: 108.9 kB / 339.1 MB, free: 7.75 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.531e-05/0.1233, allocations: 12 kB / 339.1 MB, free: 7.738 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000237/0.1236, allocations: 27.97 kB / 339.2 MB, free: 7.711 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.1237, allocations: 35.94 kB / 339.2 MB, free: 7.676 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.619e-05/0.1237, allocations: 4 kB / 339.2 MB, free: 7.672 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.1238, allocations: 139.5 kB / 339.3 MB, free: 7.535 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1238, allocations: 3.938 kB / 339.3 MB, free: 7.531 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000329/0.1241, allocations: 72 kB / 339.4 MB, free: 7.461 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 (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.000187/0.1243, allocations: 123.2 kB / 339.5 MB, free: 7.332 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007294/0.1251, allocations: 324.7 kB / 339.9 MB, free: 7.004 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1251, allocations: 0 / 339.9 MB, free: 7.004 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003334/0.1254, allocations: 143.7 kB / 340 MB, free: 6.863 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003982/0.1258, allocations: 51.78 kB / 340 MB, free: 6.812 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.1272, allocations: 0.741 MB / 340.8 MB, free: 6.047 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.1275, allocations: 0.7402 MB / 341.5 MB, free: 5.281 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.873e-05/0.1276, allocations: 21.95 kB / 341.6 MB, free: 5.258 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.214e-05/0.1277, allocations: 15.44 kB / 341.6 MB, free: 5.242 MB / 286.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1277, allocations: 0 / 341.6 MB, free: 5.242 MB / 286.1 MB Notification: Performance of Templates: time 0.006946/0.1347, allocations: 3.459 MB / 345 MB, free: 1.785 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