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.001142/0.001142, allocations: 105.2 kB / 16.5 MB, free: 6.695 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.001091/0.001091, allocations: 194.4 kB / 17.42 MB, free: 6.09 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.292/1.292, allocations: 222.9 MB / 241.1 MB, free: 15.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009232/0.0009232, allocations: 41.98 kB / 299.9 MB, free: 6.348 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08123/0.08217, allocations: 49.44 MB / 349.4 MB, free: 4.895 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003227/0.08543, allocations: 2.211 MB / 351.6 MB, free: 2.664 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.08675, allocations: 0.709 MB / 352.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.08692, allocations: 0 / 352.3 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001912/0.08713, allocations: 31.78 kB / 352.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001869/0.08733, allocations: 55.59 kB / 352.4 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003201/0.08766, allocations: 91.84 kB / 352.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002892/0.08796, allocations: 255.5 kB / 352.7 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.08811, allocations: 56.34 kB / 352.8 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001889/0.08831, allocations: 99.56 kB / 352.9 MB, free: 1.363 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.08851, allocations: 123.4 kB / 353 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.065e-05/0.08856, allocations: 16 kB / 353 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001289/0.08869, allocations: 55.95 kB / 353.1 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.458e-05/0.08878, allocations: 47.83 kB / 353.1 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001153/0.0889, allocations: 111.4 kB / 353.2 MB, free: 1.016 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002791/0.08918, allocations: 263.4 kB / 353.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.0892, allocations: 0 / 353.5 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.08921, allocations: 4 kB / 353.5 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.08922, allocations: 0 / 353.5 MB, free: 0.7539 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.0009654/0.09019, allocations: 0.5615 MB / 354 MB, free: 144 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.09023, allocations: 8.031 kB / 354.1 MB, free: 136 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.605e-05/0.0903, allocations: 28.66 kB / 354.1 MB, free: 108 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002579/0.09056, allocations: 235.9 kB / 354.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.0906, allocations: 16.38 kB / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.76e-05/0.09065, allocations: 20.31 kB / 354.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/0.09116, allocations: 247.4 kB / 354.6 MB, free: 15.55 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.09119, allocations: 3.906 kB / 354.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.09122, allocations: 12 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.09124, allocations: 4 kB / 354.6 MB, free: 15.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005016/0.09175, allocations: 191.8 kB / 354.8 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001102/0.09286, allocations: 0.6603 MB / 355.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005634/0.09344, allocations: 202.4 kB / 355.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002375/0.09368, allocations: 104.8 kB / 355.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.09372, allocations: 0 / 355.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004192/0.09414, allocations: 171.5 kB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 3.296e-06/0.09416, allocations: 3.984 kB / 355.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.0023/0.09646, allocations: 1.143 MB / 357.1 MB, free: 12.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.09651, allocations: 59.34 kB / 357.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001805/0.0967, allocations: 195.9 kB / 357.3 MB, free: 12.6 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.09674, allocations: 33.7 kB / 357.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.626e-05/0.09683, allocations: 132.3 kB / 357.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.738e-05/0.09691, allocations: 90.73 kB / 357.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001024/0.09702, allocations: 57.7 kB / 357.6 MB, free: 12.27 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.09715, allocations: 338.8 kB / 358 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.09744, allocations: 104.3 kB / 358.1 MB, free: 11.83 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002916/0.09774, allocations: 148.2 kB / 358.2 MB, free: 11.68 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004934/0.09824, allocations: 247.8 kB / 358.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.09825, allocations: 0 / 358.5 MB, free: 11.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008734/0.09913, allocations: 396.8 kB / 358.8 MB, free: 11.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/0.09919, allocations: 48.3 kB / 358.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.0992, allocations: 3.938 kB / 358.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002336/0.09944, allocations: 68.81 kB / 359 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.09966, allocations: 47.91 kB / 359 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005345/0.1002, allocations: 0.6109 MB / 359.6 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.1005, allocations: 39.98 kB / 359.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.662e-05/0.1005, allocations: 8 kB / 359.7 MB, free: 10.16 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.0001588/0.1007, allocations: 141.7 kB / 359.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.1007, allocations: 15.81 kB / 359.8 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.571e-05/0.1008, allocations: 33.8 kB / 359.8 MB, free: 9.965 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.047e-06/0.1008, allocations: 4 kB / 359.9 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.1008, allocations: 4.062 kB / 359.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.1008, allocations: 0 / 359.9 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001088/0.1019, allocations: 0.6866 MB / 360.5 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.1019, allocations: 0 / 360.5 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002207/0.1022, allocations: 44.02 kB / 360.6 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001714/0.1023, allocations: 68.8 kB / 360.7 MB, free: 9.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.412e-05/0.1024, allocations: 8 kB / 360.7 MB, free: 9.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004243/0.1028, allocations: 0.6109 MB / 361.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1028, allocations: 0 / 361.3 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009487/0.1038, allocations: 0.5076 MB / 361.8 MB, free: 7.926 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.878e-05/0.1039, allocations: 108.9 kB / 361.9 MB, free: 7.801 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.348e-05/0.1039, allocations: 7.984 kB / 361.9 MB, free: 7.793 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.1042, allocations: 31.97 kB / 361.9 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.751e-05/0.1043, allocations: 31.95 kB / 362 MB, free: 7.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.1043, allocations: 11.98 kB / 362 MB, free: 7.719 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.1044, allocations: 143.4 kB / 362.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1044, allocations: 0 / 362.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.1048, allocations: 68 kB / 362.2 MB, free: 7.512 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.105, allocations: 131.2 kB / 362.3 MB, free: 7.371 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007302/0.1057, allocations: 323.1 kB / 362.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1057, allocations: 0 / 362.6 MB, free: 7.043 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003585/0.1061, allocations: 139.8 kB / 362.8 MB, free: 6.906 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003925/0.1065, allocations: 51.44 kB / 362.8 MB, free: 6.859 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.1078, allocations: 0.731 MB / 363.5 MB, free: 6.105 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002459/0.108, allocations: 0.744 MB / 364.3 MB, free: 5.336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.1081, allocations: 33.92 kB / 364.3 MB, free: 5.305 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.232e-05/0.1082, allocations: 15.44 kB / 364.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1082, allocations: 0 / 364.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of Templates: time 0.006501/0.1147, allocations: 3.449 MB / 367.8 MB, free: 1.863 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/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