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.004645/0.004645, allocations: 114.5 kB / 21.97 MB, free: 5.227 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.001283/0.001283, allocations: 216.3 kB / 25.28 MB, free: 3.246 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.292/1.292, allocations: 207.6 MB / 236 MB, free: 9.98 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.001716/0.001716, allocations: 61.33 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2427/0.2444, allocations: 49.16 MB / 397.1 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.002935/0.2473, allocations: 2.446 MB / 399.6 MB, free: 7.305 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007574/0.2481, allocations: 0.6287 MB / 400.2 MB, free: 6.848 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.2482, allocations: 7.969 kB / 400.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001425/0.2483, allocations: 41.09 kB / 400.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.2485, allocations: 80.75 kB / 400.3 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001693/0.2486, allocations: 65.14 kB / 400.4 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002552/0.2489, allocations: 291.2 kB / 400.7 MB, free: 6.574 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.249, allocations: 85.06 kB / 400.8 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001207/0.2492, allocations: 113.6 kB / 400.9 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001455/0.2493, allocations: 123.2 kB / 401 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.766e-05/0.2493, allocations: 23.88 kB / 401 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.146e-05/0.2494, allocations: 23.69 kB / 401 MB, free: 6.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.047e-05/0.2494, allocations: 59.72 kB / 401.1 MB, free: 6.367 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.2495, allocations: 129.6 kB / 401.2 MB, free: 6.293 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003015/0.2498, allocations: 301.7 kB / 401.5 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2498, allocations: 4 kB / 401.5 MB, free: 6.172 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2498, allocations: 0 / 401.5 MB, free: 6.172 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.922e-06/0.2498, allocations: 0 / 401.5 MB, free: 6.172 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.0006193/0.2505, allocations: 478.6 kB / 402 MB, free: 5.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.2505, allocations: 13.23 kB / 402 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.503e-05/0.2505, allocations: 7.953 kB / 402 MB, free: 5.793 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.19e-05/0.2506, allocations: 64.44 kB / 402.1 MB, free: 5.734 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.828e-05/0.2506, allocations: 31.75 kB / 402.1 MB, free: 5.719 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.2508, allocations: 184 kB / 402.3 MB, free: 5.547 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.905e-05/0.2508, allocations: 24.7 kB / 402.3 MB, free: 5.535 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.6e-05/0.2509, allocations: 28.8 kB / 402.3 MB, free: 5.523 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004018/0.2513, allocations: 224.9 kB / 402.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.795e-05/0.2513, allocations: 2.328 kB / 402.6 MB, free: 5.418 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.997e-05/0.2513, allocations: 9.906 kB / 402.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2513, allocations: 9.656 kB / 402.6 MB, free: 5.406 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003644/0.2517, allocations: 176.4 kB / 402.8 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000956/0.2527, allocations: 0.6915 MB / 403.4 MB, free: 4.914 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004138/0.2531, allocations: 219.5 kB / 403.7 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001932/0.2533, allocations: 103.1 kB / 403.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.2533, allocations: 1.906 kB / 403.8 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.235e-05/0.2533, allocations: 33.3 kB / 403.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of pre-optimization done (n=26): time 1.272e-06/0.2533, allocations: 0 / 403.8 MB, free: 4.73 MB / 318.1 MB Notification: Performance of matching and sorting (n=28): time 0.001389/0.2547, allocations: 0.8156 MB / 404.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.567e-05/0.2547, allocations: 55.23 kB / 404.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.2548, allocations: 159 kB / 404.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.341e-05/0.2548, allocations: 30.73 kB / 404.8 MB, free: 4.016 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.775e-05/0.2549, allocations: 148.3 kB / 405 MB, free: 3.887 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.525e-05/0.2549, allocations: 107.2 kB / 405.1 MB, free: 3.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.164e-05/0.255, allocations: 51.36 kB / 405.1 MB, free: 3.766 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.552e-05/0.255, allocations: 342 kB / 405.5 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.2552, allocations: 70.27 kB / 405.5 MB, free: 3.414 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001695/0.2553, allocations: 118.6 kB / 405.7 MB, free: 3.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003219/0.2557, allocations: 193.4 kB / 405.9 MB, free: 3.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.2557, allocations: 5.25 kB / 405.9 MB, free: 3.246 MB / 318.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004246/0.2561, allocations: 267.6 kB / 406.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.361e-05/0.2561, allocations: 5.469 kB / 406.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.2561, allocations: 1.219 kB / 406.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.468e-05/0.2561, allocations: 3.094 kB / 406.1 MB, free: 3.125 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002659/0.2564, allocations: 76.94 kB / 406.2 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.027e-06/0.2564, allocations: 7.281 kB / 406.2 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.2565, allocations: 15.77 kB / 406.2 MB, free: 3.105 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.2565, allocations: 7.219 kB / 406.2 MB, free: 3.105 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.152e-05/0.2566, allocations: 140.5 kB / 406.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.866e-05/0.2566, allocations: 16.75 kB / 406.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.029e-05/0.2567, allocations: 28.19 kB / 406.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.2567, allocations: 3.438 kB / 406.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2567, allocations: 0 / 406.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2567, allocations: 2.766 kB / 406.4 MB, free: 2.941 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007765/0.2575, allocations: 0.6283 MB / 407.1 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.2575, allocations: 1.094 kB / 407.1 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000305/0.2578, allocations: 74.55 kB / 407.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2578, allocations: 3 kB / 407.1 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.2578, allocations: 14.14 kB / 407.1 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.2578, allocations: 1.938 kB / 407.1 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.2578, allocations: 2.203 kB / 407.1 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005681/0.2584, allocations: 441.6 kB / 407.6 MB, free: 2.234 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.441e-05/0.2584, allocations: 22.84 kB / 407.6 MB, free: 2.219 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/0.2584, allocations: 10.72 kB / 407.6 MB, free: 2.211 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001348/0.2586, allocations: 12.12 kB / 407.6 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.112e-05/0.2586, allocations: 15.64 kB / 407.6 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.316e-05/0.2586, allocations: 10.42 kB / 407.6 MB, free: 2.203 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.07e-05/0.2587, allocations: 117.3 kB / 407.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2587, allocations: 0 / 407.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002758/0.259, allocations: 58.88 kB / 407.8 MB, free: 2.109 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.0006779/0.2597, allocations: 0.981 MB / 408.8 MB, free: 1.309 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003961/0.2601, allocations: 200.8 kB / 409 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2601, allocations: 0 / 409 MB, free: 1.246 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001722/0.2602, allocations: 102.9 kB / 409.1 MB, free: 1.215 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003826/0.2606, allocations: 39.59 kB / 409.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002926/0.2635, allocations: 2.672 MB / 411.8 MB, free: 15.22 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.2639, allocations: 0.7524 MB / 412.6 MB, free: 14.52 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.207e-05/0.264, allocations: 22.42 kB / 412.6 MB, free: 14.51 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001203/0.2641, allocations: 75.91 kB / 412.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of SimCode: time 3e-07/0.2641, allocations: 0 / 412.7 MB, free: 14.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02764/0.2918, allocations: 4.844 MB / 417.5 MB, free: 12.26 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.8, allocations: 14.2 kB / 417.5 MB, free: 12.25 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.026934670982882]