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.002175/0.002175, allocations: 101.4 kB / 17.58 MB, free: 5.562 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.003047/0.003047, allocations: 191.9 kB / 18.51 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.536/2.536, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002539/0.002539, allocations: 52.61 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1354/0.1379, allocations: 46.63 MB / 327.4 MB, free: 4.375 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.006685/0.1447, allocations: 2.205 MB / 329.6 MB, free: 2.145 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002398/0.1471, allocations: 0.7216 MB / 330.3 MB, free: 1.414 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002907/0.1475, allocations: 7.938 kB / 330.3 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003062/0.1478, allocations: 31.66 kB / 330.3 MB, free: 1.375 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004095/0.1483, allocations: 71.47 kB / 330.4 MB, free: 1.305 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005087/0.1488, allocations: 95.75 kB / 330.5 MB, free: 1.211 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000548/0.1494, allocations: 267.5 kB / 330.8 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002699/0.1497, allocations: 68.31 kB / 330.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003032/0.15, allocations: 103.6 kB / 330.9 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003831/0.1504, allocations: 123.5 kB / 331.1 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 7.863e-05/0.1505, allocations: 16 kB / 331.1 MB, free: 0.6445 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002763/0.1508, allocations: 71.95 kB / 331.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.1509, allocations: 55.81 kB / 331.2 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002191/0.1512, allocations: 103.5 kB / 331.3 MB, free: 428 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005963/0.1518, allocations: 275.4 kB / 331.6 MB, free: 152 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.1518, allocations: 0 / 331.6 MB, free: 152 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.1518, allocations: 0 / 331.6 MB, free: 152 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.411e-05/0.1519, allocations: 0 / 331.6 MB, free: 152 kB / 270.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.001445/0.1533, allocations: 0.5109 MB / 332.1 MB, free: 15.58 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.1534, allocations: 12.03 kB / 332.1 MB, free: 15.57 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.1535, allocations: 58.72 kB / 332.1 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001045/0.1536, allocations: 24.66 kB / 332.2 MB, free: 15.48 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004426/0.1541, allocations: 232 kB / 332.4 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.61e-05/0.1542, allocations: 12.81 kB / 332.4 MB, free: 15.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.588e-05/0.1543, allocations: 24.28 kB / 332.4 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006926/0.155, allocations: 233.8 kB / 332.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.264e-05/0.155, allocations: 0 / 332.7 MB, free: 14.94 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.837e-05/0.1551, allocations: 19.94 kB / 332.7 MB, free: 14.92 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.108e-05/0.1551, allocations: 4 kB / 332.7 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005568/0.1557, allocations: 161 kB / 332.8 MB, free: 14.76 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/0.1576, allocations: 0.7797 MB / 333.6 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005881/0.1582, allocations: 130.5 kB / 333.8 MB, free: 13.77 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002437/0.1584, allocations: 64.83 kB / 333.8 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.895e-05/0.1585, allocations: 4 kB / 333.8 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.1585, allocations: 38.5 kB / 333.9 MB, free: 13.66 MB / 286.1 MB Notification: Performance of pre-optimization done (n=18): time 2.565e-06/0.1585, allocations: 0 / 333.9 MB, free: 13.66 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.003292/0.1619, allocations: 0.9816 MB / 334.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.182e-05/0.1619, allocations: 55.41 kB / 334.9 MB, free: 12.5 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003773/0.1623, allocations: 206.6 kB / 335.1 MB, free: 12.29 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.779e-05/0.1624, allocations: 29.7 kB / 335.1 MB, free: 12.25 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001551/0.1626, allocations: 144.1 kB / 335.3 MB, free: 12.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.1627, allocations: 74.98 kB / 335.3 MB, free: 12.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001619/0.1629, allocations: 53.61 kB / 335.4 MB, free: 11.98 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001721/0.1631, allocations: 338.8 kB / 335.7 MB, free: 11.64 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002771/0.1633, allocations: 71.97 kB / 335.8 MB, free: 11.57 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003346/0.1637, allocations: 119.6 kB / 335.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005653/0.1643, allocations: 176.7 kB / 336.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.1643, allocations: 0 / 336.1 MB, free: 11.25 MB / 286.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009159/0.1652, allocations: 283.8 kB / 336.4 MB, free: 10.97 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.235e-05/0.1653, allocations: 4 kB / 336.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.1653, allocations: 4 kB / 336.4 MB, free: 10.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004796/0.1658, allocations: 80.86 kB / 336.4 MB, free: 10.88 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000248/0.1661, allocations: 31.98 kB / 336.5 MB, free: 10.85 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007391/0.1668, allocations: 0.6225 MB / 337.1 MB, free: 10.2 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002981/0.1671, allocations: 19.98 kB / 337.1 MB, free: 10.18 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.55e-05/0.1672, allocations: 15.98 kB / 337.1 MB, free: 10.16 MB / 286.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.0001976/0.1674, allocations: 137.8 kB / 337.3 MB, free: 10.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.408e-05/0.1675, allocations: 15.81 kB / 337.3 MB, free: 10 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.786e-05/0.1676, allocations: 29.75 kB / 337.3 MB, free: 9.973 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.345e-06/0.1676, allocations: 7.984 kB / 337.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.1676, allocations: 0 / 337.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.1676, allocations: 0 / 337.3 MB, free: 9.965 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001411/0.169, allocations: 0.613 MB / 337.9 MB, free: 9.289 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.357e-06/0.1691, allocations: 0 / 337.9 MB, free: 9.289 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000229/0.1693, allocations: 31.98 kB / 338 MB, free: 9.258 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002643/0.1696, allocations: 72.8 kB / 338 MB, free: 9.184 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.479e-05/0.1696, allocations: 8.062 kB / 338 MB, free: 9.176 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006337/0.1703, allocations: 0.6147 MB / 338.7 MB, free: 8.535 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/0.1703, allocations: 0 / 338.7 MB, free: 8.535 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009875/0.1713, allocations: 422 kB / 339.1 MB, free: 8.098 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.1715, allocations: 108.9 kB / 339.2 MB, free: 7.973 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.329e-05/0.1715, allocations: 4 kB / 339.2 MB, free: 7.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.1718, allocations: 19.97 kB / 339.2 MB, free: 7.949 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001277/0.1719, allocations: 31.88 kB / 339.2 MB, free: 7.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.706e-05/0.172, allocations: 4 kB / 339.2 MB, free: 7.914 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001953/0.1722, allocations: 167.9 kB / 339.4 MB, free: 7.75 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1722, allocations: 0 / 339.4 MB, free: 7.75 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004715/0.1727, allocations: 64 kB / 339.5 MB, free: 7.688 MB / 286.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.001285/0.174, allocations: 0.9647 MB / 340.4 MB, free: 6.688 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0006066/0.1746, allocations: 207.7 kB / 340.6 MB, free: 6.484 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.1746, allocations: 0 / 340.6 MB, free: 6.484 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002639/0.1749, allocations: 100.1 kB / 340.7 MB, free: 6.387 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.1754, allocations: 35.77 kB / 340.8 MB, free: 6.352 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003859/0.1792, allocations: 2.647 MB / 343.4 MB, free: 3.594 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.1796, allocations: 0.7402 MB / 344.1 MB, free: 2.828 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.913e-05/0.1797, allocations: 13.95 kB / 344.2 MB, free: 2.812 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.1798, allocations: 67.41 kB / 344.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of SimCode: time 1.032e-06/0.1798, allocations: 0 / 344.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03177/0.2116, allocations: 5.407 MB / 349.6 MB, free: 13.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.88/18.09, allocations: 11.69 kB / 349.6 MB, free: 13.27 MB / 302.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