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.001352/0.001352, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001527/0.001527, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.404/1.404, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.001688/0.001688, allocations: 43.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2305, allocations: 53.37 MB / 431.1 MB, free: 6.656 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003527/0.234, allocations: 2.289 MB / 433.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00139/0.2354, allocations: 0.7445 MB / 434.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001327/0.2355, allocations: 7.938 kB / 434.1 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000147/0.2357, allocations: 47.52 kB / 434.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002223/0.2359, allocations: 107.1 kB / 434.3 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003545/0.2363, allocations: 127.8 kB / 434.4 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.2367, allocations: 474.2 kB / 434.8 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.2369, allocations: 61.11 kB / 434.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000249/0.2371, allocations: 191.4 kB / 435.1 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.2374, allocations: 215.2 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.179e-05/0.2375, allocations: 36 kB / 435.3 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.102e-05/0.2375, allocations: 40 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.971e-05/0.2376, allocations: 79.75 kB / 435.5 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000163/0.2378, allocations: 159.4 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004343/0.2382, allocations: 416.1 kB / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.2382, allocations: 0 / 436 MB, free: 1.684 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.113e-06/0.2382, allocations: 4 kB / 436 MB, free: 1.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.2382, allocations: 0 / 436 MB, free: 1.68 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.001538/0.2398, allocations: 0.6105 MB / 436.6 MB, free: 1.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.2398, allocations: 8.031 kB / 436.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.956e-05/0.2399, allocations: 62.73 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.812e-05/0.2399, allocations: 36.75 kB / 436.7 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003979/0.2403, allocations: 217.9 kB / 437 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001468/0.2405, allocations: 139.4 kB / 437.1 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.947e-05/0.2406, allocations: 24 kB / 437.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009086/0.2415, allocations: 386.4 kB / 437.5 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.2415, allocations: 4 kB / 437.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.2415, allocations: 12 kB / 437.5 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.127e-05/0.2415, allocations: 4 kB / 437.5 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001178/0.2427, allocations: 398.5 kB / 437.9 MB, free: 15.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001342/0.244, allocations: 0.8522 MB / 438.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.2451, allocations: 399.5 kB / 439.1 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005867/0.2457, allocations: 202.4 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.449e-05/0.2457, allocations: 12 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.045e-05/0.2457, allocations: 38.5 kB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=32): time 1.994e-06/0.2457, allocations: 0 / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=38): time 0.004648/0.2504, allocations: 1.877 MB / 441.3 MB, free: 12.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.959e-05/0.2504, allocations: 110.8 kB / 441.4 MB, free: 11.96 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002148/0.2506, allocations: 203.2 kB / 441.6 MB, free: 11.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.504e-05/0.2507, allocations: 33.7 kB / 441.6 MB, free: 11.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.2508, allocations: 152.7 kB / 441.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001252/0.2509, allocations: 146.7 kB / 441.9 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.2511, allocations: 78.11 kB / 442 MB, free: 11.33 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001506/0.2512, allocations: 334.8 kB / 442.3 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003156/0.2515, allocations: 112.8 kB / 442.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003338/0.2519, allocations: 169.4 kB / 442.6 MB, free: 10.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006325/0.2525, allocations: 292.2 kB / 442.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2525, allocations: 0 / 442.9 MB, free: 10.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008393/0.2533, allocations: 373.1 kB / 443.2 MB, free: 10.03 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.763e-05/0.2534, allocations: 4 kB / 443.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.288e-06/0.2534, allocations: 4 kB / 443.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.2534, allocations: 0.9375 kB / 443.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006951/0.2541, allocations: 147.8 kB / 443.4 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.456e-05/0.2541, allocations: 4 kB / 443.4 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.2543, allocations: 35.97 kB / 443.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.2544, allocations: 12 kB / 443.4 MB, free: 9.824 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.0001618/0.2545, allocations: 141.8 kB / 443.6 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/0.2546, allocations: 31.8 kB / 443.6 MB, free: 9.645 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.593e-05/0.2547, allocations: 33.45 kB / 443.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.2547, allocations: 8 kB / 443.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/0.2547, allocations: 0 / 443.6 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.2547, allocations: 7.938 kB / 443.6 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.257, allocations: 1.24 MB / 444.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.257, allocations: 0 / 444.9 MB, free: 8.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008441/0.2579, allocations: 172 kB / 445.1 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.823e-06/0.2579, allocations: 4 kB / 445.1 MB, free: 8.098 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.362e-05/0.2579, allocations: 15.92 kB / 445.1 MB, free: 8.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.282e-06/0.2579, allocations: 4 kB / 445.1 MB, free: 8.078 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.2579, allocations: 4 kB / 445.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001932/0.2599, allocations: 0.9605 MB / 446 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001442/0.26, allocations: 59.83 kB / 446.1 MB, free: 7.016 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.411e-05/0.2601, allocations: 11.94 kB / 446.1 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004098/0.2605, allocations: 43.94 kB / 446.2 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.2606, allocations: 43.88 kB / 446.2 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.2606, allocations: 16 kB / 446.2 MB, free: 6.902 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000139/0.2607, allocations: 156.6 kB / 446.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2607, allocations: 0 / 446.4 MB, free: 6.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004457/0.2612, allocations: 80 kB / 446.4 MB, free: 6.672 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.002218/0.2634, allocations: 1.489 MB / 447.9 MB, free: 5.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009619/0.2644, allocations: 355.5 kB / 448.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.491e-06/0.2644, allocations: 4 kB / 448.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006517/0.265, allocations: 244 kB / 448.5 MB, free: 4.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007057/0.2657, allocations: 75.42 kB / 448.6 MB, free: 4.477 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008054/0.2738, allocations: 3.867 MB / 452.5 MB, free: 464 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001684/0.274, allocations: 160.2 kB / 452.6 MB, free: 288 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001849/0.2741, allocations: 34.97 kB / 452.7 MB, free: 252 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.2743, allocations: 95.39 kB / 452.7 MB, free: 156 kB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2743, allocations: 0 / 452.7 MB, free: 156 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03699/0.3113, allocations: 8.239 MB / 461 MB, free: 8.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.63/10.94, allocations: 5.375 kB / 461 MB, free: 8.102 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.256864065973787]