Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.OneWayClutch,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.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_4.0.0_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.001226/0.001226, allocations: 113.3 kB / 17.29 MB, free: 6.059 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.001265/0.001265, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.378/1.378, allocations: 222.9 MB / 241.9 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000903/0.0009031, allocations: 47.33 kB / 300.8 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/0.09299, allocations: 49.45 MB / 350.2 MB, free: 4.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003654/0.09669, allocations: 2.215 MB / 352.4 MB, free: 2.516 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.09798, allocations: 0.6934 MB / 353.1 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001586/0.09816, allocations: 4 kB / 353.1 MB, free: 1.812 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001843/0.09838, allocations: 19.84 kB / 353.2 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000192/0.09858, allocations: 63.55 kB / 353.2 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003986/0.09899, allocations: 95.78 kB / 353.3 MB, free: 1.637 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003824/0.09939, allocations: 283.4 kB / 353.6 MB, free: 1.359 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001573/0.09955, allocations: 56.36 kB / 353.6 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002207/0.09978, allocations: 119.5 kB / 353.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.09999, allocations: 123.5 kB / 353.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.572e-05/0.1001, allocations: 20 kB / 353.9 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001524/0.1002, allocations: 67.95 kB / 354 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.266e-05/0.1003, allocations: 51.84 kB / 354 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001159/0.1004, allocations: 111.4 kB / 354.1 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002777/0.1007, allocations: 199.8 kB / 354.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1007, allocations: 0 / 354.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1007, allocations: 4 kB / 354.3 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.1008, allocations: 0 / 354.3 MB, free: 0.6133 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.001083/0.1018, allocations: 0.5548 MB / 354.9 MB, free: 4 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.63e-05/0.1019, allocations: 15.94 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.04e-05/0.102, allocations: 36.59 kB / 354.9 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002635/0.1023, allocations: 235.9 kB / 355.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.352e-05/0.1023, allocations: 12.38 kB / 355.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.933e-05/0.1024, allocations: 24.28 kB / 355.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000498/0.1029, allocations: 235.5 kB / 355.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.1029, allocations: 3.984 kB / 355.4 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.568e-05/0.1029, allocations: 15.94 kB / 355.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.1029, allocations: 4 kB / 355.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004739/0.1034, allocations: 195.8 kB / 355.6 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.1044, allocations: 0.6642 MB / 356.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005544/0.105, allocations: 206.3 kB / 356.5 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002349/0.1052, allocations: 104.8 kB / 356.6 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.329e-05/0.1053, allocations: 4 kB / 356.6 MB, free: 14.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000403/0.1057, allocations: 163.2 kB / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.803e-06/0.1057, allocations: 0 / 356.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002378/0.1081, allocations: 1.145 MB / 357.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1081, allocations: 59.41 kB / 358 MB, free: 12.65 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.1083, allocations: 191.9 kB / 358.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.101e-05/0.1084, allocations: 33.7 kB / 358.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.1085, allocations: 128.3 kB / 358.3 MB, free: 12.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.032e-05/0.1085, allocations: 86.75 kB / 358.4 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001053/0.1086, allocations: 69.69 kB / 358.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1088, allocations: 334.8 kB / 358.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002638/0.109, allocations: 100.3 kB / 358.9 MB, free: 11.69 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002872/0.1093, allocations: 148.2 kB / 359 MB, free: 11.54 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004663/0.1098, allocations: 250.7 kB / 359.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1098, allocations: 0 / 359.3 MB, free: 11.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008022/0.1106, allocations: 409.8 kB / 359.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.1107, allocations: 33.7 kB / 359.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.1107, allocations: 3.938 kB / 359.7 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002335/0.1109, allocations: 68.81 kB / 359.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002106/0.1112, allocations: 51.91 kB / 359.8 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004726/0.1116, allocations: 0.6148 MB / 360.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002603/0.1119, allocations: 35.98 kB / 360.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.023e-05/0.1119, allocations: 12 kB / 360.5 MB, free: 10.01 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: 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.0001427/0.1121, allocations: 137.7 kB / 360.6 MB, free: 9.863 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.348e-05/0.1121, allocations: 15.81 kB / 360.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.332e-05/0.1122, allocations: 33.92 kB / 360.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.508e-06/0.1122, allocations: 4.047 kB / 360.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1122, allocations: 7.922 kB / 360.7 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.1122, allocations: 3.938 kB / 360.7 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001082/0.1133, allocations: 0.6866 MB / 361.4 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.1133, allocations: 8 kB / 361.4 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002072/0.1136, allocations: 43.91 kB / 361.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001686/0.1137, allocations: 64.81 kB / 361.5 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.26e-05/0.1138, allocations: 4 kB / 361.5 MB, free: 8.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004378/0.1142, allocations: 0.6032 MB / 362.1 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1142, allocations: 3.984 kB / 362.1 MB, free: 8.301 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009179/0.1151, allocations: 0.5036 MB / 362.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.1153, allocations: 113 kB / 362.7 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.1153, allocations: 4 kB / 362.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002355/0.1155, allocations: 31.95 kB / 362.8 MB, free: 7.613 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.1157, allocations: 35.95 kB / 362.8 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.687e-05/0.1157, allocations: 4 kB / 362.8 MB, free: 7.574 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.1159, allocations: 139.5 kB / 362.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.1159, allocations: 0 / 362.9 MB, free: 7.438 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003376/0.1162, allocations: 68 kB / 363 MB, free: 7.371 MB / 302.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.0002001/0.1164, allocations: 137.6 kB / 363.1 MB, free: 7.227 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007864/0.1172, allocations: 331.8 kB / 363.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1172, allocations: 0 / 363.5 MB, free: 6.891 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000347/0.1176, allocations: 144 kB / 363.6 MB, free: 6.75 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004038/0.118, allocations: 51.22 kB / 363.7 MB, free: 6.703 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00133/0.1194, allocations: 0.7626 MB / 364.4 MB, free: 5.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.1197, allocations: 0.7402 MB / 365.2 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.138e-05/0.1198, allocations: 23.42 kB / 365.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1198, allocations: 11.94 kB / 365.2 MB, free: 5.109 MB / 302.1 MB Notification: Performance of Templates: time 0.006158/0.126, allocations: 3.792 MB / 369 MB, free: 1.332 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches