Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001772/0.001772, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002709/0.002709, allocations: 208.7 kB / 24.51 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.436/1.436, allocations: 230.5 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001787/0.001787, allocations: 56.14 kB / 378.5 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2324/0.2342, allocations: 53.42 MB / 431.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.ElasticBearing): time 0.003575/0.2378, allocations: 2.306 MB / 434.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.2388, allocations: 0.5843 MB / 434.8 MB, free: 3.566 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.2389, allocations: 7.938 kB / 434.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001416/0.239, allocations: 35.59 kB / 434.8 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001678/0.2392, allocations: 83.31 kB / 434.9 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001624/0.2394, allocations: 59.92 kB / 435 MB, free: 3.383 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000323/0.2397, allocations: 298.6 kB / 435.3 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.2399, allocations: 77.47 kB / 435.3 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001399/0.24, allocations: 115.6 kB / 435.5 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.2402, allocations: 127.5 kB / 435.6 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.03e-05/0.2402, allocations: 24 kB / 435.6 MB, free: 2.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.245e-05/0.2402, allocations: 20 kB / 435.6 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.082e-05/0.2403, allocations: 55.78 kB / 435.7 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001184/0.2404, allocations: 115.5 kB / 435.8 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.2407, allocations: 298.8 kB / 436.1 MB, free: 2.273 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.2407, allocations: 3.938 kB / 436.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2407, allocations: 0 / 436.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.2407, allocations: 7.938 kB / 436.1 MB, free: 2.262 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.0007955/0.2415, allocations: 477.7 kB / 436.6 MB, free: 1.766 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.61e-05/0.2416, allocations: 8.031 kB / 436.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.873e-05/0.2416, allocations: 8.844 kB / 436.6 MB, free: 1.746 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.593e-05/0.2417, allocations: 62.72 kB / 436.6 MB, free: 1.676 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.6e-05/0.2417, allocations: 32.75 kB / 436.7 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003142/0.2421, allocations: 186.2 kB / 436.9 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.595e-05/0.2421, allocations: 24.78 kB / 436.9 MB, free: 1.418 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/0.2421, allocations: 24 kB / 436.9 MB, free: 1.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004634/0.2426, allocations: 226.1 kB / 437.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.867e-05/0.2426, allocations: 3.953 kB / 437.1 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.634e-05/0.2426, allocations: 12 kB / 437.1 MB, free: 1.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.2427, allocations: 8 kB / 437.1 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003917/0.243, allocations: 178.5 kB / 437.3 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001091/0.2441, allocations: 0.6402 MB / 438 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004661/0.2446, allocations: 212 kB / 438.2 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002253/0.2448, allocations: 108.8 kB / 438.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.562e-05/0.2448, allocations: 8 kB / 438.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.2449, allocations: 38.56 kB / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=26): time 1.453e-06/0.2449, allocations: 0 / 438.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.00161/0.2465, allocations: 0.8117 MB / 439.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.2465, allocations: 59.41 kB / 439.2 MB, free: 14.98 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.2467, allocations: 159.7 kB / 439.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.2467, allocations: 33.7 kB / 439.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.145e-05/0.2468, allocations: 136.8 kB / 439.5 MB, free: 14.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.189e-05/0.2469, allocations: 111 kB / 439.6 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.096e-05/0.2469, allocations: 53.7 kB / 439.7 MB, free: 14.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2471, allocations: 334.8 kB / 440 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001771/0.2473, allocations: 75.95 kB / 440.1 MB, free: 14.05 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001951/0.2475, allocations: 104.3 kB / 440.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003741/0.2478, allocations: 212.1 kB / 440.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.2478, allocations: 0 / 440.4 MB, free: 13.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004719/0.2483, allocations: 257.5 kB / 440.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.756e-05/0.2483, allocations: 11.94 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.2483, allocations: 4.094 kB / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.2483, allocations: 0 / 440.6 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002787/0.2486, allocations: 75.89 kB / 440.7 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.2486, allocations: 4 kB / 440.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001168/0.2487, allocations: 11.94 kB / 440.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.2488, allocations: 15.98 kB / 440.8 MB, free: 13.34 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.0001286/0.2489, allocations: 141.7 kB / 440.9 MB, free: 13.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.24e-05/0.2489, allocations: 19.86 kB / 440.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.273e-05/0.249, allocations: 30.66 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.249, allocations: 0 / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.249, allocations: 0 / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.249, allocations: 7.984 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009239/0.2499, allocations: 0.5952 MB / 441.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2499, allocations: 0 / 441.5 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003184/0.2503, allocations: 75.89 kB / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2503, allocations: 4.062 kB / 441.6 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.978e-05/0.2503, allocations: 11.94 kB / 441.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.2503, allocations: 0 / 441.6 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/0.2503, allocations: 4 kB / 441.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006948/0.251, allocations: 451.1 kB / 442.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.478e-05/0.251, allocations: 11.91 kB / 442.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.521e-05/0.251, allocations: 12 kB / 442.1 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2512, allocations: 11.98 kB / 442.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.679e-05/0.2512, allocations: 19.97 kB / 442.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.717e-05/0.2513, allocations: 12.12 kB / 442.1 MB, free: 11.87 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.483e-05/0.2514, allocations: 119.2 kB / 442.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2514, allocations: 0 / 442.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003024/0.2517, allocations: 56 kB / 442.3 MB, free: 11.7 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.001018/0.2527, allocations: 0.9736 MB / 443.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004437/0.2531, allocations: 192.1 kB / 443.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2531, allocations: 0 / 443.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002211/0.2533, allocations: 107.7 kB / 443.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004302/0.2538, allocations: 47.89 kB / 443.6 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003585/0.2574, allocations: 2.66 MB / 446.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.2575, allocations: 142.5 kB / 446.4 MB, free: 7.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.593e-05/0.2576, allocations: 21.94 kB / 446.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.2577, allocations: 75.41 kB / 446.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2577, allocations: 0 / 446.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02642/0.2841, allocations: 4.921 MB / 451.4 MB, free: 2.539 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.19, allocations: 12 kB / 451.5 MB, free: 2.527 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.615170803037472]