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.00132/0.00132, allocations: 100.7 kB / 17.32 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 209.8 kB / 18.26 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001135/0.001135, allocations: 61.33 kB / 306.4 MB, free: 0.957 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08859/0.08974, allocations: 50.53 MB / 357 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004397/0.09417, allocations: 2.383 MB / 359.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.09585, allocations: 0.8374 MB / 360.2 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000206/0.09608, allocations: 4 kB / 360.2 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.09643, allocations: 47.77 kB / 360.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003772/0.09682, allocations: 91.45 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002493/0.09708, allocations: 63.92 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003765/0.09747, allocations: 283.3 kB / 360.7 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.09765, allocations: 76.28 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002864/0.09795, allocations: 127.5 kB / 360.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002855/0.09825, allocations: 127.5 kB / 361 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.032e-05/0.09832, allocations: 23.94 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002598/0.09859, allocations: 79.97 kB / 361.1 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.815e-05/0.09869, allocations: 51.83 kB / 361.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000154/0.09885, allocations: 119.4 kB / 361.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000484/0.09934, allocations: 303.3 kB / 361.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.09936, allocations: 0 / 361.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.09937, allocations: 0 / 361.6 MB, free: 9.812 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.09938, allocations: 0 / 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.0009118/0.1003, allocations: 0.5419 MB / 362.1 MB, free: 9.219 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.33e-05/0.1004, allocations: 8.031 kB / 362.1 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002712/0.1006, allocations: 36.64 kB / 362.1 MB, free: 9.176 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.1009, allocations: 247.8 kB / 362.4 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.522e-05/0.101, allocations: 16.75 kB / 362.4 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.634e-05/0.101, allocations: 16.38 kB / 362.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.1014, allocations: 215 kB / 362.6 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.06e-05/0.1015, allocations: 7.938 kB / 362.6 MB, free: 8.633 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.1015, allocations: 11.98 kB / 362.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.1015, allocations: 7.938 kB / 362.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003174/0.1018, allocations: 159 kB / 362.8 MB, free: 8.461 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001092/0.1029, allocations: 0.774 MB / 363.6 MB, free: 7.617 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003635/0.1033, allocations: 146.7 kB / 363.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001325/0.1034, allocations: 72.83 kB / 363.8 MB, free: 7.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.583e-05/0.1035, allocations: 4 kB / 363.8 MB, free: 7.387 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.1035, allocations: 30.56 kB / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=19): time 1.222e-06/0.1035, allocations: 0 / 363.8 MB, free: 7.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.00189/0.1054, allocations: 0.992 MB / 364.8 MB, free: 6.246 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.517e-05/0.1055, allocations: 51.41 kB / 364.9 MB, free: 6.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.1057, allocations: 222.8 kB / 365.1 MB, free: 5.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.541e-05/0.1058, allocations: 33.69 kB / 365.1 MB, free: 5.918 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/0.1059, allocations: 136.2 kB / 365.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.647e-05/0.106, allocations: 78.98 kB / 365.3 MB, free: 5.703 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.605e-05/0.1061, allocations: 49.61 kB / 365.4 MB, free: 5.648 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.1062, allocations: 334.8 kB / 365.7 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001564/0.1064, allocations: 67.97 kB / 365.8 MB, free: 5.246 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001932/0.1066, allocations: 111.3 kB / 365.9 MB, free: 5.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000309/0.1069, allocations: 161.1 kB / 366 MB, free: 4.957 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1069, allocations: 0 / 366 MB, free: 4.957 MB / 302.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004836/0.1074, allocations: 270.1 kB / 366.3 MB, free: 4.684 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.161e-05/0.1075, allocations: 11.92 kB / 366.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.1075, allocations: 0 / 366.3 MB, free: 4.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002138/0.1077, allocations: 52.84 kB / 366.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1078, allocations: 39.91 kB / 366.4 MB, free: 4.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002002/0.1099, allocations: 1.822 MB / 368.2 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001801/0.1101, allocations: 23.97 kB / 368.2 MB, free: 2.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.1101, allocations: 8 kB / 368.3 MB, free: 2.582 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.0001419/0.1102, allocations: 137.7 kB / 368.4 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.421e-05/0.1103, allocations: 27.66 kB / 368.4 MB, free: 2.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.209e-05/0.1104, allocations: 29.92 kB / 368.4 MB, free: 2.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.336e-06/0.1104, allocations: 4 kB / 368.5 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.1104, allocations: 0 / 368.5 MB, free: 2.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.1104, allocations: 3.938 kB / 368.5 MB, free: 2.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008393/0.1112, allocations: 0.6087 MB / 369.1 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1112, allocations: 4.062 kB / 369.1 MB, free: 1.703 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.1114, allocations: 31.98 kB / 369.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001381/0.1116, allocations: 52.83 kB / 369.2 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.1116, allocations: 8 kB / 369.2 MB, free: 1.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1688/0.2804, allocations: 1.653 MB / 370.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.2804, allocations: 2.797 kB / 370.8 MB, free: 19.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007858/0.2812, allocations: 425 kB / 371.2 MB, free: 19.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.2813, allocations: 112.7 kB / 371.3 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/0.2814, allocations: 8.266 kB / 371.3 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000213/0.2816, allocations: 21.78 kB / 371.4 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.2818, allocations: 68.61 kB / 371.4 MB, free: 19.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.2818, allocations: 5.734 kB / 371.4 MB, free: 19.26 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001646/0.282, allocations: 160.9 kB / 371.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.282, allocations: 0 / 371.6 MB, free: 19.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004328/0.2824, allocations: 69.05 kB / 371.7 MB, free: 19.18 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.0008103/0.2832, allocations: 367.2 kB / 372 MB, free: 19.05 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006451/0.2839, allocations: 319.3 kB / 372.3 MB, free: 18.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2839, allocations: 4.891 kB / 372.3 MB, free: 18.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000319/0.2842, allocations: 231.7 kB / 372.6 MB, free: 18.83 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.2847, allocations: 48.17 kB / 372.6 MB, free: 18.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001187/0.2859, allocations: 0.7686 MB / 373.4 MB, free: 18.39 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.2861, allocations: 0.7491 MB / 374.1 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001007/0.2862, allocations: 28.02 kB / 374.2 MB, free: 17.68 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.085e-05/0.2862, allocations: 21.81 kB / 374.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2862, allocations: 0 / 374.2 MB, free: 17.67 MB / 302.1 MB Notification: Performance of Templates: time 0.008283/0.2945, allocations: 3.786 MB / 378 MB, free: 17.41 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