Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001086/0.001087, allocations: 116.2 kB / 17.33 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001379/0.001379, allocations: 205.8 kB / 18.26 MB, free: 5.094 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.349/1.349, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001198, allocations: 58.34 kB / 306.4 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0891/0.09032, allocations: 50.54 MB / 357 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003553/0.09391, allocations: 2.372 MB / 359.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.09523, allocations: 0.8374 MB / 360.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.09536, allocations: 4 kB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002449/0.09561, allocations: 51.75 kB / 360.2 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.09584, allocations: 91.45 kB / 360.3 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001739/0.09602, allocations: 67.92 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002668/0.0963, allocations: 279.3 kB / 360.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.09645, allocations: 68.31 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001908/0.09665, allocations: 127.5 kB / 360.9 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.09683, allocations: 131.5 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.403e-05/0.09688, allocations: 20 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.09702, allocations: 75.98 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.859e-05/0.0971, allocations: 55.81 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.473e-05/0.0972, allocations: 115.4 kB / 361.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003208/0.09752, allocations: 307.3 kB / 361.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.09754, allocations: 0 / 361.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.09755, allocations: 0 / 361.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.09756, allocations: 3.938 kB / 361.6 MB, free: 9.812 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0008819/0.09845, allocations: 0.538 MB / 362.1 MB, free: 9.223 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.0985, allocations: 8.031 kB / 362.1 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001939/0.0987, allocations: 36.64 kB / 362.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003152/0.09902, allocations: 251.8 kB / 362.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.09906, allocations: 16.75 kB / 362.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.316e-05/0.09911, allocations: 20.36 kB / 362.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004113/0.09952, allocations: 215 kB / 362.6 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/0.09956, allocations: 7.938 kB / 362.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.09959, allocations: 8 kB / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.207e-06/0.0996, allocations: 7.984 kB / 362.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003215/0.09993, allocations: 159 kB / 362.8 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.101, allocations: 0.774 MB / 363.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.1013, allocations: 145.1 kB / 363.7 MB, free: 7.469 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001416/0.1015, allocations: 73.02 kB / 363.8 MB, free: 7.395 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.1015, allocations: 4 kB / 363.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.347e-05/0.1016, allocations: 30.56 kB / 363.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.282e-06/0.1016, allocations: 0 / 363.8 MB, free: 7.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001769/0.1033, allocations: 0.9917 MB / 364.8 MB, free: 6.25 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.1034, allocations: 55.41 kB / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002183/0.1036, allocations: 222.8 kB / 365.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.924e-05/0.1036, allocations: 29.7 kB / 365.1 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.208e-05/0.1037, allocations: 148.2 kB / 365.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.29e-05/0.1038, allocations: 67.02 kB / 365.3 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.853e-05/0.1039, allocations: 57.59 kB / 365.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001064/0.104, allocations: 326.8 kB / 365.7 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.1042, allocations: 67.97 kB / 365.8 MB, free: 5.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001753/0.1043, allocations: 111.3 kB / 365.9 MB, free: 5.129 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002748/0.1046, allocations: 157.1 kB / 366 MB, free: 4.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.1046, allocations: 0 / 366 MB, free: 4.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000464/0.1051, allocations: 278 kB / 366.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.1051, allocations: 8.062 kB / 366.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1051, allocations: 0 / 366.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002042/0.1053, allocations: 56.83 kB / 366.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000148/0.1055, allocations: 35.92 kB / 366.4 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001979/0.1075, allocations: 1.822 MB / 368.2 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001974/0.1077, allocations: 24 kB / 368.2 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.018e-05/0.1077, allocations: 8 kB / 368.3 MB, free: 2.586 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 (25): * Single equations (assignments): 24 * 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.0001331/0.1079, allocations: 145.7 kB / 368.4 MB, free: 2.434 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.64e-05/0.1079, allocations: 27.64 kB / 368.4 MB, free: 2.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.797e-05/0.108, allocations: 25.94 kB / 368.4 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.457e-06/0.108, allocations: 4 kB / 368.5 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.108, allocations: 0 / 368.5 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.108, allocations: 3.984 kB / 368.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008664/0.1089, allocations: 0.6045 MB / 369.1 MB, free: 1.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.535e-06/0.1089, allocations: 8 kB / 369.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001699/0.1091, allocations: 31.98 kB / 369.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.1093, allocations: 52.83 kB / 369.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.1093, allocations: 8 kB / 369.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1563/0.2656, allocations: 1.66 MB / 370.8 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.2657, allocations: 1.719 kB / 370.8 MB, free: 19.55 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000756/0.2664, allocations: 423.6 kB / 371.2 MB, free: 19.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001047/0.2665, allocations: 114.5 kB / 371.3 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.008e-05/0.2666, allocations: 8.125 kB / 371.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002054/0.2668, allocations: 21.31 kB / 371.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.267, allocations: 66.39 kB / 371.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.768e-05/0.267, allocations: 9.828 kB / 371.4 MB, free: 19.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001516/0.2672, allocations: 157.5 kB / 371.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2672, allocations: 1.812 kB / 371.6 MB, free: 19.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004455/0.2676, allocations: 66.94 kB / 371.7 MB, free: 19.23 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 (15): * Single equations (assignments): 14 * 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.0007573/0.2684, allocations: 355.8 kB / 372 MB, free: 19.11 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006966/0.2691, allocations: 331.6 kB / 372.3 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2691, allocations: 0 / 372.3 MB, free: 19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003111/0.2694, allocations: 232.4 kB / 372.6 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004151/0.2699, allocations: 44.02 kB / 372.6 MB, free: 18.88 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.2711, allocations: 0.7654 MB / 373.4 MB, free: 18.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000204/0.2713, allocations: 0.7501 MB / 374.1 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/0.2714, allocations: 27.06 kB / 374.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.129e-05/0.2715, allocations: 25.06 kB / 374.2 MB, free: 17.73 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2715, allocations: 4 kB / 374.2 MB, free: 17.72 MB / 302.1 MB Notification: Performance of Templates: time 0.008054/0.2795, allocations: 3.788 MB / 378 MB, free: 17.46 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches