Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.Backlash,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_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.001741/0.001741, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.002206/0.002206, allocations: 192 kB / 18.51 MB, free: 4.641 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.503/2.503, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002462/0.002462, allocations: 51.92 kB / 280.7 MB, free: 3.07 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1569/0.1594, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.007678/0.1672, allocations: 2.432 MB / 329.8 MB, free: 1.914 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002706/0.17, allocations: 0.7766 MB / 330.6 MB, free: 1.133 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003899/0.1704, allocations: 7.938 kB / 330.6 MB, free: 1.125 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003435/0.1709, allocations: 39.59 kB / 330.6 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005535/0.1715, allocations: 107 kB / 330.7 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006813/0.1722, allocations: 131.8 kB / 330.9 MB, free: 0.8516 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008785/0.1731, allocations: 466.2 kB / 331.3 MB, free: 404 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003568/0.1735, allocations: 84.86 kB / 331.4 MB, free: 316 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004672/0.174, allocations: 179.5 kB / 331.6 MB, free: 136 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005193/0.1745, allocations: 203.3 kB / 331.8 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001452/0.1747, allocations: 40 kB / 331.8 MB, free: 15.89 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001514/0.1748, allocations: 36 kB / 331.9 MB, free: 15.86 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001639/0.175, allocations: 99.66 kB / 332 MB, free: 15.76 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003679/0.1754, allocations: 167.2 kB / 332.1 MB, free: 15.6 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007338/0.1761, allocations: 411 kB / 332.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.997e-06/0.1762, allocations: 0 / 332.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1762, allocations: 0 / 332.5 MB, free: 15.2 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.265e-05/0.1762, allocations: 0 / 332.5 MB, free: 15.2 MB / 286.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.002866/0.1791, allocations: 0.69 MB / 333.2 MB, free: 14.46 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.135e-05/0.1792, allocations: 8.031 kB / 333.2 MB, free: 14.45 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001509/0.1793, allocations: 62.72 kB / 333.3 MB, free: 14.38 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001705/0.1795, allocations: 40.5 kB / 333.3 MB, free: 14.34 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006254/0.1802, allocations: 271.6 kB / 333.6 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006914/0.1809, allocations: 128 kB / 333.7 MB, free: 13.9 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001198/0.181, allocations: 31.91 kB / 333.7 MB, free: 13.87 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001624/0.1827, allocations: 379.2 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.081e-05/0.1827, allocations: 4 kB / 334.1 MB, free: 13.48 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.96e-05/0.1828, allocations: 8 kB / 334.1 MB, free: 13.47 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.894e-05/0.1828, allocations: 8 kB / 334.1 MB, free: 13.46 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002297/0.1851, allocations: 395.5 kB / 334.5 MB, free: 13.08 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003086/0.1883, allocations: 0.9619 MB / 335.5 MB, free: 12.05 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001817/0.1901, allocations: 419.5 kB / 335.9 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001118/0.1913, allocations: 210.4 kB / 336.1 MB, free: 11.4 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.502e-05/0.1914, allocations: 8.438 kB / 336.1 MB, free: 11.39 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.66e-05/0.1914, allocations: 42.5 kB / 336.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of pre-optimization done (n=32): time 5.941e-06/0.1915, allocations: 0 / 336.1 MB, free: 11.34 MB / 286.1 MB Notification: Performance of matching and sorting (n=38): time 0.008164/0.1996, allocations: 2.324 MB / 338.5 MB, free: 8.754 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.867e-05/0.1998, allocations: 106.8 kB / 338.6 MB, free: 8.625 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003926/0.2002, allocations: 211.2 kB / 338.8 MB, free: 8.406 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.476e-05/0.2003, allocations: 29.7 kB / 338.8 MB, free: 8.371 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.2005, allocations: 148.6 kB / 339 MB, free: 8.223 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.2007, allocations: 141.9 kB / 339.1 MB, free: 8.082 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002287/0.2009, allocations: 74.11 kB / 339.2 MB, free: 8.004 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.2011, allocations: 334.8 kB / 339.5 MB, free: 7.668 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004867/0.2016, allocations: 108.8 kB / 339.6 MB, free: 7.562 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005268/0.2021, allocations: 169.4 kB / 339.8 MB, free: 7.375 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009461/0.2031, allocations: 291 kB / 340 MB, free: 7.074 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.2031, allocations: 0 / 340 MB, free: 7.074 MB / 286.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000955/0.2041, allocations: 371.1 kB / 340.4 MB, free: 6.707 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.331e-05/0.2041, allocations: 8.094 kB / 340.4 MB, free: 6.699 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.2042, allocations: 4 kB / 340.4 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.698e-05/0.2042, allocations: 4 kB / 340.4 MB, free: 6.691 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008665/0.2051, allocations: 148.8 kB / 340.6 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.48e-05/0.2051, allocations: 0 / 340.6 MB, free: 6.547 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002783/0.2054, allocations: 23.98 kB / 340.6 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.32e-05/0.2054, allocations: 12 kB / 340.6 MB, free: 6.512 MB / 286.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.0002093/0.2056, allocations: 153.7 kB / 340.8 MB, free: 6.352 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/0.2058, allocations: 35.56 kB / 340.8 MB, free: 6.316 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.001e-05/0.2059, allocations: 29.53 kB / 340.8 MB, free: 6.285 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/0.2059, allocations: 4 kB / 340.8 MB, free: 6.281 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.2059, allocations: 0 / 340.8 MB, free: 6.281 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.039e-05/0.2059, allocations: 7.984 kB / 340.8 MB, free: 6.273 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003147/0.2091, allocations: 1.319 MB / 342.1 MB, free: 4.859 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.492e-06/0.2091, allocations: 4.031 kB / 342.2 MB, free: 4.855 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009059/0.21, allocations: 167.8 kB / 342.3 MB, free: 4.691 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.568e-05/0.21, allocations: 8 kB / 342.3 MB, free: 4.684 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.98e-05/0.2101, allocations: 15.88 kB / 342.3 MB, free: 4.668 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.977e-06/0.2101, allocations: 8 kB / 342.3 MB, free: 4.66 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/0.2101, allocations: 4 kB / 342.3 MB, free: 4.656 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002271/0.2124, allocations: 0.9671 MB / 343.3 MB, free: 3.652 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.2126, allocations: 132.7 kB / 343.4 MB, free: 3.504 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001023/0.2127, allocations: 11.94 kB / 343.5 MB, free: 3.492 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004734/0.2132, allocations: 39.95 kB / 343.5 MB, free: 3.453 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001519/0.2134, allocations: 39.94 kB / 343.5 MB, free: 3.414 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.2134, allocations: 20 kB / 343.6 MB, free: 3.395 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001634/0.2136, allocations: 152.6 kB / 343.7 MB, free: 3.246 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.2136, allocations: 0 / 343.7 MB, free: 3.246 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.000542/0.2141, allocations: 84 kB / 343.8 MB, free: 3.164 MB / 286.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.002717/0.2169, allocations: 1.489 MB / 345.3 MB, free: 1.629 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.2181, allocations: 380.4 kB / 345.6 MB, free: 1.258 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 5.129e-06/0.2181, allocations: 4 kB / 345.7 MB, free: 1.254 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007564/0.2189, allocations: 244 kB / 345.9 MB, free: 1.016 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008844/0.2198, allocations: 72.75 kB / 346 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01125/0.2311, allocations: 3.864 MB / 349.8 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006609/0.2318, allocations: 0.772 MB / 350.6 MB, free: 12.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002511/0.232, allocations: 46.88 kB / 350.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002389/0.2323, allocations: 91.41 kB / 350.7 MB, free: 12 MB / 302.1 MB Notification: Performance of SimCode: time 2.064e-06/0.2323, allocations: 0 / 350.7 MB, free: 12 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04841/0.2807, allocations: 7.005 MB / 357.7 MB, free: 4.922 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.8, allocations: 3.938 kB / 357.7 MB, free: 4.918 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches