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.001537/0.001545, allocations: 105.5 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.001896/0.001896, allocations: 187 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.55/1.55, allocations: 205.1 MB / 225.2 MB, free: 12.27 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.00128/0.00128, allocations: 51.92 kB / 329.2 MB, free: 3.32 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.089, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003764/0.09281, allocations: 2.202 MB / 378 MB, free: 2.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.09421, allocations: 0.733 MB / 378.7 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.09443, allocations: 11.94 kB / 378.7 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001943/0.09464, allocations: 31.66 kB / 378.8 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.09486, allocations: 67.47 kB / 378.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003405/0.09521, allocations: 91.81 kB / 378.9 MB, free: 1.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003446/0.09556, allocations: 267.4 kB / 379.2 MB, free: 1.18 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.09575, allocations: 76.28 kB / 379.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002108/0.09596, allocations: 107.6 kB / 379.4 MB, free: 1 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002283/0.0962, allocations: 119.5 kB / 379.5 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.66e-05/0.09626, allocations: 23.94 kB / 379.5 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001517/0.09642, allocations: 71.89 kB / 379.6 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.978e-05/0.09651, allocations: 47.83 kB / 379.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.09663, allocations: 111.5 kB / 379.7 MB, free: 0.6328 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003587/0.097, allocations: 271.1 kB / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.09701, allocations: 0 / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.09702, allocations: 0 / 380 MB, free: 376 kB / 318.1 MB Notification: Performance of Transformations before backend: time 1.128e-05/0.09704, allocations: 0 / 380 MB, free: 376 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.1786/0.2756, allocations: 0.5138 MB / 380.5 MB, free: 13.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.468e-05/0.2757, allocations: 9.156 kB / 380.5 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.646e-05/0.2758, allocations: 25.38 kB / 380.6 MB, free: 13.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003677/0.2761, allocations: 239.4 kB / 380.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.809e-05/0.2762, allocations: 17.97 kB / 380.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.726e-05/0.2762, allocations: 18.08 kB / 380.8 MB, free: 13.54 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004277/0.2767, allocations: 227.8 kB / 381 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.2767, allocations: 1.375 kB / 381 MB, free: 13.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.73e-05/0.2767, allocations: 15.91 kB / 381.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.2767, allocations: 5.5 kB / 381.1 MB, free: 13.47 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003282/0.2771, allocations: 161.2 kB / 381.2 MB, free: 13.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.2782, allocations: 0.7639 MB / 382 MB, free: 12.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003341/0.2785, allocations: 142.1 kB / 382.1 MB, free: 12.8 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001306/0.2787, allocations: 70.19 kB / 382.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.929e-05/0.2787, allocations: 2.719 kB / 382.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.862e-05/0.2787, allocations: 37.12 kB / 382.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 1.423e-06/0.2787, allocations: 0.7656 kB / 382.2 MB, free: 12.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001837/0.2806, allocations: 0.9811 MB / 383.2 MB, free: 12 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.26e-05/0.2806, allocations: 58.8 kB / 383.3 MB, free: 11.94 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002318/0.2809, allocations: 207.7 kB / 383.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.2809, allocations: 31.39 kB / 383.5 MB, free: 11.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.059e-05/0.281, allocations: 138.8 kB / 383.6 MB, free: 11.65 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.827e-05/0.281, allocations: 79.11 kB / 383.7 MB, free: 11.59 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.865e-05/0.2812, allocations: 53.94 kB / 383.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.142e-05/0.2812, allocations: 333.2 kB / 384.1 MB, free: 11.23 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001877/0.2814, allocations: 75.69 kB / 384.2 MB, free: 11.21 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002083/0.2816, allocations: 130.2 kB / 384.3 MB, free: 11.14 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002918/0.2819, allocations: 166.5 kB / 384.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.2819, allocations: 3.906 kB / 384.5 MB, free: 11.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005838/0.2825, allocations: 282.8 kB / 384.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.912e-05/0.2826, allocations: 6.234 kB / 384.7 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.2826, allocations: 2.188 kB / 384.8 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003066/0.2829, allocations: 70.59 kB / 384.8 MB, free: 10.9 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001759/0.2831, allocations: 42.91 kB / 384.9 MB, free: 10.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004709/0.2836, allocations: 0.6261 MB / 385.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002011/0.2838, allocations: 21.8 kB / 385.5 MB, free: 10.32 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.2838, allocations: 7.859 kB / 385.5 MB, free: 10.32 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.0001458/0.284, allocations: 133.9 kB / 385.6 MB, free: 10.19 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.639e-05/0.284, allocations: 22.56 kB / 385.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.766e-05/0.2841, allocations: 29.33 kB / 385.7 MB, free: 10.16 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.2841, allocations: 6.5 kB / 385.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.636e-06/0.2841, allocations: 4.969 kB / 385.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.74e-06/0.2841, allocations: 0.9375 kB / 385.7 MB, free: 10.15 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008717/0.285, allocations: 0.5914 MB / 386.3 MB, free: 9.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.285, allocations: 2.016 kB / 386.3 MB, free: 9.719 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.2852, allocations: 32.05 kB / 386.3 MB, free: 9.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001711/0.2854, allocations: 71.02 kB / 386.4 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.2854, allocations: 6.25 kB / 386.4 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003459/0.2857, allocations: 0.6212 MB / 387 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.2858, allocations: 1.438 kB / 387 MB, free: 9.117 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005628/0.2863, allocations: 420.6 kB / 387.4 MB, free: 8.859 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.747e-05/0.2864, allocations: 112.8 kB / 387.6 MB, free: 8.746 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.883e-05/0.2865, allocations: 6.562 kB / 387.6 MB, free: 8.742 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001865/0.2867, allocations: 26.53 kB / 387.6 MB, free: 8.738 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.025e-05/0.2867, allocations: 23.61 kB / 387.6 MB, free: 8.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.521e-05/0.2868, allocations: 8.484 kB / 387.6 MB, free: 8.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001188/0.2869, allocations: 152.2 kB / 387.8 MB, free: 8.633 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2869, allocations: 3.938 kB / 387.8 MB, free: 8.629 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.00034/0.2872, allocations: 59.5 kB / 387.8 MB, free: 8.625 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.0001706/0.2874, allocations: 118.5 kB / 387.9 MB, free: 8.535 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004929/0.2879, allocations: 211.6 kB / 388.2 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2879, allocations: 0 / 388.2 MB, free: 8.465 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002331/0.2882, allocations: 104.1 kB / 388.3 MB, free: 8.434 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.2886, allocations: 39.77 kB / 388.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00123/0.2898, allocations: 0.6908 MB / 389 MB, free: 7.961 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000178/0.29, allocations: 0.7398 MB / 389.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.373e-05/0.2901, allocations: 19.22 kB / 389.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2901, allocations: 0 / 389.7 MB, free: 7.254 MB / 318.1 MB Notification: Performance of Templates: time 0.006815/0.2969, allocations: 3.495 MB / 393.2 MB, free: 6.93 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/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