Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.001325/0.001325, allocations: 107.5 kB / 20.44 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.001382/0.001382, allocations: 187.7 kB / 23.7 MB, free: 4.191 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.384/1.384, allocations: 225.7 MB / 252.5 MB, free: 12.83 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.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 43.92 kB / 370.4 MB, free: 9.707 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2277, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.00396/0.2316, allocations: 2.316 MB / 424.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009321/0.2326, allocations: 0.5493 MB / 425.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001465/0.2327, allocations: 8 kB / 425.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001643/0.2329, allocations: 43.58 kB / 425.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001629/0.233, allocations: 79.27 kB / 425.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001576/0.2332, allocations: 55.94 kB / 425.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003183/0.2335, allocations: 298.6 kB / 425.9 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001796/0.2337, allocations: 81.03 kB / 426 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001345/0.2338, allocations: 107.6 kB / 426.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001581/0.234, allocations: 107.5 kB / 426.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.372e-05/0.234, allocations: 28 kB / 426.2 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.68e-05/0.2341, allocations: 24 kB / 426.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.477e-05/0.2341, allocations: 59.75 kB / 426.3 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000114/0.2343, allocations: 111.5 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003514/0.2346, allocations: 298.7 kB / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2346, allocations: 0 / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2346, allocations: 4 kB / 426.7 MB, free: 10.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.2346, allocations: 0 / 426.7 MB, free: 10.25 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0008923/0.2355, allocations: 484.8 kB / 427.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.2355, allocations: 8.031 kB / 427.2 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.451e-05/0.2356, allocations: 66.66 kB / 427.2 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.449e-05/0.2357, allocations: 32.75 kB / 427.3 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002886/0.2359, allocations: 176.4 kB / 427.4 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.517e-05/0.236, allocations: 17.03 kB / 427.5 MB, free: 9.426 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-05/0.236, allocations: 31.94 kB / 427.5 MB, free: 9.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000449/0.2365, allocations: 226 kB / 427.7 MB, free: 9.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.538e-05/0.2365, allocations: 15.97 kB / 427.7 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.081e-05/0.2365, allocations: 8 kB / 427.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.314e-05/0.2365, allocations: 8 kB / 427.7 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003923/0.2369, allocations: 170.5 kB / 427.9 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.2381, allocations: 0.6401 MB / 428.6 MB, free: 8.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004795/0.2386, allocations: 202.5 kB / 428.8 MB, free: 8.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002201/0.2388, allocations: 104.8 kB / 428.9 MB, free: 7.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.2388, allocations: 4 kB / 428.9 MB, free: 7.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.027e-05/0.2388, allocations: 38.56 kB / 428.9 MB, free: 7.926 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.492e-06/0.2388, allocations: 3.938 kB / 428.9 MB, free: 7.922 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001622/0.2405, allocations: 0.8145 MB / 429.7 MB, free: 7.055 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.862e-05/0.2405, allocations: 55.41 kB / 429.8 MB, free: 6.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.2406, allocations: 154.6 kB / 429.9 MB, free: 6.82 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.614e-05/0.2407, allocations: 33.7 kB / 430 MB, free: 6.781 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.057e-05/0.2408, allocations: 144.7 kB / 430.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.228e-05/0.2408, allocations: 111 kB / 430.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.648e-05/0.2409, allocations: 49.7 kB / 430.3 MB, free: 6.473 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/0.2411, allocations: 334.8 kB / 430.6 MB, free: 6.137 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.2413, allocations: 79.95 kB / 430.7 MB, free: 6.059 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002092/0.2415, allocations: 115.9 kB / 430.8 MB, free: 5.934 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004079/0.2419, allocations: 207.3 kB / 431 MB, free: 5.719 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.2419, allocations: 0 / 431 MB, free: 5.719 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0005021/0.2424, allocations: 273.3 kB / 431.2 MB, free: 5.445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.481e-05/0.2424, allocations: 8 kB / 431.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.2424, allocations: 0 / 431.2 MB, free: 5.438 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.2424, allocations: 4 kB / 431.3 MB, free: 5.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002789/0.2427, allocations: 71.89 kB / 431.3 MB, free: 5.363 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2427, allocations: 4 kB / 431.3 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001216/0.2428, allocations: 11.98 kB / 431.3 MB, free: 5.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.2429, allocations: 12.09 kB / 431.3 MB, free: 5.336 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (35): * Single equations (assignments): 35 * 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.000126/0.243, allocations: 145.9 kB / 431.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.103e-05/0.243, allocations: 15.91 kB / 431.5 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.312e-05/0.2431, allocations: 30.66 kB / 431.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.2431, allocations: 0 / 431.5 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.2431, allocations: 4 kB / 431.5 MB, free: 5.133 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.2431, allocations: 3.984 kB / 431.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009465/0.244, allocations: 0.6047 MB / 432.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.244, allocations: 0 / 432.1 MB, free: 4.469 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003187/0.2444, allocations: 75.89 kB / 432.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.374e-06/0.2444, allocations: 0 / 432.2 MB, free: 4.395 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/0.2444, allocations: 11.94 kB / 432.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.2444, allocations: 0 / 432.2 MB, free: 4.383 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2444, allocations: 4 kB / 432.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006921/0.2451, allocations: 440.5 kB / 432.7 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.954e-05/0.2451, allocations: 19.86 kB / 432.7 MB, free: 3.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.188e-05/0.2451, allocations: 12 kB / 432.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001406/0.2453, allocations: 11.98 kB / 432.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.475e-05/0.2453, allocations: 19.91 kB / 432.7 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.297e-05/0.2453, allocations: 8 kB / 432.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001047/0.2455, allocations: 123.5 kB / 432.9 MB, free: 3.738 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2455, allocations: 3.938 kB / 432.9 MB, free: 3.734 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002876/0.2457, allocations: 59.94 kB / 432.9 MB, free: 3.676 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,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 (28): * Single equations (assignments): 28 * 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.0009985/0.2467, allocations: 0.9761 MB / 433.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004224/0.2472, allocations: 187.8 kB / 434.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2472, allocations: 0 / 434.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002016/0.2474, allocations: 100.2 kB / 434.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003943/0.2478, allocations: 51.83 kB / 434.2 MB, free: 2.336 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003399/0.2512, allocations: 2.651 MB / 436.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001337/0.2513, allocations: 142.5 kB / 437 MB, free: 15.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.221e-05/0.2514, allocations: 17.95 kB / 437 MB, free: 15.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.2515, allocations: 75.41 kB / 437.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2515, allocations: 0 / 437.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03261/0.2841, allocations: 5.226 MB / 442.3 MB, free: 10.26 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.54, allocations: 6.234 kB / 442.3 MB, free: 10.26 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.ElasticBearing_res.csv. Warning: Get data of variable springDamper.w_rel from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.906771725043654]