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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001285/0.001285, allocations: 181.7 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.284/1.284, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008153/0.0008153, allocations: 85.61 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002674/0.0002675, allocations: 11.92 kB / 351.1 MB, free: 15.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2124/0.2127, allocations: 50.39 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0933/0.306, allocations: 79.21 MB / 480.7 MB, free: 1.305 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.3063, allocations: 69.94 kB / 480.8 MB, free: 1.238 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01203/0.3183, allocations: 4.164 MB / 484.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3184, allocations: 0 / 484.9 MB, free: 13.08 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.3184, allocations: 8 kB / 484.9 MB, free: 13.07 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0008827/0.3193, allocations: 0.5393 MB / 485.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.771e-05/0.3193, allocations: 12.03 kB / 485.5 MB, free: 12.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.348e-05/0.3194, allocations: 27.66 kB / 485.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002619/0.3197, allocations: 222.7 kB / 485.7 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.3197, allocations: 12 kB / 485.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.941e-05/0.3198, allocations: 27.89 kB / 485.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004853/0.3203, allocations: 236.6 kB / 486 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.597e-05/0.3203, allocations: 4 kB / 486 MB, free: 11.9 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.505e-05/0.3203, allocations: 7.953 kB / 486 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.824e-06/0.3203, allocations: 4 kB / 486 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004893/0.3208, allocations: 203.8 kB / 486.2 MB, free: 11.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001022/0.3219, allocations: 0.6487 MB / 486.9 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005418/0.3224, allocations: 218.4 kB / 487.1 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.352e-05/0.3225, allocations: 7.984 kB / 487.1 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003727/0.3229, allocations: 175.7 kB / 487.3 MB, free: 10.57 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.693e-06/0.3229, allocations: 0 / 487.3 MB, free: 10.57 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.002539/0.3254, allocations: 1.256 MB / 488.5 MB, free: 9.203 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.619e-05/0.3255, allocations: 55.41 kB / 488.6 MB, free: 9.137 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001423/0.3256, allocations: 158.4 kB / 488.7 MB, free: 8.973 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.838e-05/0.3257, allocations: 29.7 kB / 488.7 MB, free: 8.938 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.778e-05/0.3257, allocations: 132.4 kB / 488.9 MB, free: 8.801 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.014e-05/0.3258, allocations: 90.66 kB / 489 MB, free: 8.711 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.788e-05/0.3258, allocations: 8 kB / 489 MB, free: 8.703 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.326, allocations: 334.8 kB / 489.3 MB, free: 8.367 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.3263, allocations: 108.3 kB / 489.4 MB, free: 8.262 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00029/0.3266, allocations: 156.2 kB / 489.6 MB, free: 8.094 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002589/0.3268, allocations: 123.9 kB / 489.7 MB, free: 7.969 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.098e-05/0.3269, allocations: 7.938 kB / 489.7 MB, free: 7.961 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008509/0.3277, allocations: 409.8 kB / 490.1 MB, free: 7.547 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.046e-05/0.3278, allocations: 33.7 kB / 490.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.3278, allocations: 0 / 490.1 MB, free: 7.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/0.328, allocations: 72.86 kB / 490.2 MB, free: 7.434 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002057/0.3283, allocations: 47.91 kB / 490.2 MB, free: 7.387 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000488/0.3288, allocations: 0.6109 MB / 490.9 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002626/0.329, allocations: 44.02 kB / 490.9 MB, free: 6.707 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.3291, allocations: 16 kB / 490.9 MB, free: 6.691 MB / 362.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 (32): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.000151/0.3292, allocations: 137.8 kB / 491 MB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.3293, allocations: 19.72 kB / 491.1 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007017/0.33, allocations: 329.8 kB / 491.4 MB, free: 6.191 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.33, allocations: 4 kB / 491.4 MB, free: 6.188 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.33, allocations: 7.984 kB / 491.4 MB, free: 6.18 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.33, allocations: 3.953 kB / 491.4 MB, free: 6.176 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.3312, allocations: 0.699 MB / 492.1 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3312, allocations: 0 / 492.1 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.3314, allocations: 47.91 kB / 492.1 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001476/0.3316, allocations: 56.83 kB / 492.2 MB, free: 5.309 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.51e-05/0.3316, allocations: 16.02 kB / 492.2 MB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004138/0.332, allocations: 0.5952 MB / 492.8 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.836e-06/0.332, allocations: 4.031 kB / 492.8 MB, free: 4.668 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009913/0.333, allocations: 0.5414 MB / 493.4 MB, free: 4.098 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.3332, allocations: 108.9 kB / 493.5 MB, free: 3.973 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.3332, allocations: 8 kB / 493.5 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002545/0.3335, allocations: 35.97 kB / 493.5 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.3336, allocations: 44.02 kB / 493.5 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3336, allocations: 7.984 kB / 493.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001181/0.3337, allocations: 131.5 kB / 493.7 MB, free: 3.75 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.3338, allocations: 0 / 493.7 MB, free: 3.75 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00038/0.3341, allocations: 79.92 kB / 493.8 MB, free: 3.672 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0002381/0.3344, allocations: 137.7 kB / 493.9 MB, free: 3.527 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008499/0.3352, allocations: 380.6 kB / 494.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3353, allocations: 0 / 494.3 MB, free: 3.137 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003594/0.3356, allocations: 152 kB / 494.4 MB, free: 2.988 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003176/0.336, allocations: 40.11 kB / 494.5 MB, free: 2.945 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001288/0.3373, allocations: 0.7875 MB / 495.2 MB, free: 2.133 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003457/0.3376, allocations: 0.752 MB / 496 MB, free: 1.355 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.982e-05/0.3377, allocations: 21.94 kB / 496 MB, free: 1.332 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.861e-05/0.3378, allocations: 27.42 kB / 496 MB, free: 1.305 MB / 362.7 MB Notification: Performance of SimCode: time 3.2e-07/0.3378, allocations: 0 / 496 MB, free: 1.305 MB / 362.7 MB Notification: Performance of Templates: time 0.006452/0.3443, allocations: 3.261 MB / 499.3 MB, free: 14.07 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches