Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001304/0.001304, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.00146/0.00146, allocations: 217.1 kB / 24.47 MB, free: 3.777 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.378/1.378, allocations: 207.7 MB / 235.3 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Backlash,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001761/0.001761, allocations: 57.8 kB / 347.2 MB, free: 9.891 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2502, allocations: 49.16 MB / 396.3 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003559/0.2538, allocations: 2.277 MB / 398.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001325/0.2551, allocations: 0.7521 MB / 399.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000132/0.2552, allocations: 4 kB / 399.4 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000154/0.2554, allocations: 50.06 kB / 399.4 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.2556, allocations: 112.8 kB / 399.5 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.256, allocations: 127.9 kB / 399.7 MB, free: 6.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003987/0.2564, allocations: 460.8 kB / 400.1 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.2565, allocations: 66.45 kB / 400.2 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.2567, allocations: 194.2 kB / 400.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000233/0.257, allocations: 187.8 kB / 400.5 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.257, allocations: 37.66 kB / 400.6 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.69e-05/0.2571, allocations: 38.25 kB / 400.6 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.95e-05/0.2572, allocations: 86.33 kB / 400.7 MB, free: 6.145 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.2573, allocations: 151 kB / 400.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000444/0.2578, allocations: 416 kB / 401.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2578, allocations: 0 / 401.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2578, allocations: 0 / 401.3 MB, free: 5.906 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.2578, allocations: 0 / 401.3 MB, free: 5.906 MB / 318.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.0014/0.2592, allocations: 0.6209 MB / 401.9 MB, free: 5.492 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.2592, allocations: 13.05 kB / 401.9 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.159e-05/0.2593, allocations: 61.97 kB / 401.9 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.262e-05/0.2594, allocations: 38.69 kB / 402 MB, free: 5.414 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.2597, allocations: 215.4 kB / 402.2 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001111/0.2598, allocations: 145.7 kB / 402.3 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.429e-05/0.2599, allocations: 33.02 kB / 402.4 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008716/0.2608, allocations: 377.1 kB / 402.7 MB, free: 4.918 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.304e-05/0.2608, allocations: 5.406 kB / 402.7 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.139e-05/0.2608, allocations: 10.59 kB / 402.8 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.2608, allocations: 6.469 kB / 402.8 MB, free: 4.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001174/0.262, allocations: 394 kB / 403.1 MB, free: 4.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00118/0.2632, allocations: 0.8419 MB / 404 MB, free: 4.188 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009908/0.2642, allocations: 388 kB / 404.4 MB, free: 4.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005704/0.2648, allocations: 207.2 kB / 404.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.2648, allocations: 3.375 kB / 404.6 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.2648, allocations: 42.2 kB / 404.6 MB, free: 3.914 MB / 318.1 MB Notification: Performance of pre-optimization done (n=32): time 1.503e-06/0.2648, allocations: 5.375 kB / 404.6 MB, free: 3.91 MB / 318.1 MB Notification: Performance of matching and sorting (n=38): time 0.004375/0.2692, allocations: 1.878 MB / 406.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.2692, allocations: 112.9 kB / 406.6 MB, free: 2.676 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000191/0.2694, allocations: 205.5 kB / 406.8 MB, free: 2.543 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.752e-05/0.2694, allocations: 31.08 kB / 406.8 MB, free: 2.508 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.986e-05/0.2695, allocations: 152.8 kB / 407 MB, free: 2.375 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.399e-05/0.2696, allocations: 146.3 kB / 407.1 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.2697, allocations: 71.11 kB / 407.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.39e-05/0.2698, allocations: 338.8 kB / 407.5 MB, free: 1.895 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003107/0.2701, allocations: 110.2 kB / 407.6 MB, free: 1.859 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003118/0.2704, allocations: 163.8 kB / 407.8 MB, free: 1.773 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006023/0.271, allocations: 302.5 kB / 408.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.271, allocations: 0 / 408.1 MB, free: 1.617 MB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007674/0.2718, allocations: 365.7 kB / 408.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.582e-05/0.2718, allocations: 6.25 kB / 408.5 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2718, allocations: 5.844 kB / 408.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.348e-05/0.2718, allocations: 2.656 kB / 408.5 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006708/0.2725, allocations: 148.2 kB / 408.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.2725, allocations: 3.719 kB / 408.6 MB, free: 1.457 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002248/0.2727, allocations: 23.59 kB / 408.6 MB, free: 1.453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.984e-05/0.2728, allocations: 14.94 kB / 408.7 MB, free: 1.449 MB / 318.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.0001155/0.2729, allocations: 145.2 kB / 408.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.9e-05/0.273, allocations: 39.42 kB / 408.8 MB, free: 1.285 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.018e-05/0.273, allocations: 32.25 kB / 408.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.76e-06/0.273, allocations: 4.312 kB / 408.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.2731, allocations: 1.25 kB / 408.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.2731, allocations: 3.203 kB / 408.9 MB, free: 1.262 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002192/0.2753, allocations: 1.251 MB / 410.1 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.141e-06/0.2753, allocations: 7.328 kB / 410.1 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008665/0.2761, allocations: 166 kB / 410.3 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.567e-06/0.2761, allocations: 7.219 kB / 410.3 MB, free: 420 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.71e-05/0.2762, allocations: 16.09 kB / 410.3 MB, free: 412 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.462e-06/0.2762, allocations: 8.031 kB / 410.3 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.2762, allocations: 2.219 kB / 410.3 MB, free: 408 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.2783, allocations: 0.9548 MB / 411.3 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001604/0.2784, allocations: 52.97 kB / 411.3 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.902e-05/0.2785, allocations: 16.88 kB / 411.3 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004021/0.2789, allocations: 50.31 kB / 411.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.279, allocations: 41.36 kB / 411.4 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.081e-05/0.279, allocations: 17.7 kB / 411.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001714/0.2792, allocations: 148.5 kB / 411.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2792, allocations: 0 / 411.6 MB, free: 15.55 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004625/0.2797, allocations: 83.5 kB / 411.7 MB, free: 15.54 MB / 334.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.002535/0.2822, allocations: 1.498 MB / 413.2 MB, free: 14.37 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001097/0.2833, allocations: 363.9 kB / 413.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.2833, allocations: 1.312 kB / 413.5 MB, free: 14.21 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007252/0.284, allocations: 235.4 kB / 413.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007948/0.2848, allocations: 78.83 kB / 413.8 MB, free: 14.07 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00844/0.2933, allocations: 3.866 MB / 417.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002048/0.2935, allocations: 160.5 kB / 417.9 MB, free: 11.15 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002018/0.2937, allocations: 36.5 kB / 417.9 MB, free: 11.13 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002083/0.2939, allocations: 103.8 kB / 418 MB, free: 11.05 MB / 334.1 MB Notification: Performance of SimCode: time 8.92e-07/0.2939, allocations: 0 / 418 MB, free: 11.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03965/0.3335, allocations: 8.117 MB / 426.1 MB, free: 4.461 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.69, allocations: 7.891 kB / 426.1 MB, free: 4.453 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Backlash.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Backlash_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Backlash/Backlash.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 14.14410665910691]