Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 199.3 kB / 20.74 MB, free: 2.32 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.407/1.407, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 47.92 kB / 373 MB, free: 10.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09617/0.09765, allocations: 53.33 MB / 426.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.004022/0.1017, allocations: 2.472 MB / 428.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001588/0.1033, allocations: 0.7678 MB / 429.5 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001655/0.1034, allocations: 7.938 kB / 429.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001562/0.1036, allocations: 39.58 kB / 429.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00022/0.1038, allocations: 115 kB / 429.7 MB, free: 1.363 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003426/0.1041, allocations: 123.8 kB / 429.8 MB, free: 1.242 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004698/0.1046, allocations: 466.2 kB / 430.3 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001522/0.1048, allocations: 56.95 kB / 430.3 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002304/0.105, allocations: 187.4 kB / 430.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002657/0.1053, allocations: 219.2 kB / 430.7 MB, free: 328 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.773e-05/0.1053, allocations: 36 kB / 430.8 MB, free: 292 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.005e-05/0.1054, allocations: 44 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.42e-05/0.1055, allocations: 75.81 kB / 430.9 MB, free: 172 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1882/0.2936, allocations: 180.4 kB / 431.1 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006104/0.2942, allocations: 409.7 kB / 431.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.2942, allocations: 0 / 431.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2942, allocations: 2.531 kB / 431.5 MB, free: 8.113 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.865e-05/0.2943, allocations: 0 / 431.5 MB, free: 8.113 MB / 350.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.001559/0.2958, allocations: 0.692 MB / 432.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.2959, allocations: 12.83 kB / 432.2 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.615e-05/0.2959, allocations: 59.23 kB / 432.2 MB, free: 7.621 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.377e-05/0.296, allocations: 35.41 kB / 432.3 MB, free: 7.605 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.2964, allocations: 275.2 kB / 432.5 MB, free: 7.387 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.461e-05/0.2965, allocations: 83.72 kB / 432.6 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.2965, allocations: 29.09 kB / 432.6 MB, free: 7.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008841/0.2974, allocations: 379.2 kB / 433 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/0.2974, allocations: 6.922 kB / 433 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.2975, allocations: 9.188 kB / 433 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.515e-06/0.2975, allocations: 5.594 kB / 433 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001105/0.2986, allocations: 393.4 kB / 433.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001115/0.2997, allocations: 0.9692 MB / 434.4 MB, free: 6.766 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001016/0.3007, allocations: 392.9 kB / 434.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006169/0.3013, allocations: 209.4 kB / 435 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.729e-05/0.3014, allocations: 7.266 kB / 435 MB, free: 6.672 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.3014, allocations: 38.12 kB / 435 MB, free: 6.633 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.964e-06/0.3014, allocations: 9.625 kB / 435 MB, free: 6.629 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.004747/0.3061, allocations: 2.323 MB / 437.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.934e-05/0.3062, allocations: 111.2 kB / 437.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002151/0.3064, allocations: 204.3 kB / 437.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.3064, allocations: 33.55 kB / 437.7 MB, free: 5.031 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.262e-05/0.3065, allocations: 146.4 kB / 437.8 MB, free: 4.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.832e-05/0.3066, allocations: 140.9 kB / 438 MB, free: 4.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000135/0.3067, allocations: 81.08 kB / 438 MB, free: 4.812 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.214e-05/0.3068, allocations: 337.8 kB / 438.4 MB, free: 4.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003162/0.3071, allocations: 105.6 kB / 438.5 MB, free: 4.496 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003339/0.3075, allocations: 169 kB / 438.6 MB, free: 4.445 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006313/0.3081, allocations: 298.2 kB / 438.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.377e-06/0.3081, allocations: 2 kB / 438.9 MB, free: 4.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008303/0.3089, allocations: 362.5 kB / 439.3 MB, free: 4.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.3089, allocations: 14.03 kB / 439.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.925e-06/0.3089, allocations: 2.062 kB / 439.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.89e-05/0.309, allocations: 2.781 kB / 439.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007002/0.3097, allocations: 146.3 kB / 439.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.116e-05/0.3097, allocations: 3.969 kB / 439.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/0.3099, allocations: 30.06 kB / 439.5 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.109e-05/0.31, allocations: 13.81 kB / 439.5 MB, free: 4.316 MB / 350.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.0001325/0.3101, allocations: 144.9 kB / 439.6 MB, free: 4.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.645e-05/0.3102, allocations: 33.98 kB / 439.7 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.665e-05/0.3103, allocations: 36.69 kB / 439.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.3103, allocations: 5.344 kB / 439.7 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.896e-06/0.3103, allocations: 6.156 kB / 439.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.3103, allocations: 3.328 kB / 439.7 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002216/0.3125, allocations: 1.327 MB / 441.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/0.3125, allocations: 1.438 kB / 441.1 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008784/0.3134, allocations: 173.3 kB / 441.2 MB, free: 3.316 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.3134, allocations: 8.156 kB / 441.2 MB, free: 3.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.3134, allocations: 10.55 kB / 441.2 MB, free: 3.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.3134, allocations: 8.5 kB / 441.2 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.3134, allocations: 2.531 kB / 441.3 MB, free: 3.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001938/0.3154, allocations: 0.9588 MB / 442.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001459/0.3155, allocations: 129.7 kB / 442.3 MB, free: 2.652 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.187e-05/0.3156, allocations: 11.98 kB / 442.3 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004265/0.316, allocations: 52.88 kB / 442.4 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.3161, allocations: 40.7 kB / 442.4 MB, free: 2.629 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.3161, allocations: 16.75 kB / 442.5 MB, free: 2.625 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001168/0.3162, allocations: 151.1 kB / 442.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3162, allocations: 0 / 442.6 MB, free: 2.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004761/0.3167, allocations: 83.34 kB / 442.7 MB, free: 2.516 MB / 350.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.002044/0.3188, allocations: 1.498 MB / 444.2 MB, free: 1.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.3198, allocations: 358.6 kB / 444.5 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3198, allocations: 0 / 444.5 MB, free: 1.387 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006833/0.3205, allocations: 241.7 kB / 444.8 MB, free: 1.336 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007161/0.3212, allocations: 69.55 kB / 444.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008266/0.3295, allocations: 3.877 MB / 448.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004647/0.3299, allocations: 0.7635 MB / 449.5 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002214/0.3302, allocations: 44.62 kB / 449.5 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002116/0.3304, allocations: 96.22 kB / 449.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3304, allocations: 0 / 449.6 MB, free: 14.17 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05597/0.3863, allocations: 7.18 MB / 456.8 MB, free: 12.01 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.348/8.735, allocations: 16.58 kB / 456.8 MB, free: 12 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 12.142256907885894]