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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",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.001555/0.001555, allocations: 109.5 kB / 17.73 MB, free: 5.359 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.001894/0.001894, allocations: 188.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.349/1.349, 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.002119/0.002119, allocations: 51.92 kB / 328 MB, free: 3.832 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1079, allocations: 46.62 MB / 374.6 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003756/0.1117, allocations: 2.209 MB / 376.8 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.1133, allocations: 0.733 MB / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001855/0.1136, allocations: 0 / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002051/0.1138, allocations: 35.66 kB / 377.6 MB, free: 2.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002323/0.114, allocations: 71.47 kB / 377.7 MB, free: 2.027 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003847/0.1144, allocations: 99.75 kB / 377.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003385/0.1148, allocations: 263.4 kB / 378 MB, free: 1.672 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001689/0.1149, allocations: 68.3 kB / 378.1 MB, free: 1.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000261/0.1152, allocations: 103.6 kB / 378.2 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.1154, allocations: 123.5 kB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.892e-05/0.1155, allocations: 20 kB / 378.3 MB, free: 1.363 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.1157, allocations: 75.89 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.717e-05/0.1157, allocations: 51.81 kB / 378.5 MB, free: 1.238 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001187/0.1159, allocations: 115.5 kB / 378.6 MB, free: 1.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000379/0.1163, allocations: 274.9 kB / 378.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1163, allocations: 0 / 378.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.1163, allocations: 0 / 378.9 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.756e-06/0.1163, allocations: 0 / 378.9 MB, free: 0.8555 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008542/0.1171, allocations: 0.5182 MB / 379.4 MB, free: 296 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.717e-05/0.1172, allocations: 12.02 kB / 379.4 MB, free: 284 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.85e-05/0.1173, allocations: 54.73 kB / 379.4 MB, free: 220 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.555e-05/0.1173, allocations: 32.8 kB / 379.5 MB, free: 188 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.171/0.2884, allocations: 230.1 kB / 379.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.02e-05/0.2885, allocations: 15.44 kB / 379.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.96e-05/0.2885, allocations: 25.48 kB / 379.7 MB, free: 12.96 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004997/0.289, allocations: 222.2 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.896e-05/0.2891, allocations: 1.828 kB / 380 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.2891, allocations: 6.375 kB / 380 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.2891, allocations: 5.562 kB / 380 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003523/0.2895, allocations: 171.6 kB / 380.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.2907, allocations: 0.7744 MB / 380.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004305/0.2911, allocations: 135.9 kB / 381 MB, free: 12.44 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.2913, allocations: 71.19 kB / 381.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.2913, allocations: 1.375 kB / 381.1 MB, free: 12.43 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.2914, allocations: 35.45 kB / 381.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.024e-06/0.2914, allocations: 0 / 381.1 MB, free: 12.39 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.001961/0.2933, allocations: 0.9921 MB / 382.1 MB, free: 11.8 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.722e-05/0.2934, allocations: 53.66 kB / 382.2 MB, free: 11.74 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.2936, allocations: 212.7 kB / 382.4 MB, free: 11.61 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.2936, allocations: 31.08 kB / 382.4 MB, free: 11.57 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.867e-05/0.2937, allocations: 143.4 kB / 382.6 MB, free: 11.46 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.564e-05/0.2938, allocations: 77.25 kB / 382.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.894e-05/0.2939, allocations: 50.02 kB / 382.7 MB, free: 11.37 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.06e-05/0.2939, allocations: 329.8 kB / 383 MB, free: 11.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/0.2941, allocations: 79.31 kB / 383.1 MB, free: 11.02 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002156/0.2944, allocations: 116.9 kB / 383.2 MB, free: 10.96 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003054/0.2947, allocations: 172.3 kB / 383.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.2947, allocations: 1.219 kB / 383.4 MB, free: 10.87 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004904/0.2952, allocations: 297.2 kB / 383.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.003e-05/0.2952, allocations: 6.766 kB / 383.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2952, allocations: 4.25 kB / 383.7 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002523/0.2955, allocations: 70.83 kB / 383.7 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.2956, allocations: 38.83 kB / 383.8 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003729/0.296, allocations: 0.6175 MB / 384.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/0.2962, allocations: 22.44 kB / 384.4 MB, free: 10.14 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.2963, allocations: 15.41 kB / 384.4 MB, free: 10.13 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 9.975e-05/0.2964, allocations: 130.6 kB / 384.6 MB, free: 10 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.702e-05/0.2964, allocations: 20.61 kB / 384.6 MB, free: 9.996 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.427e-05/0.2965, allocations: 27.8 kB / 384.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.948e-06/0.2965, allocations: 1.812 kB / 384.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.962e-06/0.2965, allocations: 0 / 384.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.2965, allocations: 0.9062 kB / 384.6 MB, free: 9.977 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007998/0.2973, allocations: 0.6051 MB / 385.2 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2973, allocations: 1.062 kB / 385.2 MB, free: 9.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.2975, allocations: 37.11 kB / 385.3 MB, free: 9.523 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001706/0.2977, allocations: 72.78 kB / 385.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.743e-05/0.2977, allocations: 2.938 kB / 385.3 MB, free: 9.5 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003491/0.2981, allocations: 0.6132 MB / 385.9 MB, free: 8.938 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.2981, allocations: 9.844 kB / 386 MB, free: 8.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005538/0.2986, allocations: 418.6 kB / 386.4 MB, free: 8.672 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.452e-05/0.2987, allocations: 113.2 kB / 386.5 MB, free: 8.559 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.848e-05/0.2988, allocations: 6.938 kB / 386.5 MB, free: 8.555 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.299, allocations: 20.27 kB / 386.5 MB, free: 8.551 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.924e-05/0.299, allocations: 22.62 kB / 386.5 MB, free: 8.547 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.2991, allocations: 6.5 kB / 386.5 MB, free: 8.547 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001219/0.2992, allocations: 152 kB / 386.7 MB, free: 8.449 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2992, allocations: 5.875 kB / 386.7 MB, free: 8.445 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.2995, allocations: 67.33 kB / 386.7 MB, free: 8.434 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.0008755/0.3004, allocations: 0.9643 MB / 387.7 MB, free: 7.641 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004855/0.3009, allocations: 201.7 kB / 387.9 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3009, allocations: 0 / 387.9 MB, free: 7.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002355/0.3012, allocations: 104 kB / 388 MB, free: 7.551 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003806/0.3016, allocations: 43.02 kB / 388.1 MB, free: 7.531 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003223/0.3048, allocations: 2.659 MB / 390.7 MB, free: 5.648 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002008/0.305, allocations: 0.7396 MB / 391.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.045e-05/0.3051, allocations: 25.03 kB / 391.5 MB, free: 4.941 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.847e-05/0.3052, allocations: 62.69 kB / 391.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3052, allocations: 0 / 391.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02631/0.3315, allocations: 5.515 MB / 397.1 MB, free: 3.984 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.32/11.65, allocations: 6.219 kB / 397.1 MB, free: 3.98 MB / 318.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_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_OneWayClutchDisengaged.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/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