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.001318/0.001318, allocations: 122.2 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.001414/0.001415, allocations: 202 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.491/1.491, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002947/0.002947, allocations: 63.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3002/0.3032, allocations: 50.54 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003983/0.3072, allocations: 2.335 MB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00145/0.3087, allocations: 0.849 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001203/0.3088, allocations: 7.938 kB / 411.9 MB, free: 14.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002741/0.3091, allocations: 55.56 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003034/0.3094, allocations: 107.2 kB / 412.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.3097, allocations: 79.83 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003352/0.31, allocations: 275.4 kB / 412.4 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001692/0.3102, allocations: 72.3 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000229/0.3104, allocations: 119.5 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002106/0.3107, allocations: 123.5 kB / 412.7 MB, free: 13.52 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.709e-05/0.3107, allocations: 24 kB / 412.8 MB, free: 13.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.3109, allocations: 87.91 kB / 412.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.564e-05/0.311, allocations: 51.83 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.3111, allocations: 119.4 kB / 413 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004235/0.3115, allocations: 309.8 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.3115, allocations: 0 / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.3115, allocations: 0 / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.3116, allocations: 0 / 413.3 MB, free: 12.95 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.0008851/0.3124, allocations: 0.5452 MB / 413.9 MB, free: 12.35 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.3125, allocations: 12.03 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.225e-05/0.3126, allocations: 54.72 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001645/0.3127, allocations: 36.78 kB / 414 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003685/0.3131, allocations: 248 kB / 414.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.472e-05/0.3131, allocations: 16.75 kB / 414.2 MB, free: 11.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.937e-05/0.3132, allocations: 24.31 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004072/0.3136, allocations: 218.7 kB / 414.5 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.3136, allocations: 7.984 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.231e-05/0.3137, allocations: 8 kB / 414.5 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3137, allocations: 4 kB / 414.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003308/0.314, allocations: 159 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001183/0.3152, allocations: 0.7742 MB / 415.4 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003784/0.3156, allocations: 142.5 kB / 415.6 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001405/0.3158, allocations: 73.02 kB / 415.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.3158, allocations: 352 / 415.6 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.668e-05/0.3158, allocations: 34.56 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of pre-optimization done (n=19): time 1.112e-06/0.3158, allocations: 0 / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001944/0.3178, allocations: 0.9987 MB / 416.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.3178, allocations: 55.41 kB / 416.7 MB, free: 9.238 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002671/0.3181, allocations: 218.8 kB / 416.9 MB, free: 9.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.117e-05/0.3182, allocations: 29.7 kB / 417 MB, free: 8.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.3183, allocations: 144.3 kB / 417.1 MB, free: 8.832 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.406e-05/0.3184, allocations: 79.36 kB / 417.2 MB, free: 8.754 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.528e-05/0.3185, allocations: 53.7 kB / 417.2 MB, free: 8.695 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3186, allocations: 330.8 kB / 417.6 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001586/0.3188, allocations: 67.97 kB / 417.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001819/0.319, allocations: 107.4 kB / 417.7 MB, free: 8.18 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000297/0.3193, allocations: 171.3 kB / 417.9 MB, free: 8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.3193, allocations: 0 / 417.9 MB, free: 8 MB / 334.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0004957/0.3198, allocations: 274.1 kB / 418.2 MB, free: 7.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.3198, allocations: 4 kB / 418.2 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.165e-06/0.3198, allocations: 4 kB / 418.2 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002149/0.3201, allocations: 56.89 kB / 418.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.3202, allocations: 39.92 kB / 418.3 MB, free: 7.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00206/0.3223, allocations: 1.811 MB / 420.1 MB, free: 5.672 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001887/0.3225, allocations: 24 kB / 420.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.994e-05/0.3225, allocations: 8.156 kB / 420.1 MB, free: 5.641 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.0001551/0.3227, allocations: 137.9 kB / 420.2 MB, free: 5.496 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.81e-05/0.3228, allocations: 27.73 kB / 420.3 MB, free: 5.469 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.547e-05/0.3228, allocations: 29.8 kB / 420.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.696e-06/0.3228, allocations: 4 kB / 420.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.314e-06/0.3228, allocations: 0 / 420.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.467e-06/0.3228, allocations: 0 / 420.3 MB, free: 5.43 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009454/0.3238, allocations: 0.617 MB / 420.9 MB, free: 4.746 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.192e-06/0.3238, allocations: 4 kB / 420.9 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001692/0.324, allocations: 31.92 kB / 421 MB, free: 4.711 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001506/0.3241, allocations: 56.81 kB / 421 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.3242, allocations: 11.94 kB / 421 MB, free: 4.641 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00173/0.3259, allocations: 1.657 MB / 422.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3259, allocations: 0 / 422.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007015/0.3266, allocations: 430.3 kB / 423.1 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.3268, allocations: 113 kB / 423.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.115e-05/0.3268, allocations: 12 kB / 423.2 MB, free: 2.262 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001784/0.327, allocations: 23.97 kB / 423.2 MB, free: 2.238 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001534/0.3271, allocations: 67.84 kB / 423.3 MB, free: 2.172 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.3272, allocations: 8 kB / 423.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001606/0.3273, allocations: 152.6 kB / 423.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3273, allocations: 0 / 423.5 MB, free: 2.016 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004021/0.3277, allocations: 75.98 kB / 423.5 MB, free: 1.941 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.002104/0.3299, allocations: 1.203 MB / 424.7 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007012/0.3306, allocations: 322.4 kB / 425.1 MB, free: 500 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.3306, allocations: 4.125 kB / 425.1 MB, free: 496 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003386/0.3309, allocations: 234.4 kB / 425.3 MB, free: 248 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004152/0.3314, allocations: 49.77 kB / 425.3 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003734/0.3351, allocations: 2.663 MB / 428 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004082/0.3355, allocations: 0.7441 MB / 428.7 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.502e-05/0.3356, allocations: 25.86 kB / 428.8 MB, free: 12.63 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001209/0.3358, allocations: 67.41 kB / 428.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3358, allocations: 0 / 428.8 MB, free: 12.56 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03787/0.3736, allocations: 6.498 MB / 435.3 MB, free: 6.238 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.25, allocations: 14.98 kB / 435.3 MB, free: 6.23 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.1.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