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.001245/0.001245, allocations: 114.4 kB / 17.74 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.001278/0.001278, allocations: 183.1 kB / 18.66 MB, free: 4.434 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.395/1.395, allocations: 205.1 MB / 224.5 MB, free: 12.29 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.001308/0.001308, allocations: 60.38 kB / 328 MB, free: 3.84 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09005/0.09136, allocations: 46.62 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004291/0.09571, allocations: 2.158 MB / 376.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001649/0.0974, allocations: 0.7408 MB / 377.5 MB, free: 2.191 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002249/0.09766, allocations: 4 kB / 377.5 MB, free: 2.188 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002578/0.09797, allocations: 39.66 kB / 377.6 MB, free: 2.148 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.09829, allocations: 71.47 kB / 377.6 MB, free: 2.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000463/0.09876, allocations: 103.7 kB / 377.7 MB, free: 1.977 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004535/0.09923, allocations: 287.4 kB / 378 MB, free: 1.695 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.09945, allocations: 56.36 kB / 378.1 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002844/0.09974, allocations: 119.5 kB / 378.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002714/0.1, allocations: 127.5 kB / 378.3 MB, free: 1.398 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.863e-05/0.1001, allocations: 20 kB / 378.3 MB, free: 1.379 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001768/0.1003, allocations: 71.94 kB / 378.4 MB, free: 1.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 9.923e-05/0.1004, allocations: 51.84 kB / 378.5 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.1006, allocations: 115.4 kB / 378.6 MB, free: 1.145 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004886/0.1011, allocations: 282.9 kB / 378.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1011, allocations: 0 / 378.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.555e-06/0.1011, allocations: 0 / 378.9 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.88e-05/0.1011, allocations: 0 / 378.9 MB, free: 0.8672 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.001239/0.1023, allocations: 0.5702 MB / 379.4 MB, free: 248 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.259e-05/0.1024, allocations: 12.03 kB / 379.4 MB, free: 236 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.89e-05/0.1025, allocations: 50.73 kB / 379.5 MB, free: 176 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.918e-05/0.1026, allocations: 24.8 kB / 379.5 MB, free: 152 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1752/0.2778, allocations: 232.2 kB / 379.7 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.014e-05/0.2779, allocations: 15.66 kB / 379.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.736e-05/0.278, allocations: 17.88 kB / 379.8 MB, free: 13.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005988/0.2786, allocations: 236.7 kB / 380 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.941e-05/0.2786, allocations: 1.5 kB / 380 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.811e-05/0.2787, allocations: 10.2 kB / 380 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.428e-05/0.2787, allocations: 7.875 kB / 380 MB, free: 12.97 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005132/0.2792, allocations: 195.9 kB / 380.2 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001078/0.2803, allocations: 0.667 MB / 380.9 MB, free: 12.61 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005896/0.2809, allocations: 200.1 kB / 381.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002399/0.2811, allocations: 103.5 kB / 381.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.548e-05/0.2812, allocations: 5.797 kB / 381.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003755/0.2816, allocations: 162.4 kB / 381.3 MB, free: 12.52 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 3.066e-06/0.2816, allocations: 2.875 kB / 381.3 MB, free: 12.52 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.002531/0.2841, allocations: 1.154 MB / 382.5 MB, free: 11.86 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.691e-05/0.2842, allocations: 62.89 kB / 382.6 MB, free: 11.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002299/0.2844, allocations: 191.9 kB / 382.7 MB, free: 11.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.501e-05/0.2844, allocations: 36.94 kB / 382.8 MB, free: 11.62 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.28e-05/0.2845, allocations: 139.3 kB / 382.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.127e-05/0.2846, allocations: 89.09 kB / 383 MB, free: 11.44 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2847, allocations: 63.47 kB / 383.1 MB, free: 11.4 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.806e-05/0.2848, allocations: 331 kB / 383.4 MB, free: 11.08 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002729/0.2851, allocations: 107.5 kB / 383.5 MB, free: 11.04 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000298/0.2854, allocations: 145.3 kB / 383.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005013/0.2859, allocations: 244.4 kB / 383.9 MB, free: 10.85 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.2859, allocations: 0 / 383.9 MB, free: 10.85 MB / 318.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008645/0.2868, allocations: 411 kB / 384.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.778e-05/0.2868, allocations: 33.41 kB / 384.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2868, allocations: 4.266 kB / 384.3 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002677/0.2871, allocations: 72.83 kB / 384.4 MB, free: 10.6 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002168/0.2873, allocations: 57.06 kB / 384.4 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000402/0.2877, allocations: 0.6113 MB / 385.1 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002756/0.288, allocations: 32.2 kB / 385.1 MB, free: 10.02 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.794e-05/0.2881, allocations: 13.88 kB / 385.1 MB, free: 10.02 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.0001353/0.2882, allocations: 143.3 kB / 385.2 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.678e-05/0.2882, allocations: 26.14 kB / 385.3 MB, free: 9.867 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.671e-05/0.2883, allocations: 28.67 kB / 385.3 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.2883, allocations: 2.969 kB / 385.3 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.2883, allocations: 0.7969 kB / 385.3 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.109e-06/0.2884, allocations: 0.7969 kB / 385.3 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001081/0.2894, allocations: 0.6743 MB / 386 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.2895, allocations: 2.812 kB / 386 MB, free: 9.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002075/0.2897, allocations: 41.94 kB / 386 MB, free: 9.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001779/0.2899, allocations: 73.69 kB / 386.1 MB, free: 9.375 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.2899, allocations: 6.75 kB / 386.1 MB, free: 9.371 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000346/0.2902, allocations: 0.6131 MB / 386.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.2903, allocations: 1 kB / 386.7 MB, free: 8.809 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009275/0.2912, allocations: 0.5085 MB / 387.2 MB, free: 8.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.132e-05/0.2913, allocations: 110 kB / 387.3 MB, free: 8.426 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.261e-05/0.2913, allocations: 11.88 kB / 387.3 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002351/0.2916, allocations: 24.97 kB / 387.4 MB, free: 8.418 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001136/0.2917, allocations: 34.17 kB / 387.4 MB, free: 8.41 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.2917, allocations: 7.422 kB / 387.4 MB, free: 8.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001129/0.2918, allocations: 143.4 kB / 387.5 MB, free: 8.312 MB / 318.1 MB Notification: Performance of sort global known variables: time 8.92e-07/0.2919, allocations: 4 kB / 387.5 MB, free: 8.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003688/0.2922, allocations: 76.81 kB / 387.6 MB, free: 8.297 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.001216/0.2934, allocations: 1.068 MB / 388.7 MB, free: 7.488 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007811/0.2942, allocations: 327 kB / 389 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2943, allocations: 0 / 389 MB, free: 7.352 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003436/0.2946, allocations: 138.9 kB / 389.1 MB, free: 7.316 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004093/0.295, allocations: 47.66 kB / 389.2 MB, free: 7.293 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/0.2989, allocations: 2.839 MB / 392 MB, free: 5.359 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001831/0.2991, allocations: 0.7405 MB / 392.8 MB, free: 4.66 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001156/0.2992, allocations: 23.62 kB / 392.8 MB, free: 4.648 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.945e-05/0.2994, allocations: 65.34 kB / 392.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of SimCode: time 1.182e-06/0.2994, allocations: 0 / 392.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03006/0.3294, allocations: 6.129 MB / 399 MB, free: 3.086 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.9, allocations: 5.266 kB / 399 MB, free: 3.082 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