Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.OneWayClutch,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.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_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00155/0.00155, allocations: 116.3 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001861/0.001861, allocations: 210 kB / 19.4 MB, free: 3.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.962/1.962, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 55.91 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2577/0.2588, allocations: 50.55 MB / 409.9 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00349/0.2624, allocations: 2.278 MB / 412.2 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001367/0.2638, allocations: 0.8645 MB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.2639, allocations: 7.938 kB / 413.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002739/0.2642, allocations: 51.62 kB / 413.1 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002714/0.2645, allocations: 107.2 kB / 413.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002426/0.2647, allocations: 83.83 kB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.2651, allocations: 291.4 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001597/0.2653, allocations: 64.34 kB / 413.6 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002363/0.2655, allocations: 135.5 kB / 413.8 MB, free: 13.69 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.2657, allocations: 131.5 kB / 413.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.236e-05/0.2658, allocations: 24 kB / 413.9 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001419/0.2659, allocations: 79.97 kB / 414 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.58e-05/0.266, allocations: 55.83 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001178/0.2661, allocations: 119.4 kB / 414.2 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003607/0.2665, allocations: 324.1 kB / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2665, allocations: 0 / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2665, allocations: 0 / 414.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.639e-06/0.2665, allocations: 0 / 414.5 MB, free: 12.98 MB / 334.1 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.001013/0.2676, allocations: 0.5821 MB / 415.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.62e-05/0.2676, allocations: 12.03 kB / 415.1 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001757/0.2678, allocations: 32.64 kB / 415.1 MB, free: 12.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003691/0.2682, allocations: 253.5 kB / 415.4 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.2682, allocations: 12.38 kB / 415.4 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.187e-05/0.2682, allocations: 20.38 kB / 415.4 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000465/0.2687, allocations: 235.2 kB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.2687, allocations: 7.906 kB / 415.6 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.38e-05/0.2688, allocations: 8 kB / 415.6 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.2688, allocations: 7.984 kB / 415.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004966/0.2693, allocations: 179.9 kB / 415.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009734/0.2703, allocations: 0.6447 MB / 416.5 MB, free: 10.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005589/0.2708, allocations: 194.5 kB / 416.7 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002511/0.2711, allocations: 112.7 kB / 416.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.56e-05/0.2711, allocations: 11.98 kB / 416.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003635/0.2715, allocations: 171.1 kB / 417 MB, free: 10.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.2715, allocations: 0 / 417 MB, free: 10.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=27): time 0.002496/0.274, allocations: 1.152 MB / 418.1 MB, free: 9.07 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.223e-05/0.2741, allocations: 59.41 kB / 418.2 MB, free: 9 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.2743, allocations: 199.4 kB / 418.4 MB, free: 8.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.798e-05/0.2743, allocations: 29.7 kB / 418.4 MB, free: 8.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.263e-05/0.2744, allocations: 132.3 kB / 418.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.947e-05/0.2745, allocations: 98.67 kB / 418.6 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001032/0.2746, allocations: 57.7 kB / 418.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.2747, allocations: 334.8 kB / 419 MB, free: 8.129 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002639/0.275, allocations: 103.9 kB / 419.1 MB, free: 8.027 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.2753, allocations: 144.1 kB / 419.2 MB, free: 7.875 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000487/0.2758, allocations: 242.6 kB / 419.5 MB, free: 7.621 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2758, allocations: 4 kB / 419.5 MB, free: 7.617 MB / 334.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0007827/0.2766, allocations: 373.6 kB / 419.8 MB, free: 7.238 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.441e-05/0.2766, allocations: 29.7 kB / 419.9 MB, free: 7.203 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.093e-06/0.2767, allocations: 8.062 kB / 419.9 MB, free: 7.195 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002044/0.2769, allocations: 56.77 kB / 419.9 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002136/0.2771, allocations: 51.91 kB / 420 MB, free: 7.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002022/0.2791, allocations: 1.803 MB / 421.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002695/0.2794, allocations: 40.02 kB / 421.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.832e-05/0.2794, allocations: 12 kB / 421.8 MB, free: 5.09 MB / 334.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 (31): * Single equations (assignments): 29 * 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.0001502/0.2796, allocations: 149.7 kB / 422 MB, free: 4.938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.294e-05/0.2796, allocations: 19.72 kB / 422 MB, free: 4.918 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.524e-05/0.2797, allocations: 30.55 kB / 422 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2797, allocations: 4 kB / 422 MB, free: 4.887 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2797, allocations: 3.938 kB / 422 MB, free: 4.883 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.2797, allocations: 4 kB / 422.1 MB, free: 4.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001127/0.2809, allocations: 0.6831 MB / 422.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2809, allocations: 0 / 422.7 MB, free: 4.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002309/0.2811, allocations: 51.89 kB / 422.8 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001434/0.2813, allocations: 48.84 kB / 422.8 MB, free: 4.035 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.081e-05/0.2813, allocations: 11.98 kB / 422.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001511/0.2828, allocations: 1.649 MB / 424.5 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.572e-06/0.2828, allocations: 4 kB / 424.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000989/0.2838, allocations: 0.5054 MB / 425 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001176/0.284, allocations: 116.9 kB / 425.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.284, allocations: 8 kB / 425.1 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002439/0.2843, allocations: 31.91 kB / 425.2 MB, free: 1.531 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001623/0.2844, allocations: 75.88 kB / 425.2 MB, free: 1.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.2845, allocations: 8 kB / 425.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001406/0.2846, allocations: 147.2 kB / 425.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2846, allocations: 0 / 425.4 MB, free: 1.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000403/0.285, allocations: 72 kB / 425.5 MB, free: 1.234 MB / 334.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 (21): * Single equations (assignments): 18 * 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.0008376/0.2859, allocations: 368 kB / 425.8 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008677/0.2867, allocations: 441.8 kB / 426.2 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.2868, allocations: 4 kB / 426.2 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004357/0.2872, allocations: 270.6 kB / 426.5 MB, free: 256 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004255/0.2876, allocations: 49.42 kB / 426.6 MB, free: 212 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.289, allocations: 0.7042 MB / 427.3 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.2893, allocations: 0.744 MB / 428 MB, free: 14.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.087e-05/0.2894, allocations: 35.42 kB / 428 MB, free: 14.66 MB / 350.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2894, allocations: 0 / 428 MB, free: 14.66 MB / 350.1 MB Notification: Performance of Templates: time 0.006736/0.2961, allocations: 4.388 MB / 432.4 MB, free: 10.29 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches