Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.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.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001158/0.001158, 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.001143/0.001143, 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.375/1.375, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3091/0.3104, allocations: 50.55 MB / 408.7 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003576/0.314, allocations: 2.448 MB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.3154, allocations: 0.7635 MB / 412 MB, free: 14.3 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001305/0.3155, allocations: 11.94 kB / 412 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.3157, allocations: 43.58 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.3159, allocations: 107.1 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003452/0.3163, allocations: 123.8 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004272/0.3167, allocations: 466.2 kB / 412.7 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001907/0.3169, allocations: 92.88 kB / 412.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002172/0.3171, allocations: 187.4 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002188/0.3174, allocations: 207.3 kB / 413.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.467e-05/0.3174, allocations: 36 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.542e-05/0.3175, allocations: 47.88 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.86e-05/0.3176, allocations: 83.73 kB / 413.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.3177, allocations: 171.3 kB / 413.5 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004379/0.3182, allocations: 413.4 kB / 413.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.3182, allocations: 3.984 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3182, allocations: 4 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.822e-06/0.3182, allocations: 4 kB / 413.9 MB, free: 12.32 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: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.001595/0.3198, allocations: 0.6859 MB / 414.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.305e-05/0.3199, allocations: 12.03 kB / 414.6 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.004e-05/0.3199, allocations: 66.72 kB / 414.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.752e-05/0.32, allocations: 32.75 kB / 414.7 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003938/0.3204, allocations: 264.8 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.3205, allocations: 88.02 kB / 415.1 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.713e-05/0.3206, allocations: 32 kB / 415.1 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008775/0.3215, allocations: 383.2 kB / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.054e-05/0.3215, allocations: 0 / 415.5 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.361e-05/0.3216, allocations: 12 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.3216, allocations: 4 kB / 415.5 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001345/0.323, allocations: 403.1 kB / 415.9 MB, free: 10.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.3243, allocations: 0.974 MB / 416.8 MB, free: 9.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.3254, allocations: 403.6 kB / 417.2 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006342/0.326, allocations: 214.4 kB / 417.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.026e-05/0.326, allocations: 4 kB / 417.5 MB, free: 8.574 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.941e-05/0.3261, allocations: 46.5 kB / 417.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.674e-06/0.3261, allocations: 0 / 417.5 MB, free: 8.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.005277/0.3314, allocations: 2.325 MB / 419.8 MB, free: 5.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.009e-05/0.3314, allocations: 106.8 kB / 419.9 MB, free: 5.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003313/0.3318, allocations: 207.2 kB / 420.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.018e-05/0.3318, allocations: 29.7 kB / 420.2 MB, free: 5.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.3321, allocations: 148.8 kB / 420.3 MB, free: 5.406 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001062/0.3322, allocations: 146.7 kB / 420.4 MB, free: 5.262 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001365/0.3323, allocations: 78.06 kB / 420.5 MB, free: 5.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002354/0.3326, allocations: 338.8 kB / 420.9 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003699/0.3329, allocations: 104.8 kB / 421 MB, free: 4.734 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003408/0.3333, allocations: 173.4 kB / 421.1 MB, free: 4.551 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007343/0.334, allocations: 295.6 kB / 421.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.334, allocations: 0 / 421.4 MB, free: 4.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007792/0.3348, allocations: 365.2 kB / 421.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.3349, allocations: 4 kB / 421.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3349, allocations: 7.938 kB / 421.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.3349, allocations: 4 kB / 421.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006887/0.3356, allocations: 147.9 kB / 421.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.909e-06/0.3356, allocations: 3.938 kB / 421.9 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.3358, allocations: 27.98 kB / 422 MB, free: 3.695 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.038e-05/0.3359, allocations: 15.98 kB / 422 MB, free: 3.68 MB / 334.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.0001645/0.336, allocations: 149.7 kB / 422.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.735e-05/0.3361, allocations: 35.75 kB / 422.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.128e-05/0.3362, allocations: 33.52 kB / 422.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.3362, allocations: 4.938 kB / 422.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3362, allocations: 0 / 422.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3362, allocations: 4 kB / 422.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002476/0.3387, allocations: 1.323 MB / 423.5 MB, free: 2.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3387, allocations: 4.281 kB / 423.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008411/0.3396, allocations: 175.6 kB / 423.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.873e-06/0.3396, allocations: 8 kB / 423.7 MB, free: 1.848 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.828e-05/0.3397, allocations: 11.94 kB / 423.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.3397, allocations: 7.984 kB / 423.7 MB, free: 1.828 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3397, allocations: 4 kB / 423.7 MB, free: 1.824 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002/0.3417, allocations: 0.9517 MB / 424.7 MB, free: 0.832 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001325/0.3418, allocations: 136.9 kB / 424.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.954e-05/0.3419, allocations: 11.94 kB / 424.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004089/0.3423, allocations: 43.94 kB / 424.9 MB, free: 0.625 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.504e-05/0.3424, allocations: 35.95 kB / 424.9 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.3424, allocations: 19.94 kB / 424.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.3426, allocations: 156.6 kB / 425.1 MB, free: 428 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3426, allocations: 3.938 kB / 425.1 MB, free: 424 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006072/0.3432, allocations: 84 kB / 425.2 MB, free: 340 kB / 334.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.002442/0.3456, allocations: 1.486 MB / 426.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001/0.3467, allocations: 378.6 kB / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3467, allocations: 0 / 427 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006556/0.3473, allocations: 248 kB / 427.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007167/0.3481, allocations: 77.8 kB / 427.3 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008427/0.3565, allocations: 3.867 MB / 431.2 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004277/0.3569, allocations: 0.7643 MB / 432 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001734/0.3571, allocations: 42.97 kB / 432 MB, free: 9.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002356/0.3574, allocations: 99.39 kB / 432.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of SimCode: time 1.352e-06/0.3574, allocations: 0 / 432.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03309/0.3905, allocations: 7.122 MB / 439.2 MB, free: 2.156 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.87/8.26, allocations: 7.844 kB / 439.2 MB, free: 2.148 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches