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.001421/0.001421, allocations: 111.9 kB / 18.4 MB, free: 4.566 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.001349/0.001349, allocations: 190.3 kB / 19.33 MB, free: 3.648 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.464/1.464, allocations: 205.1 MB / 225.2 MB, free: 12.23 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.001226/0.001226, allocations: 47.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1045, allocations: 46.62 MB / 375.8 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003866/0.1085, allocations: 2.163 MB / 378 MB, free: 2.426 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001719/0.1102, allocations: 0.7485 MB / 378.7 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002903/0.1105, allocations: 4 kB / 378.7 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.1109, allocations: 35.66 kB / 378.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003218/0.1112, allocations: 67.47 kB / 378.8 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005706/0.1118, allocations: 111.7 kB / 378.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004564/0.1122, allocations: 271.4 kB / 379.2 MB, free: 1.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001735/0.1124, allocations: 64.33 kB / 379.3 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002644/0.1127, allocations: 115.6 kB / 379.4 MB, free: 1.012 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002606/0.113, allocations: 131.5 kB / 379.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.713e-05/0.113, allocations: 20 kB / 379.5 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001699/0.1132, allocations: 67.94 kB / 379.6 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.098e-05/0.1133, allocations: 55.83 kB / 379.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001332/0.1135, allocations: 115.4 kB / 379.7 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004142/0.1139, allocations: 283 kB / 380 MB, free: 360 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.1139, allocations: 0 / 380 MB, free: 360 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.1139, allocations: 0 / 380 MB, free: 360 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.545e-05/0.1139, allocations: 4 kB / 380 MB, free: 356 kB / 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.219/0.3329, allocations: 0.5555 MB / 380.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.778e-05/0.333, allocations: 12.11 kB / 380.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.601e-05/0.3331, allocations: 26.02 kB / 380.6 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.3335, allocations: 234.5 kB / 380.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.456e-05/0.3335, allocations: 17.06 kB / 380.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.246e-05/0.3336, allocations: 21.78 kB / 380.9 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005369/0.3341, allocations: 237 kB / 381.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.843e-05/0.3341, allocations: 0.9375 kB / 381.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.912e-05/0.3342, allocations: 13.89 kB / 381.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.265e-06/0.3342, allocations: 3.812 kB / 381.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005016/0.3347, allocations: 197.8 kB / 381.3 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.3357, allocations: 0.6598 MB / 382 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006577/0.3364, allocations: 200.9 kB / 382.2 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.3366, allocations: 106.8 kB / 382.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.3367, allocations: 1.375 kB / 382.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003631/0.337, allocations: 166 kB / 382.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.016e-06/0.337, allocations: 2.172 kB / 382.5 MB, free: 12.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002565/0.3396, allocations: 1.155 MB / 383.6 MB, free: 11.71 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.3397, allocations: 55.48 kB / 383.7 MB, free: 11.65 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002479/0.3399, allocations: 192.5 kB / 383.9 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.34, allocations: 32.17 kB / 383.9 MB, free: 11.48 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.101e-05/0.3401, allocations: 132.9 kB / 384 MB, free: 11.37 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.86e-05/0.3401, allocations: 90.28 kB / 384.1 MB, free: 11.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.3402, allocations: 64.67 kB / 384.2 MB, free: 11.26 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.22e-05/0.3403, allocations: 329.5 kB / 384.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/0.3406, allocations: 109.1 kB / 384.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002855/0.3409, allocations: 149 kB / 384.7 MB, free: 10.84 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004818/0.3414, allocations: 254 kB / 385 MB, free: 10.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.3414, allocations: 0.875 kB / 385 MB, free: 10.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008313/0.3423, allocations: 398.1 kB / 385.4 MB, free: 10.52 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.3423, allocations: 36.73 kB / 385.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.3423, allocations: 1.094 kB / 385.4 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002558/0.3426, allocations: 72 kB / 385.5 MB, free: 10.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002138/0.3428, allocations: 55.73 kB / 385.5 MB, free: 10.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003847/0.3432, allocations: 0.6149 MB / 386.2 MB, free: 9.891 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002747/0.3435, allocations: 36.11 kB / 386.2 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.475e-05/0.3435, allocations: 10.69 kB / 386.2 MB, free: 9.883 MB / 318.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.0001232/0.3437, allocations: 148.4 kB / 386.3 MB, free: 9.742 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.374e-05/0.3437, allocations: 18.38 kB / 386.4 MB, free: 9.734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.676e-05/0.3438, allocations: 28.03 kB / 386.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.3438, allocations: 3.562 kB / 386.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.3438, allocations: 0 / 386.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.3438, allocations: 1.406 kB / 386.4 MB, free: 9.711 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.3449, allocations: 0.6797 MB / 387.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.3449, allocations: 2.156 kB / 387.1 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000228/0.3452, allocations: 40.39 kB / 387.1 MB, free: 9.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001607/0.3453, allocations: 66.2 kB / 387.2 MB, free: 9.238 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.125e-05/0.3454, allocations: 6.953 kB / 387.2 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003235/0.3457, allocations: 0.6064 MB / 387.8 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3457, allocations: 0 / 387.8 MB, free: 8.68 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009479/0.3467, allocations: 0.5123 MB / 388.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.912e-05/0.3468, allocations: 114 kB / 388.4 MB, free: 8.293 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.387e-05/0.3468, allocations: 8.078 kB / 388.4 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002465/0.3471, allocations: 28.61 kB / 388.5 MB, free: 8.285 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/0.3472, allocations: 30.77 kB / 388.5 MB, free: 8.281 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.115e-05/0.3472, allocations: 9.922 kB / 388.5 MB, free: 8.277 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001171/0.3473, allocations: 144.7 kB / 388.6 MB, free: 8.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.3473, allocations: 4 kB / 388.6 MB, free: 8.176 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003613/0.3477, allocations: 72.05 kB / 388.7 MB, free: 8.164 MB / 318.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.0001922/0.3479, allocations: 124.8 kB / 388.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007835/0.3487, allocations: 334.5 kB / 389.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3487, allocations: 0 / 389.2 MB, free: 7.926 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003442/0.349, allocations: 142.4 kB / 389.3 MB, free: 7.887 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004112/0.3495, allocations: 43 kB / 389.3 MB, free: 7.871 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001222/0.3507, allocations: 0.6814 MB / 390 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001981/0.3509, allocations: 0.7411 MB / 390.8 MB, free: 6.727 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.819e-05/0.351, allocations: 20.91 kB / 390.8 MB, free: 6.719 MB / 318.1 MB Notification: Performance of SimCode: time 2.51e-07/0.351, allocations: 5.188 kB / 390.8 MB, free: 6.715 MB / 318.1 MB Notification: Performance of Templates: time 0.007521/0.3585, allocations: 3.816 MB / 394.6 MB, free: 6.363 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches