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.001387/0.001387, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00204/0.00204, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.8 MB, free: 10.59 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001929/0.001929, allocations: 68.08 kB / 307 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1381, allocations: 50.54 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003788/0.1419, allocations: 2.44 MB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.1432, allocations: 0.7677 MB / 360.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.1433, allocations: 11.94 kB / 360.8 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.1435, allocations: 43.58 kB / 360.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001792/0.1437, allocations: 99.09 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000326/0.144, allocations: 131.8 kB / 361.1 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003804/0.1444, allocations: 466.2 kB / 361.5 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.1446, allocations: 94.42 kB / 361.6 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.1448, allocations: 183.5 kB / 361.8 MB, free: 9.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002756/0.1451, allocations: 203.3 kB / 362 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.052e-05/0.1452, allocations: 40 kB / 362 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.941e-05/0.1453, allocations: 36 kB / 362.1 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001106/0.1454, allocations: 91.72 kB / 362.2 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001935/0.1456, allocations: 171.2 kB / 362.3 MB, free: 9.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004416/0.146, allocations: 418.9 kB / 362.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.146, allocations: 0 / 362.7 MB, free: 8.809 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.146, allocations: 4 kB / 362.7 MB, free: 8.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.995e-06/0.1461, allocations: 0 / 362.7 MB, free: 8.805 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.001634/0.1477, allocations: 0.6822 MB / 363.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1478, allocations: 8.031 kB / 363.4 MB, free: 8.066 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.784e-05/0.1478, allocations: 70.72 kB / 363.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.184e-05/0.1479, allocations: 40.56 kB / 363.5 MB, free: 7.949 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003233/0.1483, allocations: 267.6 kB / 363.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/0.1486, allocations: 128 kB / 363.9 MB, free: 7.512 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.928e-05/0.1487, allocations: 24 kB / 363.9 MB, free: 7.488 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008508/0.1496, allocations: 383.2 kB / 364.3 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.276e-05/0.1496, allocations: 7.906 kB / 364.3 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.375e-05/0.1496, allocations: 8 kB / 364.3 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.808e-06/0.1497, allocations: 8 kB / 364.3 MB, free: 7.074 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.1508, allocations: 391.5 kB / 364.7 MB, free: 6.691 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001385/0.1522, allocations: 0.9619 MB / 365.7 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.1533, allocations: 407.5 kB / 366.1 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005964/0.1539, allocations: 214.4 kB / 366.3 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.1539, allocations: 4 kB / 366.3 MB, free: 5.023 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.1539, allocations: 42.56 kB / 366.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.154, allocations: 0 / 366.3 MB, free: 4.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=38): time 0.004847/0.1588, allocations: 2.315 MB / 368.7 MB, free: 2.395 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.1589, allocations: 110.8 kB / 368.8 MB, free: 2.262 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002082/0.1591, allocations: 207.2 kB / 369 MB, free: 2.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.1591, allocations: 29.7 kB / 369 MB, free: 2.008 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.199e-05/0.1592, allocations: 152.6 kB / 369.1 MB, free: 1.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.1594, allocations: 137.9 kB / 369.3 MB, free: 1.719 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.1595, allocations: 74.12 kB / 369.4 MB, free: 1.641 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.1597, allocations: 338.8 kB / 369.7 MB, free: 1.301 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003186/0.16, allocations: 108.8 kB / 369.8 MB, free: 1.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003515/0.1604, allocations: 169.4 kB / 370 MB, free: 1.012 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006586/0.161, allocations: 291.7 kB / 370.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.1611, allocations: 0 / 370.2 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008257/0.1619, allocations: 368.9 kB / 370.6 MB, free: 352 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.166e-05/0.1619, allocations: 10.8 kB / 370.6 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.1619, allocations: 4 kB / 370.6 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.355e-05/0.162, allocations: 4 kB / 370.6 MB, free: 336 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007276/0.1627, allocations: 143.9 kB / 370.8 MB, free: 192 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.1627, allocations: 4 kB / 370.8 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.163, allocations: 27.98 kB / 370.8 MB, free: 160 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.182e-05/0.163, allocations: 12 kB / 370.8 MB, free: 148 kB / 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.191/0.354, allocations: 153.2 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001536/0.3542, allocations: 26.78 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.195e-05/0.3543, allocations: 33.8 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.3543, allocations: 4.562 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.3543, allocations: 1.156 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.3543, allocations: 7.625 kB / 371 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002605/0.3569, allocations: 1.327 MB / 372.4 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.357, allocations: 2.062 kB / 372.4 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009012/0.3579, allocations: 168.3 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.285e-06/0.3579, allocations: 4 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-05/0.3579, allocations: 15.36 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.893e-06/0.3579, allocations: 4.016 kB / 372.5 MB, free: 19.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.589e-06/0.3579, allocations: 6.578 kB / 372.5 MB, free: 19.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002004/0.36, allocations: 0.9541 MB / 373.5 MB, free: 19.19 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001298/0.3601, allocations: 132.2 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.77e-05/0.3602, allocations: 9.547 kB / 373.6 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004385/0.3606, allocations: 47.77 kB / 373.7 MB, free: 19.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001199/0.3607, allocations: 37.88 kB / 373.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.934e-05/0.3608, allocations: 16.88 kB / 373.7 MB, free: 19.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001405/0.3609, allocations: 150.9 kB / 373.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3609, allocations: 0 / 373.9 MB, free: 19.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004698/0.3614, allocations: 82.5 kB / 374 MB, free: 19.02 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.002275/0.3637, allocations: 1.502 MB / 375.5 MB, free: 18.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001185/0.3649, allocations: 386.7 kB / 375.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.019e-06/0.3649, allocations: 0 / 375.8 MB, free: 17.98 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006731/0.3656, allocations: 246 kB / 376.1 MB, free: 17.91 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007875/0.3664, allocations: 80.38 kB / 376.2 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008153/0.3745, allocations: 3.861 MB / 380 MB, free: 15.54 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002284/0.3748, allocations: 0.7672 MB / 380.8 MB, free: 14.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002/0.375, allocations: 38.47 kB / 380.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001795/0.3752, allocations: 98.84 kB / 380.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of SimCode: time 8.21e-07/0.3752, allocations: 0 / 380.9 MB, free: 14.77 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02929/0.4045, allocations: 7.005 MB / 387.9 MB, free: 12.74 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.028/8.433, allocations: 19.23 kB / 388 MB, free: 12.73 MB / 302.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