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.001248/0.001248, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001308/0.001308, allocations: 195.9 kB / 24.5 MB, free: 4.008 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.349/1.349, allocations: 225.7 MB / 253.3 MB, free: 13.05 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001452/0.001452, allocations: 43.92 kB / 371.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2282/0.2297, allocations: 52.2 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003739/0.2334, allocations: 2.451 MB / 425.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001003/0.2344, allocations: 0.5805 MB / 426.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001374/0.2346, allocations: 11.94 kB / 426.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.2347, allocations: 35.59 kB / 426.5 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001738/0.2349, allocations: 87.25 kB / 426.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001963/0.2351, allocations: 55.92 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003402/0.2354, allocations: 302.6 kB / 426.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001911/0.2356, allocations: 75.36 kB / 427 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001519/0.2358, allocations: 115.6 kB / 427.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001722/0.2359, allocations: 123.5 kB / 427.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.055e-05/0.236, allocations: 24 kB / 427.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.961e-05/0.236, allocations: 24 kB / 427.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.05e-05/0.2361, allocations: 55.84 kB / 427.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001363/0.2362, allocations: 139.3 kB / 427.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.2366, allocations: 299.5 kB / 427.8 MB, free: 10.27 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.2366, allocations: 4 kB / 427.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.2366, allocations: 0 / 427.8 MB, free: 10.26 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.2366, allocations: 0 / 427.8 MB, free: 10.26 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.0007963/0.2374, allocations: 477.8 kB / 428.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.2374, allocations: 12.03 kB / 428.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.329e-05/0.2374, allocations: 8.844 kB / 428.3 MB, free: 9.742 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.523e-05/0.2375, allocations: 62.72 kB / 428.3 MB, free: 9.672 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.566e-05/0.2375, allocations: 28.75 kB / 428.3 MB, free: 9.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.2378, allocations: 184.5 kB / 428.5 MB, free: 9.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.2379, allocations: 24.78 kB / 428.5 MB, free: 9.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.177e-05/0.2379, allocations: 27.98 kB / 428.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.2384, allocations: 230.1 kB / 428.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.2384, allocations: 0 / 428.8 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.335e-05/0.2384, allocations: 12 kB / 428.8 MB, free: 9.152 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2384, allocations: 7.938 kB / 428.8 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004005/0.2388, allocations: 182.4 kB / 429 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/0.24, allocations: 0.687 MB / 429.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004653/0.2404, allocations: 206.5 kB / 429.9 MB, free: 8.023 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.2406, allocations: 100.8 kB / 430 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.2407, allocations: 4 kB / 430 MB, free: 7.918 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.2407, allocations: 38.56 kB / 430 MB, free: 7.871 MB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.262e-06/0.2407, allocations: 0 / 430 MB, free: 7.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001703/0.2424, allocations: 0.8216 MB / 430.8 MB, free: 6.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.499e-05/0.2424, allocations: 55.41 kB / 430.9 MB, free: 6.93 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000161/0.2426, allocations: 158.6 kB / 431.1 MB, free: 6.758 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.263e-05/0.2426, allocations: 29.7 kB / 431.1 MB, free: 6.723 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.171e-05/0.2427, allocations: 144.8 kB / 431.2 MB, free: 6.578 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.807e-05/0.2428, allocations: 103 kB / 431.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.231e-05/0.2429, allocations: 53.7 kB / 431.4 MB, free: 6.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000136/0.243, allocations: 330.8 kB / 431.7 MB, free: 6.086 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001791/0.2432, allocations: 75.95 kB / 431.8 MB, free: 6.012 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002074/0.2434, allocations: 120 kB / 431.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003893/0.2438, allocations: 211.3 kB / 432.1 MB, free: 5.664 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.2438, allocations: 0 / 432.1 MB, free: 5.664 MB / 334.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004805/0.2443, allocations: 261.4 kB / 432.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.2443, allocations: 4 kB / 432.4 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.985e-06/0.2443, allocations: 4 kB / 432.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.2443, allocations: 0 / 432.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.2446, allocations: 83.98 kB / 432.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.2446, allocations: 3.938 kB / 432.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.2447, allocations: 15.98 kB / 432.5 MB, free: 5.293 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.933e-05/0.2447, allocations: 12 kB / 432.5 MB, free: 5.281 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.000124/0.2449, allocations: 138.6 kB / 432.6 MB, free: 5.137 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.115e-05/0.2449, allocations: 15.91 kB / 432.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.295e-05/0.245, allocations: 30.64 kB / 432.7 MB, free: 5.09 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.971e-06/0.245, allocations: 8 kB / 432.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.245, allocations: 4 kB / 432.7 MB, free: 5.078 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.245, allocations: 3.938 kB / 432.7 MB, free: 5.074 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009578/0.246, allocations: 0.6281 MB / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.246, allocations: 0 / 433.3 MB, free: 4.391 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003171/0.2463, allocations: 68.02 kB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.2463, allocations: 8 kB / 433.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.2463, allocations: 7.938 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.778e-06/0.2463, allocations: 7.938 kB / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2463, allocations: 0 / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006869/0.247, allocations: 448.4 kB / 433.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.737e-05/0.247, allocations: 15.86 kB / 433.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.269e-05/0.247, allocations: 12 kB / 433.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.2472, allocations: 11.98 kB / 433.9 MB, free: 3.805 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.18e-05/0.2472, allocations: 19.97 kB / 433.9 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.122e-05/0.2472, allocations: 4 kB / 433.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.488e-05/0.2473, allocations: 127.4 kB / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2473, allocations: 0 / 434 MB, free: 3.656 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002896/0.2476, allocations: 60 kB / 434.1 MB, free: 3.598 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.0009641/0.2486, allocations: 0.9722 MB / 435 MB, free: 2.594 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004412/0.249, allocations: 187.8 kB / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.249, allocations: 0 / 435.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001988/0.2492, allocations: 99.89 kB / 435.3 MB, free: 2.312 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000404/0.2496, allocations: 44.17 kB / 435.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.2531, allocations: 2.663 MB / 438 MB, free: 15.49 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003597/0.2534, allocations: 0.7522 MB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.484e-05/0.2535, allocations: 17.95 kB / 438.8 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.2536, allocations: 75.41 kB / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2536, allocations: 0 / 438.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.2817, allocations: 4.86 MB / 443.7 MB, free: 9.922 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.69/10.97, allocations: 10.09 kB / 443.7 MB, free: 9.918 MB / 350.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.248941890953574]