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.001612/0.001612, allocations: 109.5 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002044/0.002044, allocations: 188.1 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.381/1.381, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001606/0.001606, allocations: 43.92 kB / 370.4 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2542, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003819/0.2581, allocations: 2.47 MB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001265/0.2593, allocations: 0.7445 MB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.2594, allocations: 7.938 kB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001432/0.2596, allocations: 39.59 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.2598, allocations: 111 kB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.2601, allocations: 127.1 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004948/0.2606, allocations: 478.1 kB / 426.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001708/0.2608, allocations: 57.12 kB / 426.6 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002544/0.2611, allocations: 199.4 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002645/0.2613, allocations: 203.3 kB / 427 MB, free: 10.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.551e-05/0.2614, allocations: 40 kB / 427.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.712e-05/0.2614, allocations: 36 kB / 427.1 MB, free: 10.11 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.459e-05/0.2615, allocations: 83.8 kB / 427.2 MB, free: 10.03 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001727/0.2617, allocations: 175.2 kB / 427.3 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004597/0.2622, allocations: 418.8 kB / 427.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2622, allocations: 0 / 427.8 MB, free: 9.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2622, allocations: 4 kB / 427.8 MB, free: 9.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.177e-05/0.2622, allocations: 0 / 427.8 MB, free: 9.449 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.001483/0.2637, allocations: 0.6144 MB / 428.4 MB, free: 8.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.2637, allocations: 8.031 kB / 428.4 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.246e-05/0.2638, allocations: 66.72 kB / 428.4 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.457e-05/0.2639, allocations: 36.75 kB / 428.5 MB, free: 8.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.2642, allocations: 218.8 kB / 428.7 MB, free: 8.449 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001539/0.2644, allocations: 139.4 kB / 428.8 MB, free: 8.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.966e-05/0.2644, allocations: 24 kB / 428.9 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008672/0.2653, allocations: 374.4 kB / 429.2 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.45e-05/0.2653, allocations: 11.95 kB / 429.2 MB, free: 7.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.2654, allocations: 15.92 kB / 429.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.2654, allocations: 8 kB / 429.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00114/0.2665, allocations: 383.6 kB / 429.6 MB, free: 7.473 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001379/0.2679, allocations: 0.9382 MB / 430.6 MB, free: 6.484 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.2689, allocations: 395.5 kB / 431 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006009/0.2695, allocations: 206.4 kB / 431.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.422e-05/0.2696, allocations: 0 / 431.2 MB, free: 5.859 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.552e-05/0.2696, allocations: 46.48 kB / 431.2 MB, free: 5.805 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 1.142e-06/0.2696, allocations: 0 / 431.2 MB, free: 5.805 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004539/0.2741, allocations: 1.87 MB / 433.1 MB, free: 3.781 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.22e-05/0.2742, allocations: 114.8 kB / 433.2 MB, free: 3.645 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002101/0.2744, allocations: 199.2 kB / 433.4 MB, free: 3.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.716e-05/0.2745, allocations: 33.7 kB / 433.4 MB, free: 3.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.2746, allocations: 144.8 kB / 433.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.2747, allocations: 150.7 kB / 433.7 MB, free: 3.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.2748, allocations: 78.11 kB / 433.8 MB, free: 3.023 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.275, allocations: 339.8 kB / 434.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000303/0.2753, allocations: 108.8 kB / 434.2 MB, free: 2.574 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003414/0.2756, allocations: 169.4 kB / 434.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006351/0.2763, allocations: 288 kB / 434.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.2763, allocations: 0 / 434.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007778/0.277, allocations: 376.7 kB / 435 MB, free: 1.723 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.014e-05/0.2771, allocations: 11.44 kB / 435 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2771, allocations: 0 / 435 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.2771, allocations: 4 kB / 435 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006819/0.2778, allocations: 151.8 kB / 435.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.2778, allocations: 7.938 kB / 435.2 MB, free: 1.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002079/0.278, allocations: 31.97 kB / 435.2 MB, free: 1.523 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.9e-05/0.278, allocations: 8 kB / 435.2 MB, free: 1.516 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.0001512/0.2782, allocations: 149.7 kB / 435.4 MB, free: 1.359 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.351e-05/0.2783, allocations: 31.8 kB / 435.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.575e-05/0.2783, allocations: 29.45 kB / 435.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.2783, allocations: 4 kB / 435.5 MB, free: 1.293 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.2783, allocations: 4 kB / 435.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2783, allocations: 0 / 435.5 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002266/0.2806, allocations: 1.306 MB / 436.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.2806, allocations: 4.188 kB / 436.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008022/0.2814, allocations: 167.8 kB / 436.9 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.891e-06/0.2814, allocations: 8 kB / 436.9 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.992e-05/0.2814, allocations: 15.92 kB / 437 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.2815, allocations: 4 kB / 437 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/0.2815, allocations: 4 kB / 437 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001873/0.2833, allocations: 0.9446 MB / 437.9 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.2834, allocations: 55.88 kB / 438 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-05/0.2835, allocations: 15.94 kB / 438 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003908/0.2839, allocations: 43.94 kB / 438 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.807e-05/0.284, allocations: 47.86 kB / 438.1 MB, free: 14.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.381e-05/0.284, allocations: 12 kB / 438.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001325/0.2841, allocations: 160.6 kB / 438.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2841, allocations: 0 / 438.2 MB, free: 14.38 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004133/0.2846, allocations: 80 kB / 438.3 MB, free: 14.3 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.002227/0.2868, allocations: 1.505 MB / 439.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009361/0.2877, allocations: 351.8 kB / 440.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.2877, allocations: 0 / 440.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006464/0.2884, allocations: 252 kB / 440.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006988/0.2891, allocations: 65.81 kB / 440.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007824/0.2969, allocations: 3.878 MB / 444.4 MB, free: 8.066 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.2973, allocations: 0.7643 MB / 445.1 MB, free: 7.273 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000167/0.2975, allocations: 42.97 kB / 445.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.2977, allocations: 99.39 kB / 445.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of SimCode: time 6.41e-07/0.2977, allocations: 0 / 445.3 MB, free: 7.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03979/0.3375, allocations: 7.53 MB / 452.8 MB, free: 15.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.43, allocations: 20.5 kB / 452.8 MB, free: 15.76 MB / 366.1 MB " [Timeout remaining time 648] (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/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_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: 13.674379735952243]