Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.004815/0.004815, allocations: 100.7 kB / 21.96 MB, free: 5.211 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.001322/0.001322, allocations: 217.5 kB / 25.26 MB, free: 3.141 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.294/1.294, allocations: 207.7 MB / 236.1 MB, free: 9.812 MB / 190.1 MB " [Timeout remaining time 179] 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.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",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.001699/0.001699, allocations: 47.92 kB / 348 MB, free: 9.918 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2377/0.2394, allocations: 49.16 MB / 397.1 MB, free: 8.879 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003083/0.2424, allocations: 2.288 MB / 399.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009197/0.2434, allocations: 0.6075 MB / 400 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.2435, allocations: 4.656 kB / 400 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.2436, allocations: 36.53 kB / 400.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.2438, allocations: 84.25 kB / 400.1 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001514/0.2439, allocations: 61.33 kB / 400.2 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002662/0.2442, allocations: 299.5 kB / 400.5 MB, free: 6.66 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001722/0.2444, allocations: 80.19 kB / 400.6 MB, free: 6.613 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001218/0.2445, allocations: 114.1 kB / 400.7 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001453/0.2446, allocations: 126.4 kB / 400.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.953e-05/0.2447, allocations: 23.78 kB / 400.8 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.791e-05/0.2447, allocations: 24.62 kB / 400.9 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.141e-05/0.2448, allocations: 59.66 kB / 400.9 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.2449, allocations: 110.3 kB / 401 MB, free: 6.398 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003201/0.2452, allocations: 300.5 kB / 401.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2452, allocations: 0 / 401.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2452, allocations: 1.125 kB / 401.3 MB, free: 6.277 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.2452, allocations: 0 / 401.3 MB, free: 6.277 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0006854/0.2459, allocations: 483 kB / 401.8 MB, free: 5.898 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.2459, allocations: 13.02 kB / 401.8 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.811e-05/0.2459, allocations: 7.859 kB / 401.8 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.43e-05/0.246, allocations: 61.3 kB / 401.9 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.946e-05/0.246, allocations: 30.95 kB / 401.9 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.2463, allocations: 180.3 kB / 402.1 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.599e-05/0.2463, allocations: 22.84 kB / 402.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.2464, allocations: 33.36 kB / 402.1 MB, free: 5.629 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004723/0.2468, allocations: 225.5 kB / 402.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/0.2469, allocations: 5.984 kB / 402.4 MB, free: 5.52 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.662e-05/0.2469, allocations: 10.09 kB / 402.4 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.053e-05/0.2469, allocations: 7 kB / 402.4 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003955/0.2473, allocations: 184.1 kB / 402.6 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001072/0.2484, allocations: 0.6389 MB / 403.2 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004567/0.2488, allocations: 207.5 kB / 403.4 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002006/0.249, allocations: 103 kB / 403.5 MB, free: 4.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.641e-05/0.249, allocations: 8.375 kB / 403.5 MB, free: 4.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.69e-05/0.2491, allocations: 35.62 kB / 403.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.803e-06/0.2491, allocations: 0 / 403.5 MB, free: 4.848 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001491/0.2506, allocations: 0.8133 MB / 404.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.315e-05/0.2506, allocations: 54.84 kB / 404.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.2507, allocations: 157.6 kB / 404.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.2507, allocations: 30.95 kB / 404.6 MB, free: 4.137 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.516e-05/0.2508, allocations: 149.6 kB / 404.7 MB, free: 4.008 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.865e-05/0.2508, allocations: 102.6 kB / 404.8 MB, free: 3.926 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.889e-05/0.2509, allocations: 49.72 kB / 404.9 MB, free: 3.891 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.491e-05/0.2509, allocations: 334.6 kB / 405.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.2511, allocations: 78.64 kB / 405.3 MB, free: 3.539 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.2513, allocations: 116.6 kB / 405.4 MB, free: 3.477 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.2516, allocations: 197.5 kB / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.393e-06/0.2516, allocations: 0 / 405.6 MB, free: 3.375 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004333/0.252, allocations: 267.9 kB / 405.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2521, allocations: 6.75 kB / 405.9 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.2521, allocations: 5.312 kB / 405.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.2521, allocations: 6.469 kB / 405.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.2524, allocations: 74.23 kB / 405.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.835e-06/0.2524, allocations: 2.875 kB / 405.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.2525, allocations: 12.48 kB / 406 MB, free: 3.238 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.501e-05/0.2525, allocations: 10.97 kB / 406 MB, free: 3.234 MB / 318.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 8.785e-05/0.2526, allocations: 140.2 kB / 406.1 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.879e-05/0.2526, allocations: 16.5 kB / 406.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.966e-05/0.2527, allocations: 29.53 kB / 406.2 MB, free: 3.07 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2527, allocations: 6.312 kB / 406.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.2527, allocations: 1.219 kB / 406.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.2527, allocations: 2.625 kB / 406.2 MB, free: 3.066 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007925/0.2535, allocations: 0.6092 MB / 406.8 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.534e-06/0.2535, allocations: 1.375 kB / 406.8 MB, free: 2.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/0.2538, allocations: 74.05 kB / 406.8 MB, free: 2.629 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.546e-06/0.2538, allocations: 6.812 kB / 406.9 MB, free: 2.625 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.2538, allocations: 11.48 kB / 406.9 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.635e-06/0.2538, allocations: 1.375 kB / 406.9 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.2538, allocations: 2.219 kB / 406.9 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005862/0.2544, allocations: 441.2 kB / 407.3 MB, free: 2.363 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.67e-05/0.2544, allocations: 20.05 kB / 407.3 MB, free: 2.352 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.2545, allocations: 10.88 kB / 407.3 MB, free: 2.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.2546, allocations: 20.12 kB / 407.3 MB, free: 2.332 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.11e-05/0.2547, allocations: 19.92 kB / 407.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.524e-05/0.2547, allocations: 6.016 kB / 407.4 MB, free: 2.328 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.391e-05/0.2548, allocations: 121.8 kB / 407.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2548, allocations: 0 / 407.5 MB, free: 2.238 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003175/0.2551, allocations: 58.12 kB / 407.5 MB, free: 2.23 MB / 318.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.0007558/0.2559, allocations: 0.9753 MB / 408.5 MB, free: 1.438 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004131/0.2563, allocations: 198.7 kB / 408.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2563, allocations: 0.9688 kB / 408.7 MB, free: 1.375 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001771/0.2565, allocations: 102 kB / 408.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004176/0.2569, allocations: 43.02 kB / 408.9 MB, free: 1.324 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003004/0.2599, allocations: 2.658 MB / 411.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001467/0.26, allocations: 145.1 kB / 411.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 9.533e-05/0.2601, allocations: 18.09 kB / 411.7 MB, free: 15.28 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001253/0.2602, allocations: 76.03 kB / 411.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of SimCode: time 8.11e-07/0.2602, allocations: 0 / 411.8 MB, free: 15.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02776/0.288, allocations: 4.927 MB / 416.7 MB, free: 12.97 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.66/10.94, allocations: 14.66 kB / 416.7 MB, free: 12.96 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/ElasticBearing/ElasticBearing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.171727892011404]