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.001659/0.001659, allocations: 109.2 kB / 17.73 MB, free: 5.324 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.001647/0.001647, allocations: 188.2 kB / 18.66 MB, free: 4.395 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.458/1.458, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001298/0.001298, allocations: 48.3 kB / 328.5 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1087, allocations: 46.61 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003213/0.1119, allocations: 2.158 MB / 377.3 MB, free: 2.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1132, allocations: 0.7447 MB / 378 MB, free: 1.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001101/0.1133, allocations: 4 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002228/0.1135, allocations: 31.66 kB / 378.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001778/0.1137, allocations: 71.47 kB / 378.1 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000361/0.1141, allocations: 107.8 kB / 378.2 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003338/0.1144, allocations: 279.4 kB / 378.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001691/0.1146, allocations: 52.36 kB / 378.6 MB, free: 1.133 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002036/0.1148, allocations: 119.5 kB / 378.7 MB, free: 1.016 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.1151, allocations: 135.5 kB / 378.8 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.311e-05/0.1151, allocations: 20 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.1153, allocations: 67.94 kB / 378.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.395e-05/0.1153, allocations: 51.84 kB / 379 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001315/0.1155, allocations: 115.4 kB / 379.1 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003486/0.1158, allocations: 287 kB / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1159, allocations: 0 / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1159, allocations: 0 / 379.3 MB, free: 360 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.166e-06/0.1159, allocations: 0 / 379.3 MB, free: 360 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.2114/0.3272, allocations: 0.5573 MB / 379.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.3273, allocations: 13.64 kB / 379.9 MB, free: 13.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.549e-05/0.3274, allocations: 25.19 kB / 379.9 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.3277, allocations: 232.8 kB / 380.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.3277, allocations: 14.78 kB / 380.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.723e-05/0.3277, allocations: 24.39 kB / 380.2 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000486/0.3282, allocations: 236.4 kB / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.673e-05/0.3283, allocations: 2.266 kB / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.144e-05/0.3283, allocations: 10.22 kB / 380.4 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3283, allocations: 5.156 kB / 380.5 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000456/0.3288, allocations: 197.5 kB / 380.6 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009069/0.3297, allocations: 0.6594 MB / 381.3 MB, free: 12.53 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005649/0.3303, allocations: 205.7 kB / 381.5 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000236/0.3305, allocations: 102 kB / 381.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.037e-05/0.3305, allocations: 3.953 kB / 381.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003471/0.3309, allocations: 163.2 kB / 381.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.3309, allocations: 1.875 kB / 381.8 MB, free: 12.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002459/0.3334, allocations: 1.154 MB / 382.9 MB, free: 11.75 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.375e-05/0.3334, allocations: 54.81 kB / 383 MB, free: 11.68 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001581/0.3336, allocations: 190.5 kB / 383.2 MB, free: 11.55 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.3336, allocations: 32.5 kB / 383.2 MB, free: 11.52 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.358e-05/0.3337, allocations: 136 kB / 383.3 MB, free: 11.4 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.561e-05/0.3337, allocations: 92.42 kB / 383.4 MB, free: 11.33 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.3338, allocations: 74.12 kB / 383.5 MB, free: 11.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.3339, allocations: 330.2 kB / 383.8 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002748/0.3342, allocations: 108.8 kB / 383.9 MB, free: 10.93 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002883/0.3345, allocations: 145.2 kB / 384.1 MB, free: 10.87 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004776/0.335, allocations: 246.1 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.335, allocations: 1.328 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000796/0.3358, allocations: 401.4 kB / 384.7 MB, free: 10.55 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.407e-05/0.3358, allocations: 32.61 kB / 384.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.3358, allocations: 1.625 kB / 384.7 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/0.3361, allocations: 83.11 kB / 384.8 MB, free: 10.49 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002092/0.3363, allocations: 55.67 kB / 384.9 MB, free: 10.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003456/0.3367, allocations: 0.6119 MB / 385.5 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002584/0.3369, allocations: 31.66 kB / 385.5 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.388e-05/0.337, allocations: 12.58 kB / 385.5 MB, free: 9.914 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.0001157/0.3371, allocations: 152.2 kB / 385.7 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.502e-05/0.3371, allocations: 18.48 kB / 385.7 MB, free: 9.766 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.108e-05/0.3372, allocations: 22.73 kB / 385.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/0.3372, allocations: 3.844 kB / 385.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.3372, allocations: 0 / 385.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3372, allocations: 1.406 kB / 385.7 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.3383, allocations: 0.681 MB / 386.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.3383, allocations: 0 / 386.4 MB, free: 9.301 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002218/0.3385, allocations: 45.83 kB / 386.4 MB, free: 9.293 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001626/0.3387, allocations: 67.56 kB / 386.5 MB, free: 9.27 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.933e-05/0.3387, allocations: 6.641 kB / 386.5 MB, free: 9.266 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003522/0.3391, allocations: 0.6045 MB / 387.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3391, allocations: 1.406 kB / 387.1 MB, free: 8.711 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.3401, allocations: 0.5136 MB / 387.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.361e-05/0.3402, allocations: 111.1 kB / 387.7 MB, free: 8.324 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.177e-05/0.3403, allocations: 6.734 kB / 387.7 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.3405, allocations: 25.47 kB / 387.8 MB, free: 8.32 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.3407, allocations: 35.69 kB / 387.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.99e-05/0.3407, allocations: 10.45 kB / 387.8 MB, free: 8.309 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001212/0.3408, allocations: 144 kB / 388 MB, free: 8.211 MB / 318.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3408, allocations: 4 kB / 388 MB, free: 8.207 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003785/0.3412, allocations: 69.34 kB / 388 MB, free: 8.199 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.0002063/0.3414, allocations: 126.7 kB / 388.2 MB, free: 8.102 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008285/0.3423, allocations: 331.4 kB / 388.5 MB, free: 7.961 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.3423, allocations: 4.125 kB / 388.5 MB, free: 7.957 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003648/0.3426, allocations: 143 kB / 388.6 MB, free: 7.918 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004317/0.3431, allocations: 48.36 kB / 388.7 MB, free: 7.898 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001298/0.3444, allocations: 0.6444 MB / 389.3 MB, free: 7.492 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.3446, allocations: 0.7375 MB / 390.1 MB, free: 6.797 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.592e-05/0.3447, allocations: 23.56 kB / 390.1 MB, free: 6.789 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.428e-05/0.3448, allocations: 22.39 kB / 390.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.3448, allocations: 0 / 390.1 MB, free: 6.777 MB / 318.1 MB Notification: Performance of Templates: time 0.008452/0.3533, allocations: 3.838 MB / 393.9 MB, free: 6.492 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/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