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.001575/0.001575, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001691/0.001691, allocations: 185.9 kB / 23.7 MB, free: 4.188 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.449/1.449, allocations: 225.7 MB / 252.5 MB, free: 12.88 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.001583/0.001583, allocations: 51.92 kB / 370.4 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2489/0.2505, allocations: 52.17 MB / 422.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Backlash): time 0.003849/0.2543, allocations: 2.28 MB / 424.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001435/0.2558, allocations: 0.7173 MB / 425.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.2559, allocations: 11.88 kB / 425.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.2561, allocations: 39.58 kB / 425.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.2563, allocations: 103.1 kB / 425.7 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003699/0.2567, allocations: 139 kB / 425.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004853/0.2571, allocations: 470.2 kB / 426.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000156/0.2573, allocations: 53.12 kB / 426.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002549/0.2576, allocations: 191.4 kB / 426.5 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.2578, allocations: 187.2 kB / 426.7 MB, free: 10.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.525e-05/0.2579, allocations: 40 kB / 426.8 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.94e-05/0.2579, allocations: 36 kB / 426.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.485e-05/0.258, allocations: 87.73 kB / 426.9 MB, free: 10.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001636/0.2582, allocations: 151.4 kB / 427 MB, free: 9.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000472/0.2587, allocations: 420.1 kB / 427.4 MB, free: 9.52 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.2587, allocations: 4 kB / 427.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.627e-06/0.2587, allocations: 4 kB / 427.5 MB, free: 9.512 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.883e-06/0.2587, allocations: 0 / 427.5 MB, free: 9.512 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.001569/0.2603, allocations: 0.6027 MB / 428.1 MB, free: 8.879 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.161e-05/0.2603, allocations: 16.02 kB / 428.1 MB, free: 8.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.758e-05/0.2604, allocations: 58.73 kB / 428.1 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.78e-05/0.2605, allocations: 36.75 kB / 428.2 MB, free: 8.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.2609, allocations: 226.7 kB / 428.4 MB, free: 8.516 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001587/0.261, allocations: 143.4 kB / 428.5 MB, free: 8.348 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/0.2611, allocations: 24 kB / 428.5 MB, free: 8.324 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009471/0.2621, allocations: 378.4 kB / 428.9 MB, free: 7.941 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.2621, allocations: 11.94 kB / 428.9 MB, free: 7.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.272e-05/0.2621, allocations: 8 kB / 428.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.057e-05/0.2621, allocations: 8 kB / 428.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001246/0.2634, allocations: 391.5 kB / 429.3 MB, free: 7.531 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001412/0.2648, allocations: 0.8408 MB / 430.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001096/0.2659, allocations: 391.5 kB / 430.6 MB, free: 6.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000625/0.2665, allocations: 210.4 kB / 430.8 MB, free: 6.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.2665, allocations: 4.438 kB / 430.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.813e-05/0.2666, allocations: 46.44 kB / 430.8 MB, free: 5.957 MB / 334.1 MB Notification: Performance of pre-optimization done (n=32): time 2.074e-06/0.2666, allocations: 0 / 430.8 MB, free: 5.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.004945/0.2715, allocations: 1.873 MB / 432.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.731e-05/0.2716, allocations: 114.8 kB / 432.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002512/0.2719, allocations: 203.1 kB / 433 MB, free: 3.586 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.936e-05/0.2719, allocations: 33.7 kB / 433 MB, free: 3.547 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001267/0.272, allocations: 153.7 kB / 433.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.2722, allocations: 138.8 kB / 433.3 MB, free: 3.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.2723, allocations: 74.11 kB / 433.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000176/0.2725, allocations: 338.8 kB / 433.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003361/0.2728, allocations: 108.8 kB / 433.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003646/0.2732, allocations: 173.4 kB / 434 MB, free: 2.539 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006965/0.2739, allocations: 291.5 kB / 434.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2739, allocations: 0 / 434.3 MB, free: 2.242 MB / 334.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008765/0.2748, allocations: 373.1 kB / 434.6 MB, free: 1.871 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2748, allocations: 8 kB / 434.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.845e-06/0.2748, allocations: 3.938 kB / 434.6 MB, free: 1.859 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.819e-05/0.2748, allocations: 4 kB / 434.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007474/0.2756, allocations: 151.8 kB / 434.8 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.075e-05/0.2756, allocations: 4 kB / 434.8 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002375/0.2758, allocations: 27.98 kB / 434.8 MB, free: 1.676 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.995e-05/0.2758, allocations: 8 kB / 434.8 MB, free: 1.668 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.0001778/0.276, allocations: 153.8 kB / 435 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.2761, allocations: 31.75 kB / 435 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.422e-05/0.2762, allocations: 29.45 kB / 435 MB, free: 1.445 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.615e-06/0.2762, allocations: 8 kB / 435.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.2762, allocations: 0 / 435.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.2762, allocations: 0 / 435.1 MB, free: 1.438 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002515/0.2787, allocations: 1.252 MB / 436.3 MB, free: 100 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.055e-06/0.2787, allocations: 7.938 kB / 436.3 MB, free: 92 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009139/0.2796, allocations: 168 kB / 436.5 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.767e-06/0.2796, allocations: 4 kB / 436.5 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.476e-05/0.2797, allocations: 15.94 kB / 436.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.2797, allocations: 4 kB / 436.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.2797, allocations: 0 / 436.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/0.2818, allocations: 0.9485 MB / 437.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.282, allocations: 59.83 kB / 437.5 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.191e-05/0.2821, allocations: 15.92 kB / 437.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004206/0.2825, allocations: 43.95 kB / 437.6 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.961e-05/0.2826, allocations: 43.88 kB / 437.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.241e-05/0.2826, allocations: 19.98 kB / 437.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001578/0.2828, allocations: 152.6 kB / 437.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2828, allocations: 0 / 437.8 MB, free: 14.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004793/0.2832, allocations: 80 kB / 437.9 MB, free: 14.51 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.002486/0.2857, allocations: 1.505 MB / 439.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001092/0.2868, allocations: 359.8 kB / 439.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.2868, allocations: 3.938 kB / 439.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007181/0.2875, allocations: 240 kB / 440 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007417/0.2883, allocations: 72 kB / 440 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008676/0.297, allocations: 3.859 MB / 443.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001897/0.2971, allocations: 164.2 kB / 444 MB, free: 8.109 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002012/0.2974, allocations: 34.97 kB / 444.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001988/0.2975, allocations: 99.39 kB / 444.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of SimCode: time 1.413e-06/0.2976, allocations: 0 / 444.2 MB, free: 7.977 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04022/0.3378, allocations: 8.129 MB / 452.3 MB, free: 32 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.45/11.79, allocations: 5.891 kB / 452.3 MB, free: 32 kB / 350.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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_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.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_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable springDamper.w_rel in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Backlash_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.28657288197428]