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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutch,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 113 kB / 17.73 MB, free: 5.207 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.001279/0.001279, allocations: 188.2 kB / 18.67 MB, free: 4.277 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.433/1.433, allocations: 205.1 MB / 224.5 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.001639/0.00164, allocations: 52.34 kB / 328 MB, free: 3.809 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09384/0.09549, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003526/0.09906, allocations: 2.174 MB / 376.8 MB, free: 2.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1004, allocations: 0.733 MB / 377.5 MB, free: 2.152 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001072/0.1005, allocations: 4 kB / 377.5 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001858/0.1007, allocations: 39.64 kB / 377.6 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001866/0.1009, allocations: 67.48 kB / 377.6 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003604/0.1013, allocations: 111.7 kB / 377.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003367/0.1016, allocations: 275.4 kB / 378 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.1017, allocations: 56.34 kB / 378.1 MB, free: 1.609 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.1019, allocations: 115.6 kB / 378.2 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001997/0.1022, allocations: 123.5 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.491e-05/0.1022, allocations: 24 kB / 378.3 MB, free: 1.352 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000141/0.1024, allocations: 75.94 kB / 378.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.338e-05/0.1024, allocations: 47.83 kB / 378.5 MB, free: 1.23 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.1026, allocations: 119.4 kB / 378.6 MB, free: 1.113 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003716/0.1029, allocations: 282.8 kB / 378.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.103, allocations: 0 / 378.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.103, allocations: 0 / 378.9 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.103, allocations: 0 / 378.9 MB, free: 0.8359 MB / 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.001037/0.104, allocations: 0.5702 MB / 379.4 MB, free: 216 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.1041, allocations: 8.031 kB / 379.4 MB, free: 208 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.794e-05/0.1041, allocations: 54.73 kB / 379.5 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.669e-05/0.1042, allocations: 24.8 kB / 379.5 MB, free: 120 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1724/0.2766, allocations: 234.1 kB / 379.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.818e-05/0.2767, allocations: 11.88 kB / 379.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.171e-05/0.2767, allocations: 20.38 kB / 379.8 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005666/0.2773, allocations: 236.2 kB / 380 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.828e-05/0.2773, allocations: 3.578 kB / 380 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.2774, allocations: 9.453 kB / 380 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.2774, allocations: 5.344 kB / 380 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004908/0.2779, allocations: 198.2 kB / 380.2 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009815/0.2789, allocations: 0.6689 MB / 380.9 MB, free: 12.54 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005753/0.2795, allocations: 205.5 kB / 381.1 MB, free: 12.52 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002291/0.2797, allocations: 95.56 kB / 381.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.2797, allocations: 3.453 kB / 381.2 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003466/0.2801, allocations: 164.1 kB / 381.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.487e-06/0.2801, allocations: 1.344 kB / 381.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002447/0.2826, allocations: 1.153 MB / 382.5 MB, free: 11.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.2826, allocations: 58.58 kB / 382.5 MB, free: 11.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001594/0.2828, allocations: 201.8 kB / 382.7 MB, free: 11.6 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.986e-05/0.2828, allocations: 35.11 kB / 382.8 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.231e-05/0.2829, allocations: 139.3 kB / 382.9 MB, free: 11.45 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.01e-05/0.2829, allocations: 90.86 kB / 383 MB, free: 11.39 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.283, allocations: 61.23 kB / 383.1 MB, free: 11.35 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.642e-05/0.2831, allocations: 335 kB / 383.4 MB, free: 11.03 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002815/0.2834, allocations: 105 kB / 383.5 MB, free: 11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003026/0.2837, allocations: 145.6 kB / 383.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004852/0.2842, allocations: 245.8 kB / 383.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.2842, allocations: 1.375 kB / 383.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008398/0.2851, allocations: 408.4 kB / 384.3 MB, free: 10.61 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.519e-05/0.2851, allocations: 36.45 kB / 384.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.452e-06/0.2851, allocations: 1.562 kB / 384.3 MB, free: 10.57 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.2854, allocations: 71.08 kB / 384.4 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002107/0.2856, allocations: 57.83 kB / 384.4 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003917/0.286, allocations: 0.6127 MB / 385.1 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.2863, allocations: 31.22 kB / 385.1 MB, free: 9.973 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.535e-05/0.2863, allocations: 8.906 kB / 385.1 MB, free: 9.973 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.0001245/0.2864, allocations: 148.6 kB / 385.2 MB, free: 9.836 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.2865, allocations: 25.78 kB / 385.3 MB, free: 9.82 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.002e-05/0.2865, allocations: 27.22 kB / 385.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.079e-06/0.2866, allocations: 4.125 kB / 385.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.2866, allocations: 0 / 385.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.2866, allocations: 2.266 kB / 385.3 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001048/0.2876, allocations: 0.6779 MB / 386 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.445e-06/0.2877, allocations: 2.812 kB / 386 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002061/0.2879, allocations: 38 kB / 386 MB, free: 9.355 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001669/0.288, allocations: 68.92 kB / 386.1 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.308e-05/0.2881, allocations: 6.672 kB / 386.1 MB, free: 9.324 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003297/0.2884, allocations: 0.6186 MB / 386.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2884, allocations: 0 / 386.7 MB, free: 8.758 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009555/0.2894, allocations: 0.5043 MB / 387.2 MB, free: 8.488 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.322e-05/0.2895, allocations: 110.4 kB / 387.3 MB, free: 8.379 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.045e-05/0.2895, allocations: 11.05 kB / 387.3 MB, free: 8.371 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002416/0.2898, allocations: 29.77 kB / 387.4 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001138/0.2899, allocations: 33.78 kB / 387.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.2899, allocations: 6.641 kB / 387.4 MB, free: 8.359 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001223/0.29, allocations: 140.6 kB / 387.5 MB, free: 8.266 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2901, allocations: 4 kB / 387.5 MB, free: 8.262 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004565/0.2905, allocations: 73.05 kB / 387.6 MB, free: 8.25 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.001253/0.2918, allocations: 1.068 MB / 388.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007671/0.2926, allocations: 322.5 kB / 389 MB, free: 7.309 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.2926, allocations: 1.281 kB / 389 MB, free: 7.309 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003685/0.293, allocations: 146.2 kB / 389.1 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.2934, allocations: 41.48 kB / 389.2 MB, free: 7.25 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003939/0.2973, allocations: 2.845 MB / 392 MB, free: 5.312 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001886/0.2975, allocations: 0.7426 MB / 392.8 MB, free: 4.613 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.2976, allocations: 26.16 kB / 392.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.2978, allocations: 65.36 kB / 392.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2978, allocations: 4 kB / 392.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04176/0.3395, allocations: 6.126 MB / 399 MB, free: 3.035 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.97/12.3, allocations: 7.828 kB / 399 MB, free: 3.031 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutch.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.csv","/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