Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 111.7 kB / 17.73 MB, free: 5.355 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.002353/0.002353, allocations: 180.1 kB / 18.66 MB, free: 4.438 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.484/1.484, 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.001309/0.001309, allocations: 43.94 kB / 328.5 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1131/0.1144, allocations: 46.62 MB / 375.1 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004496/0.119, allocations: 2.217 MB / 377.3 MB, free: 2.359 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001569/0.1206, allocations: 0.7213 MB / 378.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002189/0.1209, allocations: 4 kB / 378.1 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002293/0.1211, allocations: 35.66 kB / 378.1 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002766/0.1214, allocations: 71.47 kB / 378.2 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003768/0.1218, allocations: 95.75 kB / 378.3 MB, free: 1.426 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003474/0.1221, allocations: 267.4 kB / 378.5 MB, free: 1.164 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002304/0.1224, allocations: 68.3 kB / 378.6 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000226/0.1226, allocations: 111.6 kB / 378.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002677/0.1229, allocations: 119.5 kB / 378.8 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.655e-05/0.123, allocations: 27.88 kB / 378.8 MB, free: 0.8438 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001734/0.1231, allocations: 67.95 kB / 378.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.287e-05/0.1232, allocations: 51.83 kB / 379 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001258/0.1234, allocations: 111.5 kB / 379.1 MB, free: 0.6172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004769/0.1238, allocations: 274.9 kB / 379.3 MB, free: 356 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1239, allocations: 0 / 379.3 MB, free: 356 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1239, allocations: 0 / 379.3 MB, free: 356 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.061e-05/0.1239, allocations: 0 / 379.3 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.2421/0.366, allocations: 0.5157 MB / 379.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.094e-05/0.3661, allocations: 9.625 kB / 379.9 MB, free: 13.15 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.3662, allocations: 28.97 kB / 379.9 MB, free: 13.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003864/0.3666, allocations: 238.3 kB / 380.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.583e-05/0.3667, allocations: 14 kB / 380.1 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.707e-05/0.3667, allocations: 22.78 kB / 380.2 MB, free: 12.93 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004951/0.3672, allocations: 225.5 kB / 380.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.3672, allocations: 5.328 kB / 380.4 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.613e-05/0.3673, allocations: 12.83 kB / 380.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.556e-06/0.3673, allocations: 4.125 kB / 380.4 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003366/0.3676, allocations: 165.3 kB / 380.6 MB, free: 12.86 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.3688, allocations: 0.7696 MB / 381.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004612/0.3693, allocations: 132 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001862/0.3695, allocations: 70.64 kB / 381.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.3695, allocations: 2.125 kB / 381.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.746e-05/0.3695, allocations: 38.06 kB / 381.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.073e-06/0.3696, allocations: 0.7656 kB / 381.6 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.002312/0.3719, allocations: 0.9925 MB / 382.6 MB, free: 11.73 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.3719, allocations: 54.72 kB / 382.6 MB, free: 11.67 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003285/0.3723, allocations: 205.5 kB / 382.8 MB, free: 11.54 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.172e-05/0.3723, allocations: 31.39 kB / 382.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001136/0.3724, allocations: 143.5 kB / 383 MB, free: 11.38 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.024e-05/0.3725, allocations: 74.2 kB / 383.1 MB, free: 11.32 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001324/0.3726, allocations: 57.5 kB / 383.1 MB, free: 11.29 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.3728, allocations: 338 kB / 383.5 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002449/0.373, allocations: 75.5 kB / 383.5 MB, free: 10.94 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002367/0.3733, allocations: 118.1 kB / 383.6 MB, free: 10.87 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.3736, allocations: 176.9 kB / 383.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.3736, allocations: 2.719 kB / 383.8 MB, free: 10.78 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005938/0.3742, allocations: 289 kB / 384.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/0.3742, allocations: 5.688 kB / 384.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.3742, allocations: 3.906 kB / 384.1 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000307/0.3746, allocations: 71.14 kB / 384.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.3747, allocations: 38.64 kB / 384.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004017/0.3751, allocations: 0.6144 MB / 384.8 MB, free: 10.06 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001869/0.3753, allocations: 32.3 kB / 384.9 MB, free: 10.05 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.131e-05/0.3754, allocations: 11.25 kB / 384.9 MB, free: 10.05 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.0001092/0.3755, allocations: 133.5 kB / 385 MB, free: 9.918 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.445e-05/0.3755, allocations: 22.58 kB / 385 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.365e-05/0.3756, allocations: 27.55 kB / 385.1 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3756, allocations: 3.344 kB / 385.1 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/0.3756, allocations: 4.5 kB / 385.1 MB, free: 9.879 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3756, allocations: 4.703 kB / 385.1 MB, free: 9.875 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000947/0.3766, allocations: 0.6006 MB / 385.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3766, allocations: 1.188 kB / 385.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.3768, allocations: 27.94 kB / 385.7 MB, free: 9.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/0.377, allocations: 71.19 kB / 385.8 MB, free: 9.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/0.377, allocations: 6.953 kB / 385.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003755/0.3774, allocations: 0.6157 MB / 386.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3774, allocations: 1.859 kB / 386.4 MB, free: 8.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000642/0.378, allocations: 419 kB / 386.8 MB, free: 8.582 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.635e-05/0.3781, allocations: 107.8 kB / 386.9 MB, free: 8.473 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.921e-05/0.3782, allocations: 7.672 kB / 386.9 MB, free: 8.469 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001894/0.3784, allocations: 25.17 kB / 386.9 MB, free: 8.465 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.516e-05/0.3785, allocations: 26.36 kB / 387 MB, free: 8.457 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/0.3785, allocations: 5.891 kB / 387 MB, free: 8.457 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.3786, allocations: 151.2 kB / 387.1 MB, free: 8.359 MB / 318.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3786, allocations: 3.938 kB / 387.1 MB, free: 8.355 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003565/0.379, allocations: 69.03 kB / 387.2 MB, free: 8.344 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000192/0.3792, allocations: 118.3 kB / 387.3 MB, free: 8.25 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005211/0.3797, allocations: 205.1 kB / 387.5 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.3797, allocations: 0 / 387.5 MB, free: 8.188 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002353/0.38, allocations: 100.4 kB / 387.6 MB, free: 8.16 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003846/0.3804, allocations: 40.83 kB / 387.6 MB, free: 8.148 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00137/0.3818, allocations: 0.6646 MB / 388.3 MB, free: 7.711 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.382, allocations: 0.74 MB / 389 MB, free: 7.012 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.36e-05/0.3821, allocations: 25.38 kB / 389.1 MB, free: 7.004 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.744e-05/0.3822, allocations: 18.02 kB / 389.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3822, allocations: 0 / 389.1 MB, free: 6.996 MB / 318.1 MB Notification: Performance of Templates: time 0.009272/0.3915, allocations: 3.233 MB / 392.3 MB, free: 6.754 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches