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.001204/0.001204, allocations: 105.1 kB / 21.22 MB, free: 0.5078 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.001319/0.001319, allocations: 214.9 kB / 24.51 MB, free: 3.688 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.347/1.347, allocations: 230.6 MB / 258.3 MB, free: 7.797 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.00138/0.00138, allocations: 47.91 kB / 378.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2426, allocations: 53.36 MB / 431.8 MB, free: 6.805 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.00366/0.2463, allocations: 2.321 MB / 434.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001041/0.2473, allocations: 0.5843 MB / 434.7 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.2474, allocations: 7.938 kB / 434.8 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001512/0.2476, allocations: 39.59 kB / 434.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001785/0.2478, allocations: 75.33 kB / 434.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001713/0.248, allocations: 63.86 kB / 434.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.2483, allocations: 294.7 kB / 435.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001816/0.2485, allocations: 86.38 kB / 435.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001481/0.2486, allocations: 115.5 kB / 435.4 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.2488, allocations: 127.5 kB / 435.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.925e-05/0.2488, allocations: 24 kB / 435.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.73e-05/0.2489, allocations: 24 kB / 435.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.377e-05/0.2489, allocations: 55.77 kB / 435.6 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001166/0.249, allocations: 111.5 kB / 435.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003428/0.2494, allocations: 294.8 kB / 436 MB, free: 2.598 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.2494, allocations: 3.938 kB / 436 MB, free: 2.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2494, allocations: 4 kB / 436 MB, free: 2.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.2494, allocations: 3.938 kB / 436 MB, free: 2.586 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.0007842/0.2502, allocations: 480.7 kB / 436.5 MB, free: 2.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.2502, allocations: 8.031 kB / 436.5 MB, free: 2.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.473e-05/0.2502, allocations: 8.844 kB / 436.5 MB, free: 2.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.122e-05/0.2503, allocations: 58.73 kB / 436.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.221e-05/0.2504, allocations: 32.73 kB / 436.6 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002932/0.2506, allocations: 178.7 kB / 436.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.279e-05/0.2507, allocations: 24.78 kB / 436.8 MB, free: 1.75 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.205e-05/0.2507, allocations: 32 kB / 436.9 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004622/0.2512, allocations: 226.1 kB / 437.1 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.2512, allocations: 3.953 kB / 437.1 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.51e-05/0.2512, allocations: 15.98 kB / 437.1 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.2512, allocations: 8 kB / 437.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004028/0.2516, allocations: 174.5 kB / 437.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001159/0.2528, allocations: 0.6441 MB / 437.9 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004783/0.2533, allocations: 202.5 kB / 438.1 MB, free: 412 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.2535, allocations: 104.8 kB / 438.2 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.2535, allocations: 4 kB / 438.2 MB, free: 300 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.636e-05/0.2535, allocations: 38.56 kB / 438.3 MB, free: 252 kB / 334.1 MB Notification: Performance of pre-optimization done (n=26): time 1.723e-06/0.2535, allocations: 0 / 438.3 MB, free: 252 kB / 334.1 MB Notification: Performance of matching and sorting (n=28): time 0.001693/0.2552, allocations: 0.8172 MB / 439.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.692e-05/0.2553, allocations: 55.41 kB / 439.1 MB, free: 15.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001607/0.2555, allocations: 151.8 kB / 439.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.348e-05/0.2555, allocations: 33.7 kB / 439.3 MB, free: 15.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.296e-05/0.2556, allocations: 144.8 kB / 439.5 MB, free: 14.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.16e-05/0.2557, allocations: 115 kB / 439.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-05/0.2558, allocations: 57.7 kB / 439.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000173/0.2559, allocations: 330.8 kB / 439.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001814/0.2561, allocations: 71.95 kB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.2563, allocations: 111.4 kB / 440.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003803/0.2567, allocations: 207.3 kB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-06/0.2567, allocations: 3.938 kB / 440.3 MB, free: 14.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000464/0.2572, allocations: 253.5 kB / 440.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.2572, allocations: 11.94 kB / 440.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.2572, allocations: 3.984 kB / 440.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.2572, allocations: 7.984 kB / 440.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002909/0.2575, allocations: 71.91 kB / 440.7 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.012e-05/0.2575, allocations: 12.03 kB / 440.7 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001218/0.2576, allocations: 11.98 kB / 440.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.904e-05/0.2577, allocations: 8 kB / 440.7 MB, free: 13.67 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.0001319/0.2578, allocations: 145.7 kB / 440.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.063e-05/0.2578, allocations: 19.86 kB / 440.9 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.641e-05/0.2579, allocations: 34.64 kB / 440.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.2579, allocations: 0 / 440.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.2579, allocations: 4 kB / 440.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.2579, allocations: 0 / 440.9 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009859/0.2589, allocations: 0.5938 MB / 441.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2589, allocations: 0 / 441.5 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003302/0.2592, allocations: 71.89 kB / 441.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.2592, allocations: 0 / 441.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.883e-05/0.2593, allocations: 11.94 kB / 441.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.2593, allocations: 0 / 441.6 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2593, allocations: 4 kB / 441.6 MB, free: 12.72 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000699/0.26, allocations: 455.6 kB / 442 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.84e-05/0.26, allocations: 15.89 kB / 442 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.45e-05/0.26, allocations: 12 kB / 442.1 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.2602, allocations: 8 kB / 442.1 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.637e-05/0.2602, allocations: 23.95 kB / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.241e-05/0.2602, allocations: 4 kB / 442.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001067/0.2603, allocations: 119.2 kB / 442.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2603, allocations: 4 kB / 442.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002982/0.2606, allocations: 56 kB / 442.3 MB, free: 12.02 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.001046/0.2617, allocations: 0.9799 MB / 443.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004371/0.2621, allocations: 185.5 kB / 443.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2621, allocations: 4.062 kB / 443.4 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002027/0.2623, allocations: 103.8 kB / 443.5 MB, free: 10.72 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000463/0.2628, allocations: 43.84 kB / 443.6 MB, free: 10.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.2665, allocations: 2.672 MB / 446.2 MB, free: 7.891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000148/0.2666, allocations: 146.5 kB / 446.4 MB, free: 7.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.7e-05/0.2667, allocations: 21.94 kB / 446.4 MB, free: 7.707 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000136/0.2669, allocations: 79.41 kB / 446.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2669, allocations: 0 / 446.5 MB, free: 7.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02754/0.2944, allocations: 4.919 MB / 451.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.6/10.9, allocations: 10.75 kB / 451.4 MB, free: 2.883 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.167393541079946]