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.001255/0.001255, allocations: 112.2 kB / 17.28 MB, free: 6.199 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.001357/0.001357, allocations: 189.3 kB / 18.2 MB, free: 5.277 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.556/1.556, allocations: 205.1 MB / 224.1 MB, free: 12.36 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.001141/0.001141, allocations: 56.14 kB / 280.1 MB, free: 3.484 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09686/0.09801, allocations: 46.64 MB / 326.8 MB, free: 4.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003204/0.1013, allocations: 2.204 MB / 329 MB, free: 2.551 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.1025, allocations: 0.7333 MB / 329.7 MB, free: 1.809 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001149/0.1027, allocations: 7.938 kB / 329.7 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001957/0.1029, allocations: 19.84 kB / 329.7 MB, free: 1.781 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001976/0.1031, allocations: 59.55 kB / 329.8 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.1034, allocations: 95.91 kB / 329.9 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003373/0.1038, allocations: 283.4 kB / 330.2 MB, free: 1.352 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001566/0.104, allocations: 52.36 kB / 330.2 MB, free: 1.301 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001875/0.1041, allocations: 115.6 kB / 330.3 MB, free: 1.188 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002115/0.1044, allocations: 131.4 kB / 330.5 MB, free: 1.059 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.88e-05/0.1044, allocations: 20 kB / 330.5 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.1046, allocations: 71.89 kB / 330.6 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.316e-05/0.1047, allocations: 51.77 kB / 330.6 MB, free: 0.918 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001222/0.1048, allocations: 115.5 kB / 330.7 MB, free: 0.8047 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.1051, allocations: 279.4 kB / 331 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1052, allocations: 0 / 331 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1052, allocations: 0 / 331 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1052, allocations: 0 / 331 MB, free: 0.5312 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.001197/0.1064, allocations: 0.5626 MB / 331.6 MB, free: 15.91 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.1064, allocations: 11.89 kB / 331.6 MB, free: 15.9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.958e-05/0.1065, allocations: 28.66 kB / 331.6 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.1068, allocations: 239.9 kB / 331.8 MB, free: 15.6 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.067e-05/0.1068, allocations: 16.38 kB / 331.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.812e-05/0.1069, allocations: 20.38 kB / 331.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004877/0.1074, allocations: 231.5 kB / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.675e-05/0.1074, allocations: 0 / 332.1 MB, free: 15.33 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.393e-05/0.1074, allocations: 15.98 kB / 332.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.963e-06/0.1074, allocations: 4 kB / 332.1 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004498/0.1079, allocations: 195.8 kB / 332.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009771/0.1089, allocations: 0.6642 MB / 333 MB, free: 14.4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005654/0.1095, allocations: 206.3 kB / 333.2 MB, free: 14.19 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002286/0.1097, allocations: 104.7 kB / 333.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.446e-05/0.1097, allocations: 0 / 333.3 MB, free: 14.08 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004539/0.1102, allocations: 171.6 kB / 333.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.833e-06/0.1102, allocations: 0 / 333.4 MB, free: 13.9 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002404/0.1126, allocations: 1.159 MB / 334.6 MB, free: 12.63 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.34e-05/0.1127, allocations: 55.39 kB / 334.7 MB, free: 12.56 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001836/0.1129, allocations: 190.9 kB / 334.8 MB, free: 12.37 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.46e-05/0.1129, allocations: 37.69 kB / 334.9 MB, free: 12.32 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.113, allocations: 128.3 kB / 335 MB, free: 12.2 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.017e-05/0.1131, allocations: 90.75 kB / 335.1 MB, free: 12.11 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.1132, allocations: 61.69 kB / 335.2 MB, free: 12.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.1134, allocations: 338.8 kB / 335.5 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/0.1136, allocations: 104.3 kB / 335.6 MB, free: 11.6 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002775/0.1139, allocations: 148 kB / 335.7 MB, free: 11.44 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004997/0.1144, allocations: 242.7 kB / 336 MB, free: 11.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1144, allocations: 0 / 336 MB, free: 11.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008475/0.1153, allocations: 404.9 kB / 336.4 MB, free: 10.78 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.976e-05/0.1153, allocations: 41.7 kB / 336.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.1154, allocations: 3.938 kB / 336.4 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002537/0.1156, allocations: 76.8 kB / 336.5 MB, free: 10.65 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/0.1158, allocations: 47.91 kB / 336.5 MB, free: 10.6 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000527/0.1164, allocations: 0.6109 MB / 337.1 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002691/0.1167, allocations: 28 kB / 337.2 MB, free: 9.938 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.688e-05/0.1167, allocations: 15.98 kB / 337.2 MB, free: 9.922 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.000168/0.1169, allocations: 142.1 kB / 337.3 MB, free: 9.773 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.648e-05/0.1169, allocations: 19.72 kB / 337.3 MB, free: 9.754 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.88e-05/0.117, allocations: 29.86 kB / 337.4 MB, free: 9.723 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.117, allocations: 7.938 kB / 337.4 MB, free: 9.715 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.117, allocations: 4.062 kB / 337.4 MB, free: 9.711 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.117, allocations: 0 / 337.4 MB, free: 9.711 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001114/0.1182, allocations: 0.6747 MB / 338.1 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.1182, allocations: 0 / 338.1 MB, free: 8.977 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002086/0.1184, allocations: 43.97 kB / 338.1 MB, free: 8.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001657/0.1186, allocations: 68.8 kB / 338.2 MB, free: 8.863 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.653e-05/0.1186, allocations: 11.98 kB / 338.2 MB, free: 8.852 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000497/0.1191, allocations: 0.607 MB / 338.8 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.1191, allocations: 0 / 338.8 MB, free: 8.219 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009668/0.1201, allocations: 0.5076 MB / 339.3 MB, free: 7.691 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/0.1202, allocations: 112.9 kB / 339.4 MB, free: 7.562 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.403e-05/0.1203, allocations: 4 kB / 339.4 MB, free: 7.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.1205, allocations: 35.95 kB / 339.4 MB, free: 7.523 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000111/0.1206, allocations: 31.95 kB / 339.5 MB, free: 7.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.959e-05/0.1207, allocations: 8 kB / 339.5 MB, free: 7.484 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000119/0.1208, allocations: 135.2 kB / 339.6 MB, free: 7.352 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1208, allocations: 0 / 339.6 MB, free: 7.352 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003588/0.1212, allocations: 72 kB / 339.7 MB, free: 7.281 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.0002872/0.1215, allocations: 131.1 kB / 339.8 MB, free: 7.145 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000891/0.1224, allocations: 340.8 kB / 340.1 MB, free: 6.801 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1224, allocations: 0 / 340.1 MB, free: 6.801 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003592/0.1227, allocations: 139.8 kB / 340.3 MB, free: 6.664 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004212/0.1232, allocations: 47.98 kB / 340.3 MB, free: 6.617 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001403/0.1246, allocations: 0.7295 MB / 341.1 MB, free: 5.863 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003189/0.1249, allocations: 0.7439 MB / 341.8 MB, free: 5.094 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001193/0.125, allocations: 25.94 kB / 341.8 MB, free: 5.066 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.502e-05/0.1251, allocations: 23.42 kB / 341.8 MB, free: 5.043 MB / 286.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1251, allocations: 0 / 341.8 MB, free: 5.043 MB / 286.1 MB Notification: Performance of Templates: time 0.008/0.1331, allocations: 3.636 MB / 345.5 MB, free: 1.41 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