Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.001496/0.001496, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001712/0.001712, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.379/1.379, allocations: 230.6 MB / 258.3 MB, free: 8.008 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.ElasticBearing,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 39.94 kB / 378.5 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2227/0.2244, allocations: 53.36 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003691/0.2281, allocations: 2.458 MB / 434.4 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.2292, allocations: 0.6309 MB / 435 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001229/0.2294, allocations: 4 kB / 435 MB, free: 3.758 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00015/0.2295, allocations: 43.58 kB / 435 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001579/0.2297, allocations: 79.27 kB / 435.1 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000178/0.2298, allocations: 55.94 kB / 435.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003412/0.2302, allocations: 298.6 kB / 435.5 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.2304, allocations: 79.97 kB / 435.5 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00015/0.2305, allocations: 115.6 kB / 435.7 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001863/0.2307, allocations: 123.4 kB / 435.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.887e-05/0.2307, allocations: 20 kB / 435.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.827e-05/0.2308, allocations: 28 kB / 435.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.419e-05/0.2308, allocations: 59.77 kB / 435.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001342/0.231, allocations: 131.4 kB / 436 MB, free: 2.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003545/0.2313, allocations: 299.6 kB / 436.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2313, allocations: 0 / 436.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.442e-06/0.2313, allocations: 0 / 436.3 MB, free: 2.453 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.2313, allocations: 0 / 436.3 MB, free: 2.453 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.0007675/0.2321, allocations: 481.7 kB / 436.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.2321, allocations: 8.031 kB / 436.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.515e-05/0.2322, allocations: 8.844 kB / 436.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.986e-05/0.2322, allocations: 62.72 kB / 436.9 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.222e-05/0.2323, allocations: 28.75 kB / 436.9 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003045/0.2326, allocations: 185 kB / 437.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.2326, allocations: 20.78 kB / 437.1 MB, free: 1.613 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.463e-05/0.2327, allocations: 35.92 kB / 437.1 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004496/0.2331, allocations: 222.1 kB / 437.3 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.118e-05/0.2331, allocations: 11.94 kB / 437.3 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.351e-05/0.2332, allocations: 15.98 kB / 437.4 MB, free: 1.332 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.047e-06/0.2332, allocations: 8 kB / 437.4 MB, free: 1.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004043/0.2336, allocations: 166.5 kB / 437.5 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001201/0.2348, allocations: 0.6947 MB / 438.2 MB, free: 432 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004764/0.2352, allocations: 210.8 kB / 438.4 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.2355, allocations: 104.8 kB / 438.5 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.2355, allocations: 4 kB / 438.5 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.515e-05/0.2355, allocations: 38.5 kB / 438.6 MB, free: 56 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.373e-06/0.2355, allocations: 3.938 kB / 438.6 MB, free: 52 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001681/0.2372, allocations: 0.8213 MB / 439.4 MB, free: 15.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.813e-05/0.2372, allocations: 55.41 kB / 439.5 MB, free: 15.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001527/0.2374, allocations: 155.8 kB / 439.6 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.367e-05/0.2374, allocations: 29.7 kB / 439.6 MB, free: 14.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.105e-05/0.2375, allocations: 144.8 kB / 439.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9e-05/0.2376, allocations: 111 kB / 439.9 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-05/0.2377, allocations: 45.7 kB / 439.9 MB, free: 14.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.2378, allocations: 334.8 kB / 440.3 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000189/0.238, allocations: 79.89 kB / 440.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002049/0.2382, allocations: 115.3 kB / 440.4 MB, free: 14.06 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004023/0.2386, allocations: 207.3 kB / 440.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.203e-06/0.2386, allocations: 0 / 440.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004937/0.2391, allocations: 253.5 kB / 440.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2391, allocations: 8 kB / 440.9 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.2391, allocations: 3.984 kB / 440.9 MB, free: 13.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.574e-05/0.2391, allocations: 8.078 kB / 440.9 MB, free: 13.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002931/0.2394, allocations: 71.91 kB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.2394, allocations: 4 kB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.2396, allocations: 11.98 kB / 441 MB, free: 13.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.857e-05/0.2396, allocations: 12 kB / 441 MB, free: 13.48 MB / 350.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.0001335/0.2397, allocations: 137.7 kB / 441.2 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.754e-05/0.2398, allocations: 23.86 kB / 441.2 MB, free: 13.31 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.251e-05/0.2398, allocations: 30.64 kB / 441.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.072e-06/0.2398, allocations: 8 kB / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.2398, allocations: 0 / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.628e-06/0.2398, allocations: 0 / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001014/0.2409, allocations: 0.6209 MB / 441.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.2409, allocations: 7.984 kB / 441.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/0.2412, allocations: 71.97 kB / 441.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.2412, allocations: 0 / 441.9 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.047e-05/0.2412, allocations: 11.94 kB / 441.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.2412, allocations: 0 / 441.9 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.2412, allocations: 3.984 kB / 441.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007153/0.2419, allocations: 455.6 kB / 442.4 MB, free: 12.04 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.014e-05/0.242, allocations: 15.97 kB / 442.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.242, allocations: 11.94 kB / 442.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001462/0.2421, allocations: 7.984 kB / 442.4 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.65e-05/0.2422, allocations: 19.97 kB / 442.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.312e-05/0.2422, allocations: 8 kB / 442.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.557e-05/0.2423, allocations: 119.2 kB / 442.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2423, allocations: 0 / 442.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002951/0.2426, allocations: 59.94 kB / 442.6 MB, free: 11.8 MB / 350.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.001009/0.2436, allocations: 0.9761 MB / 443.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004447/0.244, allocations: 189.3 kB / 443.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.244, allocations: 0 / 443.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002056/0.2443, allocations: 108 kB / 443.9 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.2447, allocations: 51.89 kB / 443.9 MB, free: 10.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.2482, allocations: 2.668 MB / 446.6 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003811/0.2486, allocations: 0.7483 MB / 447.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.002e-05/0.2487, allocations: 17.95 kB / 447.4 MB, free: 6.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00012/0.2488, allocations: 79.41 kB / 447.4 MB, free: 6.797 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2488, allocations: 4 kB / 447.4 MB, free: 6.793 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02745/0.2762, allocations: 4.85 MB / 452.3 MB, free: 2.109 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.68/10.96, allocations: 18.28 kB / 452.3 MB, free: 2.094 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.291511502000503]