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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007607/0.0007607, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8531/0.8531, allocations: 173.4 MB / 200.4 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.114e-05/2.278e-05, allocations: 2.281 kB / 318.4 MB, free: 6.383 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.002435/0.002458, allocations: 2.273 MB / 320.7 MB, free: 4.09 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001142/0.0036, allocations: 0.7054 MB / 321.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000117/0.003717, allocations: 11.94 kB / 321.4 MB, free: 3.371 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.003839, allocations: 43.58 kB / 321.5 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001777/0.004017, allocations: 114.9 kB / 321.6 MB, free: 3.215 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003073/0.004324, allocations: 135.6 kB / 321.7 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003317/0.004656, allocations: 486 kB / 322.2 MB, free: 2.605 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.0048, allocations: 65.11 kB / 322.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/0.005075, allocations: 263.5 kB / 322.5 MB, free: 2.277 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001396/0.005215, allocations: 163.6 kB / 322.7 MB, free: 2.117 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.446e-05/0.005259, allocations: 40 kB / 322.7 MB, free: 2.078 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.381e-05/0.005293, allocations: 36 kB / 322.7 MB, free: 2.043 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 4.943e-05/0.005343, allocations: 87.72 kB / 322.8 MB, free: 1.957 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.015e-05/0.005423, allocations: 127.7 kB / 322.9 MB, free: 1.832 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.005727, allocations: 442.7 kB / 323.4 MB, free: 1.398 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.763e-06/0.005729, allocations: 3.938 kB / 323.4 MB, free: 1.395 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.00573, allocations: 0 / 323.4 MB, free: 1.395 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.789e-06/0.005734, allocations: 0 / 323.4 MB, free: 1.395 MB / 282.7 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.0009045/0.006639, allocations: 0.6137 MB / 324 MB, free: 0.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.006676, allocations: 12.92 kB / 324 MB, free: 0.7383 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.086e-05/0.006727, allocations: 58.73 kB / 324.1 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.553e-05/0.006782, allocations: 40.69 kB / 324.1 MB, free: 0.6328 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002857/0.007068, allocations: 217.1 kB / 324.3 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.706e-05/0.007165, allocations: 139.9 kB / 324.4 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.007205, allocations: 24.38 kB / 324.5 MB, free: 216 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.00772, allocations: 374.5 kB / 324.8 MB, free: 15.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.782e-05/0.007738, allocations: 11.95 kB / 324.8 MB, free: 15.81 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.161e-05/0.00776, allocations: 11.94 kB / 324.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.007767, allocations: 12 kB / 324.9 MB, free: 15.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006086/0.008376, allocations: 383.6 kB / 325.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008387/0.009214, allocations: 0.8526 MB / 326.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005666/0.009781, allocations: 395.5 kB / 326.5 MB, free: 14.1 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003087/0.01009, allocations: 210.4 kB / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/0.01011, allocations: 4 kB / 326.7 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.006e-05/0.01013, allocations: 46.5 kB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=32): time 1.433e-06/0.01013, allocations: 0 / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.002406/0.01254, allocations: 1.865 MB / 328.6 MB, free: 11.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.028e-05/0.01258, allocations: 110.8 kB / 328.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00013/0.01271, allocations: 211.2 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.142e-05/0.01273, allocations: 33.7 kB / 329 MB, free: 11.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.105e-05/0.0128, allocations: 148.8 kB / 329.1 MB, free: 11.27 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.548e-05/0.01287, allocations: 146.7 kB / 329.2 MB, free: 11.13 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/0.01296, allocations: 74.12 kB / 329.3 MB, free: 11.05 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.104e-05/0.01304, allocations: 342.8 kB / 329.6 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.0132, allocations: 112.9 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.01338, allocations: 162.1 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003406/0.01372, allocations: 292.4 kB / 330.2 MB, free: 10.12 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.01372, allocations: 3.938 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0004383/0.01416, allocations: 373 kB / 330.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.01417, allocations: 8 kB / 330.6 MB, free: 9.738 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01418, allocations: 3.938 kB / 330.6 MB, free: 9.734 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.278e-05/0.01419, allocations: 4 kB / 330.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003222/0.01451, allocations: 148.8 kB / 330.7 MB, free: 9.586 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.01452, allocations: 7.938 kB / 330.7 MB, free: 9.578 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.832e-05/0.01462, allocations: 19.98 kB / 330.8 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.205e-05/0.01463, allocations: 12 kB / 330.8 MB, free: 9.547 MB / 298.7 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 9.776e-05/0.01473, allocations: 153.8 kB / 330.9 MB, free: 9.387 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.283e-05/0.01478, allocations: 27.81 kB / 330.9 MB, free: 9.359 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.111e-05/0.01482, allocations: 33.41 kB / 331 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.01483, allocations: 4 kB / 331 MB, free: 9.328 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.01483, allocations: 7.984 kB / 331 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.887e-06/0.01484, allocations: 0 / 331 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00127/0.01611, allocations: 1.237 MB / 332.2 MB, free: 7.992 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.01611, allocations: 8 kB / 332.2 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003739/0.01649, allocations: 167.9 kB / 332.4 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.25e-06/0.01649, allocations: 7.984 kB / 332.4 MB, free: 7.812 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.109e-05/0.01651, allocations: 16 kB / 332.4 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.01651, allocations: 0 / 332.4 MB, free: 7.797 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.01652, allocations: 7.938 kB / 332.4 MB, free: 7.789 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.01756, allocations: 0.9529 MB / 333.4 MB, free: 6.797 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.522e-05/0.01763, allocations: 51.83 kB / 333.4 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.666e-05/0.01766, allocations: 11.98 kB / 333.4 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000197/0.01786, allocations: 43.95 kB / 333.5 MB, free: 6.691 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.684e-05/0.01792, allocations: 47.75 kB / 333.5 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.59e-05/0.01794, allocations: 19.98 kB / 333.6 MB, free: 6.625 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.879e-05/0.01802, allocations: 156.6 kB / 333.7 MB, free: 6.473 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01802, allocations: 0 / 333.7 MB, free: 6.473 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002754/0.01829, allocations: 84 kB / 333.8 MB, free: 6.391 MB / 298.7 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.0012/0.01949, allocations: 1.493 MB / 335.3 MB, free: 4.848 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000507/0.02, allocations: 359.2 kB / 335.6 MB, free: 4.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.02, allocations: 0 / 335.6 MB, free: 4.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003372/0.02034, allocations: 240 kB / 335.9 MB, free: 4.266 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003915/0.02073, allocations: 72.36 kB / 335.9 MB, free: 4.199 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004222/0.02495, allocations: 3.738 MB / 339.7 MB, free: 304 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001087/0.02506, allocations: 164.3 kB / 339.8 MB, free: 124 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001104/0.02517, allocations: 42.95 kB / 339.9 MB, free: 84 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000135/0.02531, allocations: 100.5 kB / 340 MB, free: 15.98 MB / 314.7 MB Notification: Performance of SimCode: time 4.81e-07/0.02531, allocations: 0 / 340 MB, free: 15.98 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02126/0.04656, allocations: 8.255 MB / 348.2 MB, free: 7.902 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.777/6.824, allocations: 8.062 kB / 348.2 MB, free: 7.895 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.405135655775666]