Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001413/0.001413, allocations: 119.5 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001896/0.001896, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.36/1.36, allocations: 227.4 MB / 246.9 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001269, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2925/0.2937, allocations: 50.54 MB / 408.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004337/0.2981, allocations: 2.328 MB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001647/0.2998, allocations: 0.8529 MB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002047/0.3, allocations: 4 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003045/0.3004, allocations: 55.56 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003868/0.3008, allocations: 103.2 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.3011, allocations: 83.83 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004057/0.3015, allocations: 275.3 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001942/0.3017, allocations: 76.28 kB / 412.5 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002897/0.302, allocations: 123.5 kB / 412.6 MB, free: 13.59 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.3023, allocations: 127.5 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.126e-05/0.3023, allocations: 24 kB / 412.8 MB, free: 13.45 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001943/0.3025, allocations: 79.97 kB / 412.9 MB, free: 13.37 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.901e-05/0.3026, allocations: 51.83 kB / 412.9 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001348/0.3028, allocations: 111.4 kB / 413 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004889/0.3033, allocations: 313.8 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.3033, allocations: 8 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3033, allocations: 0 / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.109e-05/0.3033, allocations: 0 / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0009571/0.3043, allocations: 0.5452 MB / 413.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.3043, allocations: 12.03 kB / 413.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.84e-05/0.3044, allocations: 50.72 kB / 413.9 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001851/0.3046, allocations: 32.8 kB / 414 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003992/0.305, allocations: 260 kB / 414.2 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.345e-05/0.305, allocations: 12.75 kB / 414.2 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.649e-05/0.3051, allocations: 24.33 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.3054, allocations: 218.7 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.3055, allocations: 4 kB / 414.5 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.052e-05/0.3055, allocations: 4 kB / 414.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.3055, allocations: 4 kB / 414.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000314/0.3058, allocations: 163 kB / 414.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001117/0.307, allocations: 0.7781 MB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003808/0.3073, allocations: 148.9 kB / 415.6 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.3075, allocations: 68.83 kB / 415.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.837e-05/0.3075, allocations: 4.344 kB / 415.6 MB, free: 10.4 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.443e-05/0.3076, allocations: 34.56 kB / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.543e-06/0.3076, allocations: 0 / 415.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001831/0.3094, allocations: 0.9926 MB / 416.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.3094, allocations: 51.41 kB / 416.7 MB, free: 9.191 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002228/0.3097, allocations: 226.8 kB / 416.9 MB, free: 8.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.919e-05/0.3097, allocations: 29.7 kB / 417 MB, free: 8.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.443e-05/0.3098, allocations: 140.4 kB / 417.1 MB, free: 8.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.561e-05/0.3099, allocations: 79.36 kB / 417.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.049e-05/0.31, allocations: 45.7 kB / 417.2 MB, free: 8.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001108/0.3101, allocations: 338.8 kB / 417.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001438/0.3102, allocations: 71.91 kB / 417.6 MB, free: 8.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.3104, allocations: 115.3 kB / 417.7 MB, free: 8.117 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002612/0.3107, allocations: 159.3 kB / 417.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.112e-06/0.3107, allocations: 0 / 417.9 MB, free: 7.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004464/0.3111, allocations: 270.2 kB / 418.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.588e-05/0.3112, allocations: 4 kB / 418.2 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.3112, allocations: 0 / 418.2 MB, free: 7.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001981/0.3114, allocations: 56.83 kB / 418.2 MB, free: 7.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001484/0.3115, allocations: 43.91 kB / 418.3 MB, free: 7.57 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001749/0.3133, allocations: 1.819 MB / 420.1 MB, free: 5.617 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001863/0.3135, allocations: 23.97 kB / 420.1 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.03e-05/0.3135, allocations: 12 kB / 420.1 MB, free: 5.582 MB / 334.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 (25): * Single equations (assignments): 24 * 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.0001256/0.3137, allocations: 129.8 kB / 420.2 MB, free: 5.445 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.533e-05/0.3137, allocations: 27.8 kB / 420.3 MB, free: 5.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.192e-05/0.3138, allocations: 33.8 kB / 420.3 MB, free: 5.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.3138, allocations: 4 kB / 420.3 MB, free: 5.375 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.3138, allocations: 4 kB / 420.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.556e-06/0.3138, allocations: 0 / 420.3 MB, free: 5.371 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008275/0.3147, allocations: 0.6051 MB / 420.9 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.3147, allocations: 0 / 420.9 MB, free: 4.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.3148, allocations: 39.97 kB / 421 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001497/0.315, allocations: 56.88 kB / 421 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.088e-05/0.315, allocations: 11.94 kB / 421 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001445/0.3165, allocations: 1.653 MB / 422.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.3165, allocations: 0 / 422.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006127/0.3171, allocations: 430.2 kB / 423.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.554e-05/0.3172, allocations: 113.1 kB / 423.2 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.539e-05/0.3173, allocations: 15.92 kB / 423.2 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001732/0.3174, allocations: 23.91 kB / 423.2 MB, free: 2.188 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001469/0.3176, allocations: 59.92 kB / 423.3 MB, free: 2.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.105e-05/0.3176, allocations: 19.98 kB / 423.3 MB, free: 2.109 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001388/0.3178, allocations: 156.6 kB / 423.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3178, allocations: 0 / 423.5 MB, free: 1.957 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003841/0.3182, allocations: 68 kB / 423.5 MB, free: 1.891 MB / 334.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 (15): * Single equations (assignments): 14 * 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.001532/0.3197, allocations: 1.208 MB / 424.7 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005965/0.3203, allocations: 326.4 kB / 425.1 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3203, allocations: 0 / 425.1 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003068/0.3206, allocations: 230.4 kB / 425.3 MB, free: 200 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.321, allocations: 50.97 kB / 425.3 MB, free: 152 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003349/0.3244, allocations: 2.655 MB / 428 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000344/0.3248, allocations: 0.7479 MB / 428.7 MB, free: 12.61 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.927e-05/0.3249, allocations: 29.92 kB / 428.8 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001106/0.325, allocations: 71.34 kB / 428.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.325, allocations: 0 / 428.8 MB, free: 12.51 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03332/0.3583, allocations: 6.488 MB / 435.3 MB, free: 6.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.35/11.71, allocations: 15.16 kB / 435.3 MB, free: 6.188 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_OneWayClutchDisengaged.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches