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.001339/0.00134, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001357/0.001358, allocations: 183.1 kB / 18.67 MB, free: 4.41 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.403/1.403, 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.002237/0.002237, allocations: 59.92 kB / 328 MB, free: 3.828 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1047/0.1069, allocations: 46.62 MB / 374.6 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003544/0.1105, allocations: 2.205 MB / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.1119, allocations: 0.7369 MB / 377.6 MB, free: 2.137 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001314/0.1121, allocations: 4 kB / 377.6 MB, free: 2.133 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.1123, allocations: 31.66 kB / 377.6 MB, free: 2.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001866/0.1125, allocations: 67.47 kB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003636/0.1129, allocations: 103.8 kB / 377.8 MB, free: 1.934 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003303/0.1132, allocations: 259.4 kB / 378 MB, free: 1.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001769/0.1134, allocations: 64.31 kB / 378.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001755/0.1136, allocations: 111.6 kB / 378.2 MB, free: 1.508 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002121/0.1138, allocations: 119.5 kB / 378.3 MB, free: 1.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.947e-05/0.1139, allocations: 23.94 kB / 378.3 MB, free: 1.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001533/0.114, allocations: 79.88 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8e-05/0.1141, allocations: 47.84 kB / 378.5 MB, free: 1.242 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001218/0.1143, allocations: 107.5 kB / 378.6 MB, free: 1.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003861/0.1147, allocations: 278.9 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.1147, allocations: 4 kB / 378.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1147, allocations: 0 / 378.9 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.42e-06/0.1147, allocations: 0 / 378.9 MB, free: 0.8594 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.0009701/0.1157, allocations: 0.5182 MB / 379.4 MB, free: 300 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.1157, allocations: 12.03 kB / 379.4 MB, free: 288 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.836e-05/0.1158, allocations: 50.73 kB / 379.4 MB, free: 228 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.612e-05/0.1159, allocations: 28.8 kB / 379.5 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1914/0.3072, allocations: 233 kB / 379.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.756e-05/0.3073, allocations: 13 kB / 379.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.106e-05/0.3074, allocations: 30.45 kB / 379.7 MB, free: 13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.3079, allocations: 218.1 kB / 379.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.474e-05/0.308, allocations: 4.25 kB / 379.9 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.178e-05/0.308, allocations: 7.719 kB / 380 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.308, allocations: 4.625 kB / 380 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003551/0.3084, allocations: 168.7 kB / 380.1 MB, free: 12.94 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.3096, allocations: 0.7757 MB / 380.9 MB, free: 12.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/0.31, allocations: 132.9 kB / 381 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000137/0.3101, allocations: 70.58 kB / 381.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.3102, allocations: 2.75 kB / 381.1 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.064e-05/0.3102, allocations: 36.45 kB / 381.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=18): time 2.966e-06/0.3102, allocations: 1.734 kB / 381.1 MB, free: 12.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.002025/0.3122, allocations: 0.9912 MB / 382.1 MB, free: 11.85 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/0.3123, allocations: 54.14 kB / 382.2 MB, free: 11.79 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002886/0.3126, allocations: 205.4 kB / 382.4 MB, free: 11.66 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3126, allocations: 31.02 kB / 382.4 MB, free: 11.63 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.969e-05/0.3127, allocations: 152.1 kB / 382.6 MB, free: 11.5 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.47e-05/0.3127, allocations: 73.11 kB / 382.6 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.999e-05/0.3129, allocations: 54.42 kB / 382.7 MB, free: 11.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.123e-05/0.3129, allocations: 329.5 kB / 383 MB, free: 11.09 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.3131, allocations: 75.19 kB / 383.1 MB, free: 11.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.3134, allocations: 116.1 kB / 383.2 MB, free: 11 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.3137, allocations: 176.8 kB / 383.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3137, allocations: 1.219 kB / 383.4 MB, free: 10.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005087/0.3142, allocations: 293.1 kB / 383.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.3143, allocations: 5.812 kB / 383.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.545e-06/0.3143, allocations: 1.875 kB / 383.7 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002775/0.3145, allocations: 72.41 kB / 383.7 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001539/0.3147, allocations: 38.98 kB / 383.8 MB, free: 10.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004276/0.3152, allocations: 0.622 MB / 384.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/0.3154, allocations: 21.69 kB / 384.4 MB, free: 10.18 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.176e-05/0.3154, allocations: 11.98 kB / 384.4 MB, free: 10.17 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 0.0001139/0.3155, allocations: 137.7 kB / 384.6 MB, free: 10.04 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.771e-05/0.3156, allocations: 18.52 kB / 384.6 MB, free: 10.03 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.79e-05/0.3156, allocations: 28.28 kB / 384.6 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.568e-06/0.3156, allocations: 3.062 kB / 384.6 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.3156, allocations: 0 / 384.6 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.3157, allocations: 2.125 kB / 384.6 MB, free: 10.01 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008238/0.3165, allocations: 0.6049 MB / 385.2 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3165, allocations: 2.125 kB / 385.2 MB, free: 9.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001569/0.3167, allocations: 32.66 kB / 385.3 MB, free: 9.566 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.3169, allocations: 73.58 kB / 385.3 MB, free: 9.543 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.106e-05/0.3169, allocations: 7.375 kB / 385.3 MB, free: 9.539 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003368/0.3172, allocations: 0.616 MB / 385.9 MB, free: 8.977 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.3173, allocations: 5.25 kB / 386 MB, free: 8.973 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.3178, allocations: 418.5 kB / 386.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.442e-05/0.3179, allocations: 115.8 kB / 386.5 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/0.3179, allocations: 4.406 kB / 386.5 MB, free: 8.598 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001776/0.3181, allocations: 19.75 kB / 386.5 MB, free: 8.594 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.755e-05/0.3182, allocations: 28.58 kB / 386.5 MB, free: 8.586 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.307e-05/0.3182, allocations: 4.906 kB / 386.5 MB, free: 8.586 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001315/0.3184, allocations: 152.2 kB / 386.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3184, allocations: 0 / 386.7 MB, free: 8.488 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003375/0.3187, allocations: 67.3 kB / 386.7 MB, free: 8.477 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.0008524/0.3196, allocations: 0.9631 MB / 387.7 MB, free: 7.684 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005252/0.3201, allocations: 201.5 kB / 387.9 MB, free: 7.625 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.3201, allocations: 0 / 387.9 MB, free: 7.625 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002356/0.3204, allocations: 109.2 kB / 388 MB, free: 7.59 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004005/0.3208, allocations: 36.25 kB / 388 MB, free: 7.574 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003062/0.3239, allocations: 2.661 MB / 390.7 MB, free: 5.688 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001983/0.3241, allocations: 0.7424 MB / 391.4 MB, free: 4.988 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.395e-05/0.3242, allocations: 22.45 kB / 391.5 MB, free: 4.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.842e-05/0.3243, allocations: 58.78 kB / 391.5 MB, free: 4.938 MB / 318.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3243, allocations: 0 / 391.5 MB, free: 4.938 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03279/0.3571, allocations: 5.52 MB / 397 MB, free: 4.02 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.48, allocations: 4 kB / 397.1 MB, free: 4.016 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