Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.001768/0.001768, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 241.8 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 50.95 kB / 300.6 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1058, allocations: 49.44 MB / 350 MB, free: 4.883 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00376/0.1096, allocations: 2.262 MB / 352.3 MB, free: 2.602 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001368/0.1111, allocations: 0.6856 MB / 353 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001604/0.1112, allocations: 4 kB / 353 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001805/0.1115, allocations: 23.78 kB / 353 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.1117, allocations: 67.59 kB / 353.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002963/0.112, allocations: 79.84 kB / 353.2 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002863/0.1123, allocations: 247.5 kB / 353.4 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001719/0.1124, allocations: 60.14 kB / 353.5 MB, free: 1.43 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001866/0.1126, allocations: 95.62 kB / 353.6 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002048/0.1129, allocations: 119.5 kB / 353.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.563e-05/0.1129, allocations: 12 kB / 353.7 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.1131, allocations: 63.95 kB / 353.8 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.633e-05/0.1131, allocations: 43.83 kB / 353.8 MB, free: 1.102 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001131/0.1133, allocations: 95.47 kB / 353.9 MB, free: 1.008 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002392/0.1135, allocations: 195.8 kB / 354.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.1135, allocations: 0 / 354.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1135, allocations: 0 / 354.1 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.284e-06/0.1135, allocations: 0 / 354.1 MB, free: 0.8164 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008946/0.1144, allocations: 0.5186 MB / 354.6 MB, free: 256 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.1145, allocations: 12.03 kB / 354.6 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.174e-05/0.1146, allocations: 20.66 kB / 354.6 MB, free: 224 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.1148, allocations: 236 kB / 354.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.1149, allocations: 16.81 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.95e-05/0.1149, allocations: 20.31 kB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004126/0.1153, allocations: 234 kB / 355.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.1154, allocations: 4 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.1154, allocations: 7.938 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.1154, allocations: 8 kB / 355.1 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003335/0.1158, allocations: 157 kB / 355.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.117, allocations: 0.7835 MB / 356.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004143/0.1174, allocations: 130.5 kB / 356.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001461/0.1176, allocations: 73.14 kB / 356.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.171e-05/0.1176, allocations: 3.906 kB / 356.3 MB, free: 14.44 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.489e-05/0.1176, allocations: 38.56 kB / 356.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.1176, allocations: 0 / 356.3 MB, free: 14.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.001919/0.1196, allocations: 0.9853 MB / 357.3 MB, free: 13.29 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.715e-05/0.1196, allocations: 51.41 kB / 357.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.1198, allocations: 203.2 kB / 357.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.415e-05/0.1199, allocations: 33.7 kB / 357.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.12, allocations: 148.1 kB / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.88e-05/0.12, allocations: 67 kB / 357.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.167e-05/0.1201, allocations: 57.7 kB / 357.9 MB, free: 12.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001312/0.1203, allocations: 330.8 kB / 358.2 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000188/0.1205, allocations: 79.95 kB / 358.3 MB, free: 12.3 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.1207, allocations: 111.6 kB / 358.4 MB, free: 12.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/0.121, allocations: 172.8 kB / 358.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.121, allocations: 0 / 358.5 MB, free: 11.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005262/0.1215, allocations: 288.5 kB / 358.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.1215, allocations: 6.344 kB / 358.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.1216, allocations: 0 / 358.8 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003315/0.1219, allocations: 72.88 kB / 358.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001637/0.1221, allocations: 39.92 kB / 358.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005403/0.1226, allocations: 0.6186 MB / 359.5 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002062/0.1228, allocations: 24 kB / 359.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.23e-05/0.1229, allocations: 12 kB / 359.6 MB, free: 10.91 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 (26): * Single equations (assignments): 25 * 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.0001508/0.123, allocations: 146.3 kB / 359.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.991e-05/0.1231, allocations: 19.8 kB / 359.7 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.4e-05/0.1232, allocations: 21.88 kB / 359.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.1232, allocations: 7.938 kB / 359.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.1232, allocations: 3.938 kB / 359.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.1232, allocations: 0 / 359.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009301/0.1241, allocations: 0.606 MB / 360.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.1241, allocations: 0 / 360.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001671/0.1243, allocations: 27.98 kB / 360.4 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001995/0.1245, allocations: 72.8 kB / 360.5 MB, free: 9.93 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.423e-05/0.1246, allocations: 11.98 kB / 360.5 MB, free: 9.918 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004737/0.1251, allocations: 0.6148 MB / 361.1 MB, free: 9.277 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.1251, allocations: 4.031 kB / 361.1 MB, free: 9.273 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006457/0.1257, allocations: 416.3 kB / 361.5 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001014/0.1258, allocations: 112.8 kB / 361.6 MB, free: 8.715 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.542e-05/0.1259, allocations: 4 kB / 361.6 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002039/0.1261, allocations: 23.97 kB / 361.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.244e-05/0.1262, allocations: 19.97 kB / 361.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.1262, allocations: 8 kB / 361.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001576/0.1264, allocations: 144.5 kB / 361.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.605e-06/0.1264, allocations: 4 kB / 361.8 MB, free: 8.516 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004016/0.1268, allocations: 79.86 kB / 361.9 MB, free: 8.438 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 (14): * Single equations (assignments): 13 * 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.0002083/0.127, allocations: 115.2 kB / 362 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005563/0.1276, allocations: 195.8 kB / 362.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1276, allocations: 0 / 362.2 MB, free: 8.121 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.1278, allocations: 106.7 kB / 362.3 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004199/0.1283, allocations: 31.98 kB / 362.3 MB, free: 7.988 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.1297, allocations: 0.7779 MB / 363.1 MB, free: 7.172 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.1301, allocations: 0.7404 MB / 363.9 MB, free: 6.406 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.022e-05/0.1302, allocations: 15.44 kB / 363.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of SimCode: time 6.21e-07/0.1302, allocations: 0 / 363.9 MB, free: 6.391 MB / 302.1 MB Notification: Performance of Templates: time 0.006082/0.1363, allocations: 3.449 MB / 367.3 MB, free: 2.949 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches