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.001006/0.001006, allocations: 107.8 kB / 17.06 MB, free: 6.137 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.0009543/0.0009544, allocations: 188 kB / 18 MB, free: 5.219 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.347/1.347, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009175/0.0009175, allocations: 51.92 kB / 351.3 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2569/0.2579, allocations: 49.43 MB / 400.7 MB, free: 8.977 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003319/0.2612, allocations: 2.164 MB / 402.9 MB, free: 6.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001208/0.2625, allocations: 0.705 MB / 403.6 MB, free: 6.16 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001257/0.2626, allocations: 7.938 kB / 403.6 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.2628, allocations: 27.72 kB / 403.6 MB, free: 6.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001871/0.263, allocations: 75.41 kB / 403.7 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003508/0.2634, allocations: 111.7 kB / 403.8 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002935/0.2637, allocations: 279.4 kB / 404.1 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.2638, allocations: 52.38 kB / 404.1 MB, free: 5.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001841/0.264, allocations: 119.5 kB / 404.2 MB, free: 5.5 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001807/0.2642, allocations: 127.5 kB / 404.4 MB, free: 5.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.77e-05/0.2643, allocations: 24 kB / 404.4 MB, free: 5.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001248/0.2644, allocations: 75.88 kB / 404.5 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.702e-05/0.2645, allocations: 43.84 kB / 404.5 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001214/0.2646, allocations: 119.4 kB / 404.6 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003179/0.2649, allocations: 280.4 kB / 404.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2649, allocations: 0 / 404.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2649, allocations: 0 / 404.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.871e-06/0.265, allocations: 0 / 404.9 MB, free: 4.844 MB / 318.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.001/0.266, allocations: 0.5627 MB / 405.5 MB, free: 4.227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.266, allocations: 8.031 kB / 405.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.391e-05/0.2661, allocations: 20.75 kB / 405.5 MB, free: 4.199 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002739/0.2663, allocations: 243.8 kB / 405.7 MB, free: 3.922 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.2664, allocations: 16.38 kB / 405.7 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.53e-05/0.2664, allocations: 20.31 kB / 405.8 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004775/0.2669, allocations: 243.5 kB / 406 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.478e-05/0.2669, allocations: 0 / 406 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.44e-05/0.267, allocations: 12 kB / 406 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.813e-06/0.267, allocations: 4 kB / 406 MB, free: 3.621 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004567/0.2674, allocations: 187.8 kB / 406.2 MB, free: 3.438 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001019/0.2685, allocations: 0.6681 MB / 406.9 MB, free: 2.715 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005863/0.2691, allocations: 206.3 kB / 407.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/0.2693, allocations: 96.8 kB / 407.2 MB, free: 2.406 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.2693, allocations: 11.98 kB / 407.2 MB, free: 2.395 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003358/0.2697, allocations: 163.2 kB / 407.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.713e-06/0.2697, allocations: 0 / 407.3 MB, free: 2.227 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002272/0.272, allocations: 1.146 MB / 408.5 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.875e-05/0.272, allocations: 55.41 kB / 408.5 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001773/0.2722, allocations: 195.9 kB / 408.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.2722, allocations: 37.64 kB / 408.8 MB, free: 0.6523 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.527e-05/0.2723, allocations: 140.2 kB / 408.9 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.647e-05/0.2724, allocations: 90.75 kB / 409 MB, free: 432 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.859e-05/0.2725, allocations: 53.7 kB / 409 MB, free: 372 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001228/0.2726, allocations: 342.8 kB / 409.4 MB, free: 20 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002678/0.2729, allocations: 108 kB / 409.5 MB, free: 15.91 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002832/0.2732, allocations: 148.9 kB / 409.6 MB, free: 15.75 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004607/0.2737, allocations: 246.7 kB / 409.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.2737, allocations: 0 / 409.9 MB, free: 15.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007903/0.2745, allocations: 397.8 kB / 410.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.761e-05/0.2745, allocations: 36.58 kB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.2745, allocations: 7.938 kB / 410.3 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002452/0.2748, allocations: 76.8 kB / 410.4 MB, free: 14.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002013/0.275, allocations: 47.91 kB / 410.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004847/0.2755, allocations: 0.607 MB / 411 MB, free: 14.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.2758, allocations: 40.02 kB / 411.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.706e-05/0.2758, allocations: 12 kB / 411.1 MB, free: 14.23 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 (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.0001417/0.2759, allocations: 141.7 kB / 411.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.627e-05/0.276, allocations: 23.72 kB / 411.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.322e-05/0.2761, allocations: 33.8 kB / 411.3 MB, free: 14.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.2761, allocations: 4 kB / 411.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.2761, allocations: 4 kB / 411.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.2761, allocations: 0 / 411.3 MB, free: 14.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.2771, allocations: 0.6712 MB / 412 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.2772, allocations: 3.984 kB / 412 MB, free: 13.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002079/0.2774, allocations: 43.91 kB / 412 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001641/0.2775, allocations: 72.8 kB / 412.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.257e-05/0.2776, allocations: 4 kB / 412.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004303/0.278, allocations: 0.607 MB / 412.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.278, allocations: 0 / 412.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009348/0.279, allocations: 0.5084 MB / 413.2 MB, free: 12 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.872e-05/0.2791, allocations: 112.9 kB / 413.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.62e-05/0.2791, allocations: 8 kB / 413.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002308/0.2794, allocations: 31.97 kB / 413.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/0.2795, allocations: 31.89 kB / 413.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.299e-05/0.2795, allocations: 15.98 kB / 413.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.2796, allocations: 135.2 kB / 413.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2796, allocations: 0 / 413.5 MB, free: 11.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003463/0.28, allocations: 75.98 kB / 413.6 MB, free: 11.58 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 (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.000243/0.2802, allocations: 119.2 kB / 413.7 MB, free: 11.45 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008252/0.281, allocations: 332.9 kB / 414 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.2811, allocations: 0 / 414 MB, free: 11.11 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003574/0.2814, allocations: 143.7 kB / 414.2 MB, free: 10.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004047/0.2818, allocations: 40.19 kB / 414.2 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001417/0.2833, allocations: 0.663 MB / 414.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003088/0.2836, allocations: 0.744 MB / 415.6 MB, free: 9.473 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.507e-05/0.2837, allocations: 29.92 kB / 415.6 MB, free: 9.445 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.441e-05/0.2838, allocations: 23.44 kB / 415.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2838, allocations: 0 / 415.7 MB, free: 9.426 MB / 334.1 MB Notification: Performance of Templates: time 0.007784/0.2916, allocations: 3.83 MB / 419.5 MB, free: 5.621 MB / 334.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