Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash",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.001593/0.001593, allocations: 107.5 kB / 16.92 MB, free: 5.801 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.001898/0.001898, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.194/2.194, allocations: 222.9 MB / 241.6 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001743/0.001743, allocations: 45.2 kB / 300.7 MB, free: 5.727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1387/0.1405, allocations: 49.45 MB / 350.2 MB, free: 4.262 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.006253/0.1468, allocations: 2.429 MB / 352.6 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002383/0.1492, allocations: 0.7289 MB / 353.3 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004528/0.1497, allocations: 8 kB / 353.3 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.15, allocations: 39.58 kB / 353.4 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000547/0.1506, allocations: 107 kB / 353.5 MB, free: 0.9258 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007277/0.1514, allocations: 115.8 kB / 353.6 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009256/0.1523, allocations: 482.1 kB / 354.1 MB, free: 348 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003159/0.1527, allocations: 76.92 kB / 354.1 MB, free: 264 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005625/0.1532, allocations: 187.4 kB / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004411/0.1537, allocations: 203.3 kB / 354.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.1538, allocations: 40 kB / 354.6 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.154, allocations: 36 kB / 354.6 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001224/0.1541, allocations: 91.72 kB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002722/0.1544, allocations: 167.3 kB / 354.8 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007485/0.1551, allocations: 414.9 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.385e-06/0.1552, allocations: 4 kB / 355.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.086e-06/0.1552, allocations: 3.938 kB / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.082e-05/0.1552, allocations: 0 / 355.3 MB, free: 15.13 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.002291/0.1575, allocations: 0.6822 MB / 355.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.252e-05/0.1576, allocations: 8.031 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001994/0.1578, allocations: 62.73 kB / 356 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001522/0.158, allocations: 36.56 kB / 356 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000568/0.1585, allocations: 275.5 kB / 356.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004657/0.159, allocations: 132 kB / 356.4 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.975e-05/0.1591, allocations: 27.91 kB / 356.5 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.1605, allocations: 375.2 kB / 356.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.92e-05/0.1606, allocations: 4 kB / 356.8 MB, free: 13.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.177e-05/0.1606, allocations: 11.94 kB / 356.9 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.371e-05/0.1607, allocations: 8 kB / 356.9 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001536/0.1622, allocations: 391.5 kB / 357.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002273/0.1645, allocations: 0.9779 MB / 358.2 MB, free: 11.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001187/0.1657, allocations: 399.6 kB / 358.6 MB, free: 11.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006771/0.1664, allocations: 218.4 kB / 358.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.277e-05/0.1664, allocations: 4 kB / 358.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.127e-05/0.1665, allocations: 46.5 kB / 358.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.715e-06/0.1665, allocations: 0 / 358.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.005929/0.1724, allocations: 2.312 MB / 361.2 MB, free: 8.715 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.198e-05/0.1725, allocations: 110.8 kB / 361.3 MB, free: 8.582 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002814/0.1728, allocations: 203.2 kB / 361.5 MB, free: 8.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.829e-05/0.1729, allocations: 33.69 kB / 361.5 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001161/0.173, allocations: 156.6 kB / 361.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.1732, allocations: 137.9 kB / 361.8 MB, free: 8.039 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001654/0.1734, allocations: 74.12 kB / 361.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001887/0.1736, allocations: 330.8 kB / 362.2 MB, free: 7.629 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003661/0.1739, allocations: 112.8 kB / 362.3 MB, free: 7.52 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003985/0.1743, allocations: 165.5 kB / 362.5 MB, free: 7.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007352/0.1751, allocations: 292.5 kB / 362.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1751, allocations: 0 / 362.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009552/0.1761, allocations: 371.2 kB / 363.1 MB, free: 6.676 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.379e-05/0.1761, allocations: 6.969 kB / 363.1 MB, free: 6.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.1761, allocations: 4 kB / 363.1 MB, free: 6.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.1761, allocations: 3.984 kB / 363.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007486/0.1769, allocations: 151.8 kB / 363.3 MB, free: 6.516 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.1769, allocations: 11.94 kB / 363.3 MB, free: 6.504 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.1772, allocations: 27.98 kB / 363.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.297e-05/0.1773, allocations: 8 kB / 363.3 MB, free: 6.469 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001883/0.1775, allocations: 149.7 kB / 363.5 MB, free: 6.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.1776, allocations: 31.66 kB / 363.5 MB, free: 6.281 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001011/0.1777, allocations: 33.52 kB / 363.5 MB, free: 6.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.1777, allocations: 4 kB / 363.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.1777, allocations: 0 / 363.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.1777, allocations: 3.984 kB / 363.6 MB, free: 6.242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003044/0.1808, allocations: 1.343 MB / 364.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1808, allocations: 0 / 364.9 MB, free: 4.805 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009382/0.1818, allocations: 164 kB / 365.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.394e-05/0.1818, allocations: 4 kB / 365.1 MB, free: 4.641 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.741e-05/0.1818, allocations: 23.91 kB / 365.1 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.1819, allocations: 4 kB / 365.1 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.945e-06/0.1819, allocations: 8.094 kB / 365.1 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002321/0.1842, allocations: 0.9483 MB / 366 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001995/0.1844, allocations: 124.8 kB / 366.2 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.397e-05/0.1845, allocations: 20.05 kB / 366.2 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004604/0.185, allocations: 47.95 kB / 366.2 MB, free: 3.41 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.1851, allocations: 43.83 kB / 366.3 MB, free: 3.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.59e-05/0.1852, allocations: 15.98 kB / 366.3 MB, free: 3.352 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.1854, allocations: 152.6 kB / 366.4 MB, free: 3.203 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1854, allocations: 0 / 366.4 MB, free: 3.203 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005717/0.1859, allocations: 88 kB / 366.5 MB, free: 3.117 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (elastoBacklash2.phi_rel,elastoBacklash2.w_rel,elastoBacklash.phi_rel,elastoBacklash.w_rel,springDamper.phi_rel,springDamper.w_rel) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002785/0.1887, allocations: 1.509 MB / 368 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001318/0.1901, allocations: 379.5 kB / 368.4 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 9.107e-06/0.1901, allocations: 4 kB / 368.4 MB, free: 1.184 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007492/0.1909, allocations: 252.2 kB / 368.7 MB, free: 0.9375 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000964/0.1918, allocations: 60.8 kB / 368.7 MB, free: 0.8789 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3273/0.5191, allocations: 3.84 MB / 372.6 MB, free: 24.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006111/0.5198, allocations: 0.7721 MB / 373.3 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004357/0.5203, allocations: 37.23 kB / 373.4 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003081/0.5206, allocations: 97.02 kB / 373.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of SimCode: time 1.744e-06/0.5206, allocations: 4 kB / 373.5 MB, free: 23.45 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0385/0.5591, allocations: 7.003 MB / 380.5 MB, free: 22.23 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.7/13.26, allocations: 13.45 kB / 380.5 MB, free: 22.23 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches