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.001246/0.001246, allocations: 105.6 kB / 17.58 MB, free: 5.422 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.001514/0.001514, allocations: 191.9 kB / 18.5 MB, free: 4.516 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.443/1.443, allocations: 205.1 MB / 224.4 MB, free: 12.28 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.001333/0.001333, allocations: 55.92 kB / 280.7 MB, free: 3.172 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09671/0.09806, allocations: 46.62 MB / 327.3 MB, free: 4.477 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003897/0.102, allocations: 2.162 MB / 329.4 MB, free: 2.289 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.1034, allocations: 0.741 MB / 330.2 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.1036, allocations: 0 / 330.2 MB, free: 1.539 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001916/0.1039, allocations: 31.72 kB / 330.2 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002344/0.1041, allocations: 75.41 kB / 330.3 MB, free: 1.434 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003663/0.1045, allocations: 107.7 kB / 330.4 MB, free: 1.328 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000308/0.1048, allocations: 283.4 kB / 330.7 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001603/0.105, allocations: 52.36 kB / 330.7 MB, free: 1 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.1052, allocations: 119.5 kB / 330.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.1054, allocations: 123.5 kB / 331 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.434e-05/0.1055, allocations: 28 kB / 331 MB, free: 0.7344 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.1056, allocations: 63.95 kB / 331 MB, free: 0.6719 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.36e-05/0.1057, allocations: 51.78 kB / 331.1 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001276/0.1058, allocations: 115.4 kB / 331.2 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003507/0.1062, allocations: 271.4 kB / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.1062, allocations: 0 / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.1062, allocations: 0 / 331.5 MB, free: 248 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.333e-05/0.1063, allocations: 4 kB / 331.5 MB, free: 244 kB / 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.001113/0.1074, allocations: 0.5665 MB / 332 MB, free: 15.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.599e-05/0.1074, allocations: 11.89 kB / 332.1 MB, free: 15.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.985e-05/0.1075, allocations: 24.66 kB / 332.1 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.1078, allocations: 236 kB / 332.3 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/0.1078, allocations: 16.38 kB / 332.3 MB, free: 15.3 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.959e-05/0.1079, allocations: 20.38 kB / 332.3 MB, free: 15.28 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000515/0.1084, allocations: 235.5 kB / 332.6 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.057e-05/0.1084, allocations: 3.984 kB / 332.6 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.103e-05/0.1085, allocations: 8 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.1085, allocations: 7.938 kB / 332.6 MB, free: 15.02 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005064/0.109, allocations: 191.8 kB / 332.8 MB, free: 14.83 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.1102, allocations: 0.672 MB / 333.5 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006172/0.1108, allocations: 202.3 kB / 333.7 MB, free: 13.89 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000237/0.111, allocations: 108.7 kB / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.1111, allocations: 0 / 333.8 MB, free: 13.79 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003994/0.1115, allocations: 163.6 kB / 333.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.1115, allocations: 0 / 333.9 MB, free: 13.61 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002672/0.1142, allocations: 1.16 MB / 335.1 MB, free: 12.34 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.32e-05/0.1142, allocations: 55.41 kB / 335.1 MB, free: 12.27 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002179/0.1145, allocations: 198.8 kB / 335.3 MB, free: 12.07 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.124e-05/0.1145, allocations: 33.7 kB / 335.4 MB, free: 12.03 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.1146, allocations: 128.3 kB / 335.5 MB, free: 11.9 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.49e-05/0.1147, allocations: 94.73 kB / 335.6 MB, free: 11.81 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/0.1148, allocations: 61.69 kB / 335.6 MB, free: 11.74 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001509/0.115, allocations: 334.8 kB / 336 MB, free: 11.41 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002806/0.1153, allocations: 104.3 kB / 336.1 MB, free: 11.3 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.1156, allocations: 152 kB / 336.2 MB, free: 11.14 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004805/0.1161, allocations: 238.8 kB / 336.4 MB, free: 10.89 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1161, allocations: 4 kB / 336.5 MB, free: 10.89 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008523/0.1169, allocations: 408.9 kB / 336.8 MB, free: 10.48 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.508e-05/0.117, allocations: 33.7 kB / 336.9 MB, free: 10.44 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.117, allocations: 3.938 kB / 336.9 MB, free: 10.43 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00023/0.1172, allocations: 76.75 kB / 337 MB, free: 10.36 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.1174, allocations: 52.03 kB / 337 MB, free: 10.3 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005064/0.118, allocations: 0.607 MB / 337.6 MB, free: 9.672 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002718/0.1182, allocations: 39.98 kB / 337.7 MB, free: 9.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.439e-05/0.1183, allocations: 8 kB / 337.7 MB, free: 9.625 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.0001523/0.1184, allocations: 146.1 kB / 337.8 MB, free: 9.473 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.694e-05/0.1185, allocations: 19.72 kB / 337.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.457e-05/0.1186, allocations: 29.86 kB / 337.9 MB, free: 9.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1186, allocations: 4 kB / 337.9 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.1186, allocations: 0 / 337.9 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.351e-06/0.1186, allocations: 0 / 337.9 MB, free: 9.418 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001087/0.1197, allocations: 0.6747 MB / 338.5 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1197, allocations: 0 / 338.5 MB, free: 8.684 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002117/0.1199, allocations: 47.91 kB / 338.6 MB, free: 8.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001586/0.1201, allocations: 64.86 kB / 338.6 MB, free: 8.57 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.768e-05/0.1201, allocations: 11.98 kB / 338.7 MB, free: 8.559 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004607/0.1206, allocations: 0.6147 MB / 339.3 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.1206, allocations: 3.984 kB / 339.3 MB, free: 7.914 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009864/0.1216, allocations: 0.5075 MB / 339.8 MB, free: 7.387 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.881e-05/0.1217, allocations: 108.9 kB / 339.9 MB, free: 7.262 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.122e-05/0.1218, allocations: 4 kB / 339.9 MB, free: 7.258 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002433/0.122, allocations: 31.95 kB / 339.9 MB, free: 7.227 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.835e-05/0.1221, allocations: 35.95 kB / 340 MB, free: 7.191 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.544e-05/0.1222, allocations: 4 kB / 340 MB, free: 7.188 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001142/0.1223, allocations: 135.2 kB / 340.1 MB, free: 7.055 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1223, allocations: 4 kB / 340.1 MB, free: 7.051 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003656/0.1227, allocations: 68 kB / 340.2 MB, free: 6.984 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.0002126/0.1229, allocations: 127.1 kB / 340.3 MB, free: 6.852 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007982/0.1237, allocations: 336.8 kB / 340.6 MB, free: 6.512 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1237, allocations: 128 / 340.6 MB, free: 6.512 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003403/0.124, allocations: 143.8 kB / 340.8 MB, free: 6.371 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004229/0.1245, allocations: 45.11 kB / 340.8 MB, free: 6.328 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.1259, allocations: 0.6593 MB / 341.5 MB, free: 5.645 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.1262, allocations: 0.7439 MB / 342.2 MB, free: 4.875 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.1263, allocations: 25.92 kB / 342.2 MB, free: 4.848 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.486e-05/0.1264, allocations: 23.44 kB / 342.3 MB, free: 4.824 MB / 286.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1264, allocations: 0 / 342.3 MB, free: 4.824 MB / 286.1 MB Notification: Performance of Templates: time 0.007928/0.1343, allocations: 3.785 MB / 346 MB, free: 1.039 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches