Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 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.OneWayClutchDisengaged,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.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_3.2.3_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.0009152/0.0009153, allocations: 98.31 kB / 16.94 MB, free: 6.441 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.001038/0.001038, allocations: 189.8 kB / 17.83 MB, free: 6.008 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.595/1.595, allocations: 205.4 MB / 224 MB, free: 13.18 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.0004919/0.000492, allocations: 8 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1034/0.1039, allocations: 47.58 MB / 328.3 MB, free: 4.113 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002277/0.1062, allocations: 1.785 MB / 330.1 MB, free: 2.312 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001037/0.1073, allocations: 0.6949 MB / 330.8 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.65e-05/0.1074, allocations: 4 kB / 330.8 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001182/0.1075, allocations: 23.78 kB / 330.8 MB, free: 1.582 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001914/0.1077, allocations: 83.77 kB / 330.9 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002424/0.1079, allocations: 71.84 kB / 331 MB, free: 1.43 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002246/0.1082, allocations: 168.1 kB / 331.1 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001507/0.1083, allocations: 60.36 kB / 331.2 MB, free: 1.207 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001372/0.1085, allocations: 91.69 kB / 331.3 MB, free: 1.117 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001775/0.1087, allocations: 103.6 kB / 331.4 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.74e-05/0.1087, allocations: 12 kB / 331.4 MB, free: 1.004 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.1088, allocations: 51.84 kB / 331.5 MB, free: 0.9531 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 5.659e-05/0.1089, allocations: 39.88 kB / 331.5 MB, free: 0.9141 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.505e-05/0.1089, allocations: 65.58 kB / 331.6 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.1092, allocations: 191.8 kB / 331.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1092, allocations: 0 / 331.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.1092, allocations: 0 / 331.7 MB, free: 0.6562 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1092, allocations: 4 kB / 331.8 MB, free: 0.6523 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0007682/0.11, allocations: 490.9 kB / 332.2 MB, free: 124 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.11, allocations: 12.03 kB / 332.2 MB, free: 112 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.559e-05/0.1101, allocations: 23.72 kB / 332.3 MB, free: 88 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002625/0.1103, allocations: 226.7 kB / 332.5 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.494e-05/0.1104, allocations: 24.42 kB / 332.5 MB, free: 15.8 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.005e-05/0.1104, allocations: 19.91 kB / 332.5 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000382/0.1108, allocations: 217.7 kB / 332.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.1108, allocations: 4 kB / 332.7 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.269e-05/0.1109, allocations: 4 kB / 332.8 MB, free: 15.55 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.1109, allocations: 7.938 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003217/0.1112, allocations: 173 kB / 332.9 MB, free: 15.37 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001112/0.1123, allocations: 0.7797 MB / 333.7 MB, free: 14.52 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003253/0.1127, allocations: 130.5 kB / 333.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.1127, allocations: 3.984 kB / 333.8 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.1127, allocations: 38.56 kB / 333.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 2.405e-06/0.1127, allocations: 0 / 333.9 MB, free: 14.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.001822/0.1146, allocations: 1.014 MB / 334.9 MB, free: 13.21 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/0.1146, allocations: 59.39 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.1148, allocations: 206.5 kB / 335.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.328e-05/0.1149, allocations: 29.7 kB / 335.2 MB, free: 12.89 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.601e-05/0.115, allocations: 136.2 kB / 335.3 MB, free: 12.76 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.418e-05/0.115, allocations: 78.98 kB / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.1151, allocations: 4 kB / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1152, allocations: 334.8 kB / 335.7 MB, free: 12.34 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001526/0.1153, allocations: 83.95 kB / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001668/0.1155, allocations: 115.6 kB / 335.9 MB, free: 12.13 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001488/0.1157, allocations: 81.14 kB / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.1157, allocations: 0 / 336 MB, free: 12.05 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004604/0.1162, allocations: 295.9 kB / 336.3 MB, free: 11.76 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.1162, allocations: 8 kB / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.708e-06/0.1162, allocations: 0 / 336.3 MB, free: 11.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002589/0.1165, allocations: 72.75 kB / 336.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.1166, allocations: 43.92 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005039/0.1171, allocations: 0.611 MB / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.1173, allocations: 32 kB / 337 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.8e-05/0.1174, allocations: 4 kB / 337.1 MB, free: 10.96 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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001489/0.1175, allocations: 141.8 kB / 337.2 MB, free: 10.81 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/0.1176, allocations: 19.72 kB / 337.2 MB, free: 10.79 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.831e-05/0.1176, allocations: 25.86 kB / 337.2 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.053e-06/0.1176, allocations: 4 kB / 337.2 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1177, allocations: 3.953 kB / 337.2 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/0.1177, allocations: 0 / 337.2 MB, free: 10.76 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007855/0.1185, allocations: 0.605 MB / 337.8 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1185, allocations: 4 kB / 337.9 MB, free: 10.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.1186, allocations: 27.98 kB / 337.9 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001597/0.1188, allocations: 80.77 kB / 338 MB, free: 9.977 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.1188, allocations: 12.06 kB / 338 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004213/0.1193, allocations: 0.6186 MB / 338.6 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.1193, allocations: 0 / 338.6 MB, free: 9.32 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005904/0.1199, allocations: 445.1 kB / 339 MB, free: 8.848 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.556e-05/0.12, allocations: 104.9 kB / 339.1 MB, free: 8.727 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.824e-05/0.12, allocations: 8 kB / 339.1 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001887/0.1202, allocations: 31.97 kB / 339.2 MB, free: 8.688 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.922e-05/0.1203, allocations: 23.97 kB / 339.2 MB, free: 8.664 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/0.1203, allocations: 7.984 kB / 339.2 MB, free: 8.656 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001443/0.1205, allocations: 152 kB / 339.3 MB, free: 8.508 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1205, allocations: 0 / 339.3 MB, free: 8.508 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003629/0.1209, allocations: 64 kB / 339.4 MB, free: 8.445 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002569/0.1211, allocations: 131.2 kB / 339.5 MB, free: 8.309 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000548/0.1217, allocations: 195.8 kB / 339.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.1217, allocations: 0 / 339.7 MB, free: 8.117 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002539/0.122, allocations: 108 kB / 339.8 MB, free: 8.012 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003272/0.1223, allocations: 31.7 kB / 339.9 MB, free: 7.98 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001477/0.1238, allocations: 0.8204 MB / 340.7 MB, free: 7.133 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003266/0.1241, allocations: 0.7521 MB / 341.4 MB, free: 6.355 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.747e-05/0.1242, allocations: 21.92 kB / 341.5 MB, free: 6.336 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.622e-05/0.1242, allocations: 15.44 kB / 341.5 MB, free: 6.32 MB / 286.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1243, allocations: 0 / 341.5 MB, free: 6.32 MB / 286.1 MB Notification: Performance of Templates: time 0.006302/0.1306, allocations: 2.813 MB / 344.3 MB, free: 3.508 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches