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.00145/0.00145, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001762/0.001762, allocations: 185.2 kB / 19.33 MB, free: 3.758 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.483/1.483, allocations: 205.1 MB / 225.2 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.001318/0.001318, allocations: 43.92 kB / 329.2 MB, free: 3.352 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09848/0.09981, allocations: 46.62 MB / 375.8 MB, free: 4.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003956/0.1038, allocations: 2.171 MB / 378 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001532/0.1054, allocations: 0.7447 MB / 378.7 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001811/0.1056, allocations: 4 kB / 378.7 MB, free: 1.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.1058, allocations: 31.66 kB / 378.7 MB, free: 1.652 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000253/0.1061, allocations: 71.47 kB / 378.8 MB, free: 1.582 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004613/0.1066, allocations: 107.7 kB / 378.9 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003989/0.107, allocations: 275.4 kB / 379.2 MB, free: 1.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.1071, allocations: 56.34 kB / 379.2 MB, free: 1.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002527/0.1074, allocations: 119.5 kB / 379.4 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002334/0.1076, allocations: 127.5 kB / 379.5 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.835e-05/0.1077, allocations: 28 kB / 379.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001931/0.1079, allocations: 63.95 kB / 379.6 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001114/0.108, allocations: 55.81 kB / 379.6 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.1082, allocations: 119.3 kB / 379.7 MB, free: 0.6484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005089/0.1087, allocations: 283.1 kB / 380 MB, free: 380 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.1087, allocations: 0 / 380 MB, free: 380 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1087, allocations: 0 / 380 MB, free: 380 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.776e-06/0.1087, allocations: 0 / 380 MB, free: 380 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.1933/0.302, allocations: 0.5569 MB / 380.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/0.302, allocations: 13.27 kB / 380.6 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.311e-05/0.3021, allocations: 25.73 kB / 380.6 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003557/0.3025, allocations: 235 kB / 380.8 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.313e-05/0.3025, allocations: 15.56 kB / 380.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.097e-05/0.3026, allocations: 22 kB / 380.9 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004988/0.3031, allocations: 236 kB / 381.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.78e-05/0.3031, allocations: 2.5 kB / 381.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.3031, allocations: 11.81 kB / 381.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.3032, allocations: 5.344 kB / 381.1 MB, free: 12.88 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004835/0.3036, allocations: 194.3 kB / 381.3 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009788/0.3046, allocations: 0.6607 MB / 382 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005902/0.3052, allocations: 202.5 kB / 382.2 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002426/0.3055, allocations: 102.8 kB / 382.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.113e-05/0.3055, allocations: 5.5 kB / 382.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003616/0.3059, allocations: 165.1 kB / 382.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.455e-06/0.3059, allocations: 5.828 kB / 382.5 MB, free: 12.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002528/0.3084, allocations: 1.153 MB / 383.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.611e-05/0.3085, allocations: 55.72 kB / 383.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001839/0.3087, allocations: 189.5 kB / 383.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.229e-05/0.3087, allocations: 32.92 kB / 383.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.024e-05/0.3088, allocations: 136.6 kB / 384 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.93e-05/0.3089, allocations: 85.16 kB / 384.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/0.309, allocations: 67.55 kB / 384.2 MB, free: 11.27 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.334e-05/0.3091, allocations: 332.2 kB / 384.5 MB, free: 10.95 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002774/0.3093, allocations: 106.7 kB / 384.6 MB, free: 10.92 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002899/0.3096, allocations: 153.2 kB / 384.7 MB, free: 10.85 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004794/0.3101, allocations: 244.6 kB / 385 MB, free: 10.72 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.3101, allocations: 2.031 kB / 385 MB, free: 10.72 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008506/0.311, allocations: 397.3 kB / 385.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.311, allocations: 33.95 kB / 385.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.3111, allocations: 1.406 kB / 385.4 MB, free: 10.51 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002488/0.3113, allocations: 83.05 kB / 385.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.3115, allocations: 49.03 kB / 385.5 MB, free: 10.47 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004133/0.312, allocations: 0.6158 MB / 386.2 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002764/0.3122, allocations: 30.62 kB / 386.2 MB, free: 9.902 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.916e-05/0.3123, allocations: 19.52 kB / 386.2 MB, free: 9.895 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.000136/0.3124, allocations: 150.8 kB / 386.3 MB, free: 9.754 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.783e-05/0.3125, allocations: 18.06 kB / 386.4 MB, free: 9.746 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.767e-05/0.3125, allocations: 28.02 kB / 386.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.789e-06/0.3126, allocations: 2.75 kB / 386.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.3126, allocations: 2.062 kB / 386.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.3126, allocations: 0.7969 kB / 386.4 MB, free: 9.723 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001084/0.3137, allocations: 0.6806 MB / 387.1 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.3137, allocations: 0 / 387.1 MB, free: 9.277 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002042/0.3139, allocations: 41.56 kB / 387.1 MB, free: 9.273 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001544/0.3141, allocations: 65.78 kB / 387.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.3141, allocations: 11.12 kB / 387.2 MB, free: 9.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003137/0.3144, allocations: 0.6022 MB / 387.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3144, allocations: 0 / 387.8 MB, free: 8.691 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009163/0.3153, allocations: 0.5163 MB / 388.3 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.541e-05/0.3154, allocations: 109.5 kB / 388.4 MB, free: 8.301 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.244e-05/0.3155, allocations: 6.906 kB / 388.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002464/0.3157, allocations: 25.56 kB / 388.5 MB, free: 8.297 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.766e-05/0.3158, allocations: 33.88 kB / 388.5 MB, free: 8.289 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.3159, allocations: 7.422 kB / 388.5 MB, free: 8.289 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001088/0.316, allocations: 148.4 kB / 388.6 MB, free: 8.188 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.316, allocations: 3.938 kB / 388.6 MB, free: 8.184 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003596/0.3164, allocations: 68.27 kB / 388.7 MB, free: 8.176 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.0001752/0.3165, allocations: 126 kB / 388.8 MB, free: 8.082 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007521/0.3173, allocations: 338.2 kB / 389.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.963e-06/0.3173, allocations: 1.062 kB / 389.2 MB, free: 7.938 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003403/0.3177, allocations: 141.3 kB / 389.3 MB, free: 7.898 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/0.3181, allocations: 41.69 kB / 389.3 MB, free: 7.883 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.3193, allocations: 0.6767 MB / 390 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001707/0.3195, allocations: 0.7419 MB / 390.8 MB, free: 6.742 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.975e-05/0.3196, allocations: 25.16 kB / 390.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3196, allocations: 0 / 390.8 MB, free: 6.73 MB / 318.1 MB Notification: Performance of Templates: time 0.007071/0.3267, allocations: 3.841 MB / 394.6 MB, free: 6.375 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