Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001379/0.001379, allocations: 114.5 kB / 17.94 MB, free: 5.672 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.001571/0.001571, allocations: 193.8 kB / 18.86 MB, free: 4.754 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.1 MB / 224.7 MB, free: 12.45 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 51.92 kB / 280.8 MB, free: 3.496 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08949/0.09076, allocations: 46.63 MB / 327.4 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003747/0.09455, allocations: 2.216 MB / 329.6 MB, free: 2.562 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.09621, allocations: 0.7333 MB / 330.4 MB, free: 1.82 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002433/0.09648, allocations: 4 kB / 330.4 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002349/0.09675, allocations: 19.84 kB / 330.4 MB, free: 1.797 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.09706, allocations: 63.53 kB / 330.5 MB, free: 1.734 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.09754, allocations: 99.84 kB / 330.6 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004293/0.09799, allocations: 267.5 kB / 330.8 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.09821, allocations: 60.34 kB / 330.9 MB, free: 1.316 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003036/0.09852, allocations: 119.5 kB / 331 MB, free: 1.199 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002997/0.09883, allocations: 127.5 kB / 331.1 MB, free: 1.074 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.555e-05/0.0989, allocations: 20 kB / 331.1 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001713/0.09908, allocations: 71.94 kB / 331.2 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 9.329e-05/0.09918, allocations: 47.83 kB / 331.3 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.09933, allocations: 111.4 kB / 331.4 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.09963, allocations: 211.8 kB / 331.6 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.09964, allocations: 4 kB / 331.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.09965, allocations: 0 / 331.6 MB, free: 0.6172 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.09967, allocations: 0 / 331.6 MB, free: 0.6172 MB / 270.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.001158/0.1008, allocations: 0.5626 MB / 332.1 MB, free: 0 / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.099e-05/0.1009, allocations: 15.94 kB / 332.2 MB, free: 15.98 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.114e-05/0.101, allocations: 24.66 kB / 332.2 MB, free: 15.96 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003156/0.1013, allocations: 235.9 kB / 332.4 MB, free: 15.69 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.9e-05/0.1014, allocations: 20.36 kB / 332.4 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.49e-05/0.1014, allocations: 20.38 kB / 332.4 MB, free: 15.65 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000544/0.102, allocations: 231.5 kB / 332.7 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.147e-05/0.102, allocations: 0 / 332.7 MB, free: 15.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.941e-05/0.102, allocations: 12 kB / 332.7 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.133e-05/0.102, allocations: 4 kB / 332.7 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004894/0.1025, allocations: 195.8 kB / 332.9 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001142/0.1037, allocations: 0.672 MB / 333.6 MB, free: 14.48 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005721/0.1043, allocations: 202.3 kB / 333.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002191/0.1045, allocations: 96.81 kB / 333.8 MB, free: 14.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.8e-05/0.1046, allocations: 4 kB / 333.9 MB, free: 14.17 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004812/0.105, allocations: 171.5 kB / 334 MB, free: 13.99 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.683e-06/0.1051, allocations: 0 / 334 MB, free: 13.99 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002471/0.1075, allocations: 1.156 MB / 335.2 MB, free: 12.72 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.1076, allocations: 59.34 kB / 335.2 MB, free: 12.65 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.1079, allocations: 186.9 kB / 335.4 MB, free: 12.46 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.911e-05/0.1079, allocations: 33.7 kB / 335.4 MB, free: 12.42 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.108, allocations: 140.3 kB / 335.6 MB, free: 12.28 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.476e-05/0.1081, allocations: 86.75 kB / 335.7 MB, free: 12.2 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001338/0.1082, allocations: 61.69 kB / 335.7 MB, free: 12.13 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001835/0.1084, allocations: 330.8 kB / 336.1 MB, free: 11.8 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002728/0.1087, allocations: 112.2 kB / 336.2 MB, free: 11.69 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000293/0.109, allocations: 148 kB / 336.3 MB, free: 11.53 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005041/0.1095, allocations: 246.7 kB / 336.5 MB, free: 11.27 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-06/0.1095, allocations: 0 / 336.5 MB, free: 11.27 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008821/0.1104, allocations: 396.9 kB / 336.9 MB, free: 10.87 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.937e-05/0.1105, allocations: 41.69 kB / 337 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.1105, allocations: 7.938 kB / 337 MB, free: 10.82 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002433/0.1107, allocations: 72.81 kB / 337.1 MB, free: 10.74 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002089/0.111, allocations: 51.89 kB / 337.1 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005518/0.1115, allocations: 0.607 MB / 337.7 MB, free: 10.06 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002627/0.1118, allocations: 36.06 kB / 337.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.043e-05/0.1118, allocations: 12 kB / 337.8 MB, free: 10.01 MB / 286.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.0001521/0.112, allocations: 146 kB / 337.9 MB, free: 9.859 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.112, allocations: 19.72 kB / 337.9 MB, free: 9.84 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.732e-05/0.1121, allocations: 25.88 kB / 337.9 MB, free: 9.812 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.1121, allocations: 4 kB / 338 MB, free: 9.809 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.593e-06/0.1121, allocations: 4 kB / 338 MB, free: 9.805 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1121, allocations: 3.984 kB / 338 MB, free: 9.801 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001211/0.1134, allocations: 0.6747 MB / 338.6 MB, free: 9.066 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.085e-06/0.1134, allocations: 48 / 338.6 MB, free: 9.066 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.1136, allocations: 47.89 kB / 338.7 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00018/0.1138, allocations: 68.88 kB / 338.7 MB, free: 8.949 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.621e-05/0.1138, allocations: 11.98 kB / 338.8 MB, free: 8.938 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005866/0.1144, allocations: 0.5992 MB / 339.4 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.1144, allocations: 0 / 339.4 MB, free: 8.312 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009911/0.1154, allocations: 0.5153 MB / 339.9 MB, free: 7.777 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001012/0.1156, allocations: 108.9 kB / 340 MB, free: 7.652 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.94e-05/0.1156, allocations: 15.94 kB / 340 MB, free: 7.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002504/0.1159, allocations: 31.95 kB / 340 MB, free: 7.605 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.116, allocations: 31.95 kB / 340.1 MB, free: 7.574 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.116, allocations: 8 kB / 340.1 MB, free: 7.566 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.1161, allocations: 135.2 kB / 340.2 MB, free: 7.434 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1161, allocations: 4 kB / 340.2 MB, free: 7.43 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003794/0.1165, allocations: 72 kB / 340.3 MB, free: 7.359 MB / 286.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.00022/0.1167, allocations: 127.2 kB / 340.4 MB, free: 7.227 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0008292/0.1176, allocations: 336.8 kB / 340.7 MB, free: 6.887 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1176, allocations: 0 / 340.7 MB, free: 6.887 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003441/0.118, allocations: 139.8 kB / 340.9 MB, free: 6.75 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004115/0.1184, allocations: 51.88 kB / 340.9 MB, free: 6.699 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001462/0.1198, allocations: 0.7585 MB / 341.7 MB, free: 5.91 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004213/0.1203, allocations: 0.7439 MB / 342.4 MB, free: 5.141 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.793e-05/0.1204, allocations: 19.44 kB / 342.4 MB, free: 5.121 MB / 286.1 MB Notification: Performance of SimCode: time 1.022e-06/0.1204, allocations: 0 / 342.4 MB, free: 5.121 MB / 286.1 MB Notification: Performance of Templates: time 0.006666/0.127, allocations: 3.789 MB / 346.2 MB, free: 1.324 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches