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.001092/0.001092, allocations: 104 kB / 17.59 MB, free: 5.559 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.0011/0.0011, allocations: 191.5 kB / 18.51 MB, free: 4.641 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.454/1.454, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001161/0.001161, allocations: 50.92 kB / 301.3 MB, free: 5.887 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09729/0.09848, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003669/0.1022, allocations: 2.208 MB / 352.9 MB, free: 2.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001334/0.1036, allocations: 0.6933 MB / 353.6 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001979/0.1038, allocations: 7.938 kB / 353.6 MB, free: 1.5 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002162/0.104, allocations: 31.72 kB / 353.7 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002486/0.1043, allocations: 67.41 kB / 353.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.1047, allocations: 99.8 kB / 353.8 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003543/0.1051, allocations: 263.4 kB / 354.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001919/0.1053, allocations: 60.38 kB / 354.1 MB, free: 0.9805 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.1055, allocations: 111.6 kB / 354.3 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003126/0.1059, allocations: 115.5 kB / 354.4 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.942e-05/0.1059, allocations: 20 kB / 354.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001589/0.1061, allocations: 63.97 kB / 354.5 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.143e-05/0.1062, allocations: 55.77 kB / 354.5 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.1063, allocations: 103.5 kB / 354.6 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003491/0.1067, allocations: 279.4 kB / 354.9 MB, free: 252 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.1067, allocations: 0 / 354.9 MB, free: 252 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1067, allocations: 4 kB / 354.9 MB, free: 248 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.148e-05/0.1067, allocations: 0 / 354.9 MB, free: 248 kB / 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.0008919/0.1076, allocations: 0.5184 MB / 355.4 MB, free: 15.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1076, allocations: 8.031 kB / 355.4 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.793e-05/0.1077, allocations: 20.75 kB / 355.4 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.108, allocations: 231.9 kB / 355.7 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.473e-05/0.108, allocations: 16.75 kB / 355.7 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.926e-05/0.1081, allocations: 28.36 kB / 355.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004141/0.1085, allocations: 222 kB / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.1085, allocations: 0 / 355.9 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.642e-05/0.1086, allocations: 12 kB / 355.9 MB, free: 15.1 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.058e-05/0.1086, allocations: 4 kB / 355.9 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003364/0.1089, allocations: 165 kB / 356.1 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001143/0.1101, allocations: 0.7797 MB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003655/0.1105, allocations: 138.4 kB / 357 MB, free: 13.95 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001347/0.1106, allocations: 69.14 kB / 357.1 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.1106, allocations: 7.906 kB / 357.1 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.224e-05/0.1107, allocations: 34.56 kB / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=18): time 1.593e-06/0.1107, allocations: 0 / 357.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.001894/0.1126, allocations: 0.9809 MB / 358.1 MB, free: 12.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.475e-05/0.1126, allocations: 59.41 kB / 358.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.1128, allocations: 207.2 kB / 358.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.087e-05/0.1129, allocations: 29.7 kB / 358.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.915e-05/0.113, allocations: 144.1 kB / 358.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.804e-05/0.113, allocations: 74.98 kB / 358.6 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.597e-05/0.1131, allocations: 49.7 kB / 358.7 MB, free: 12.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.1132, allocations: 338.7 kB / 359 MB, free: 11.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001658/0.1134, allocations: 75.97 kB / 359.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001846/0.1136, allocations: 120.1 kB / 359.2 MB, free: 11.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003035/0.1139, allocations: 166.6 kB / 359.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.1139, allocations: 0 / 359.3 MB, free: 11.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005022/0.1144, allocations: 284.6 kB / 359.6 MB, free: 11.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.88e-05/0.1145, allocations: 12 kB / 359.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.854e-06/0.1145, allocations: 0 / 359.6 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003284/0.1148, allocations: 76.75 kB / 359.7 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.115, allocations: 35.92 kB / 359.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005169/0.1155, allocations: 0.6264 MB / 360.4 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002008/0.1157, allocations: 19.98 kB / 360.4 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.085e-05/0.1158, allocations: 15.92 kB / 360.4 MB, free: 10.32 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.0001308/0.1159, allocations: 137.8 kB / 360.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.772e-05/0.1159, allocations: 15.81 kB / 360.5 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.214e-05/0.116, allocations: 29.88 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.116, allocations: 7.984 kB / 360.6 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.116, allocations: 4 kB / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1161, allocations: 0 / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008606/0.1169, allocations: 0.5969 MB / 361.2 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.338e-06/0.1169, allocations: 4 kB / 361.2 MB, free: 9.461 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001617/0.1171, allocations: 39.98 kB / 361.2 MB, free: 9.422 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001836/0.1173, allocations: 68.81 kB / 361.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.884e-05/0.1173, allocations: 0 / 361.3 MB, free: 9.352 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004603/0.1178, allocations: 0.6147 MB / 361.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.1178, allocations: 64 / 361.9 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000614/0.1184, allocations: 424.2 kB / 362.3 MB, free: 8.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.791e-05/0.1185, allocations: 112.8 kB / 362.4 MB, free: 8.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.823e-05/0.1186, allocations: 8 kB / 362.4 MB, free: 8.137 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001871/0.1188, allocations: 23.97 kB / 362.5 MB, free: 8.113 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.174e-05/0.1189, allocations: 27.91 kB / 362.5 MB, free: 8.086 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.1189, allocations: 4 kB / 362.5 MB, free: 8.082 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001311/0.119, allocations: 152.5 kB / 362.6 MB, free: 7.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.119, allocations: 0 / 362.6 MB, free: 7.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003559/0.1194, allocations: 67.94 kB / 362.7 MB, free: 7.867 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.0001991/0.1196, allocations: 119.2 kB / 362.8 MB, free: 7.738 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005191/0.1201, allocations: 207.8 kB / 363 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1201, allocations: 0 / 363 MB, free: 7.535 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002271/0.1204, allocations: 103.8 kB / 363.1 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004101/0.1208, allocations: 31.92 kB / 363.2 MB, free: 7.402 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001368/0.1222, allocations: 0.698 MB / 363.9 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002887/0.1225, allocations: 0.7401 MB / 364.6 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.553e-05/0.1225, allocations: 23.44 kB / 364.6 MB, free: 5.875 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1225, allocations: 4 kB / 364.6 MB, free: 5.871 MB / 302.1 MB Notification: Performance of Templates: time 0.005954/0.1285, allocations: 3.45 MB / 368.1 MB, free: 2.426 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