Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_cpp_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_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001605/0.001605, allocations: 203.3 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 226.5 MB / 245.3 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007755/0.0007757, allocations: 95.25 kB / 297.4 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002164/0.0002164, allocations: 8 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2002/0.2005, allocations: 51.29 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09263/0.2931, allocations: 80.85 MB / 489.5 MB, free: 10.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001987/0.2934, allocations: 67.97 kB / 489.6 MB, free: 10.67 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01556/0.3089, allocations: 5.784 MB / 495.4 MB, free: 4.891 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.309, allocations: 0 / 495.4 MB, free: 4.891 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.309, allocations: 4 kB / 495.4 MB, free: 4.887 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0008356/0.3099, allocations: 0.5588 MB / 495.9 MB, free: 4.27 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.852e-05/0.3099, allocations: 16.02 kB / 495.9 MB, free: 4.254 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001512/0.3101, allocations: 32.66 kB / 496 MB, free: 4.223 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002644/0.3103, allocations: 239.9 kB / 496.2 MB, free: 3.949 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.3104, allocations: 16.38 kB / 496.2 MB, free: 3.934 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.265e-05/0.3104, allocations: 28.27 kB / 496.2 MB, free: 3.906 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004442/0.3109, allocations: 239.7 kB / 496.5 MB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.415e-05/0.3109, allocations: 192 / 496.5 MB, free: 3.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.403e-05/0.3109, allocations: 7.938 kB / 496.5 MB, free: 3.652 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.3109, allocations: 11.98 kB / 496.5 MB, free: 3.641 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004575/0.3114, allocations: 195.7 kB / 496.7 MB, free: 3.449 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008989/0.3123, allocations: 0.6525 MB / 497.3 MB, free: 2.742 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005326/0.3129, allocations: 214.5 kB / 497.6 MB, free: 2.523 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002309/0.3131, allocations: 105.8 kB / 497.7 MB, free: 2.418 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.3131, allocations: 8 kB / 497.7 MB, free: 2.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003435/0.3135, allocations: 175.1 kB / 497.8 MB, free: 2.227 MB / 362.7 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.3135, allocations: 4 kB / 497.8 MB, free: 2.223 MB / 362.7 MB Notification: Performance of matching and sorting (n=27): time 0.002333/0.3158, allocations: 1.215 MB / 499.1 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.442e-05/0.3159, allocations: 59.41 kB / 499.1 MB, free: 0.8242 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.3161, allocations: 191.3 kB / 499.3 MB, free: 0.625 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.3161, allocations: 37.69 kB / 499.3 MB, free: 0.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.882e-05/0.3162, allocations: 128.3 kB / 499.5 MB, free: 464 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.687e-05/0.3163, allocations: 94.73 kB / 499.6 MB, free: 368 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.3163, allocations: 4 kB / 499.6 MB, free: 364 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001022/0.3164, allocations: 342.8 kB / 499.9 MB, free: 12 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.3167, allocations: 107.9 kB / 500 MB, free: 15.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002891/0.317, allocations: 151.7 kB / 0.4884 GB, free: 15.75 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004738/0.3175, allocations: 251.4 kB / 0.4887 GB, free: 15.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.3175, allocations: 3.984 kB / 0.4887 GB, free: 15.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007659/0.3183, allocations: 394.4 kB / 0.489 GB, free: 15.08 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.659e-05/0.3183, allocations: 37.69 kB / 0.4891 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.3183, allocations: 48 / 0.4891 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001829/0.3185, allocations: 60.77 kB / 0.4891 GB, free: 14.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002005/0.3187, allocations: 55.94 kB / 0.4892 GB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001611/0.3204, allocations: 1.63 MB / 0.4908 GB, free: 13.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002598/0.3206, allocations: 44.06 kB / 0.4908 GB, free: 13.11 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.663e-05/0.3207, allocations: 15.98 kB / 0.4908 GB, free: 13.1 MB / 378.7 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 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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.000141/0.3208, allocations: 141.9 kB / 0.491 GB, free: 12.95 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-05/0.3209, allocations: 23.72 kB / 0.491 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.561e-05/0.3209, allocations: 30.55 kB / 0.491 GB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.3209, allocations: 4 kB / 0.491 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.284e-06/0.321, allocations: 4 kB / 0.491 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.321, allocations: 0 / 0.491 GB, free: 12.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001076/0.322, allocations: 0.702 MB / 0.4917 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.3221, allocations: 0 / 0.4917 GB, free: 12.13 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002201/0.3223, allocations: 51.91 kB / 0.4918 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001368/0.3224, allocations: 48.83 kB / 0.4918 GB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.288e-05/0.3225, allocations: 8 kB / 0.4918 GB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001315/0.3238, allocations: 1.543 MB / 0.4933 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3238, allocations: 3.938 kB / 0.4933 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009668/0.3248, allocations: 0.5239 MB / 0.4938 GB, free: 9.797 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.3249, allocations: 120.8 kB / 0.494 GB, free: 9.66 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.601e-05/0.3249, allocations: 8 kB / 0.494 GB, free: 9.652 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002463/0.3252, allocations: 43.95 kB / 0.494 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.3254, allocations: 71.86 kB / 0.4941 GB, free: 9.539 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.862e-05/0.3254, allocations: 4 kB / 0.4941 GB, free: 9.535 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001307/0.3255, allocations: 148.3 kB / 0.4942 GB, free: 9.391 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.483e-06/0.3255, allocations: 4 kB / 0.4942 GB, free: 9.387 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004044/0.326, allocations: 91.86 kB / 0.4943 GB, free: 9.297 MB / 378.7 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 (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0007561/0.3267, allocations: 380.5 kB / 0.4947 GB, free: 9.043 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008272/0.3276, allocations: 470.8 kB / 0.4951 GB, free: 8.559 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3276, allocations: 0 / 0.4951 GB, free: 8.559 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004122/0.328, allocations: 266.5 kB / 0.4954 GB, free: 8.285 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004187/0.3284, allocations: 58.52 kB / 0.4954 GB, free: 8.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.3297, allocations: 0.823 MB / 0.4962 GB, free: 7.375 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.33, allocations: 0.7479 MB / 0.497 GB, free: 6.602 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.912e-05/0.3301, allocations: 27.42 kB / 0.497 GB, free: 6.574 MB / 378.7 MB Notification: Performance of SimCode: time 2.8e-07/0.3301, allocations: 4 kB / 0.497 GB, free: 6.57 MB / 378.7 MB Notification: Performance of Templates: time 0.006056/0.3361, allocations: 4.309 MB / 0.5012 GB, free: 2.266 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches