Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.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.0008499/0.0008499, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008989/0.0008989, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8364/0.8364, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.004e-06/2.004e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.305e-05/2.506e-05, allocations: 5.094 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002595/0.00262, allocations: 2.302 MB / 326.9 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.003677, allocations: 0.6387 MB / 327.5 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001461/0.003823, allocations: 11.88 kB / 327.5 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001393/0.003962, allocations: 35.64 kB / 327.5 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.004085, allocations: 75.23 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002994/0.004384, allocations: 79.81 kB / 327.7 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002442/0.004628, allocations: 266.7 kB / 328 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001588/0.004787, allocations: 69.7 kB / 328 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002233/0.00501, allocations: 159.6 kB / 328.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001014/0.005112, allocations: 79.77 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.005138, allocations: 20 kB / 328.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.319e-05/0.005191, allocations: 24 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.722e-05/0.005218, allocations: 43.83 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.714e-05/0.005276, allocations: 79.77 kB / 328.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002622/0.005538, allocations: 267.1 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.005542, allocations: 0 / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.005543, allocations: 0 / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.005549, allocations: 8 kB / 328.7 MB, free: 11.79 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0005559/0.006105, allocations: 464.9 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.033e-05/0.006145, allocations: 8.031 kB / 329.1 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.428e-05/0.006189, allocations: 58.73 kB / 329.2 MB, free: 11.23 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001511/0.006341, allocations: 48.72 kB / 329.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/0.006625, allocations: 181.4 kB / 329.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.808e-05/0.006643, allocations: 16.88 kB / 329.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.674e-05/0.00668, allocations: 24.33 kB / 329.5 MB, free: 10.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.006983, allocations: 218.7 kB / 329.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.006998, allocations: 3.938 kB / 329.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.007015, allocations: 4 kB / 329.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.007023, allocations: 8 kB / 329.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.007222, allocations: 147.8 kB / 329.8 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007869/0.008009, allocations: 0.7047 MB / 330.5 MB, free: 9.789 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002892/0.008298, allocations: 193 kB / 330.7 MB, free: 9.582 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.008457, allocations: 101.7 kB / 330.8 MB, free: 9.477 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.018e-05/0.008477, allocations: 4 kB / 330.8 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.248e-05/0.0085, allocations: 34.56 kB / 330.9 MB, free: 9.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 2.164e-06/0.008502, allocations: 0 / 330.9 MB, free: 9.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=26): time 0.001089/0.009591, allocations: 0.7135 MB / 331.6 MB, free: 8.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.00963, allocations: 81.11 kB / 331.7 MB, free: 8.562 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.009748, allocations: 186.9 kB / 331.8 MB, free: 8.367 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.009764, allocations: 37.7 kB / 331.9 MB, free: 8.324 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.789e-05/0.009832, allocations: 148.4 kB / 332 MB, free: 8.176 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/0.009879, allocations: 91.19 kB / 332.1 MB, free: 8.086 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.356e-05/0.009932, allocations: 45.7 kB / 332.2 MB, free: 8.035 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.847e-05/0.01001, allocations: 330.8 kB / 332.5 MB, free: 7.703 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.116e-05/0.0101, allocations: 67.95 kB / 332.6 MB, free: 7.637 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.0102, allocations: 104.2 kB / 332.7 MB, free: 7.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.01041, allocations: 196.1 kB / 332.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.01041, allocations: 0 / 332.8 MB, free: 7.312 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002666/0.01068, allocations: 249.2 kB / 333.1 MB, free: 7.062 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.0107, allocations: 10.97 kB / 333.1 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.0107, allocations: 0 / 333.1 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.01072, allocations: 4 kB / 333.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001417/0.01086, allocations: 68 kB / 333.2 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.01087, allocations: 0 / 333.2 MB, free: 6.984 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.458e-05/0.01093, allocations: 15.94 kB / 333.2 MB, free: 6.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.01094, allocations: 4 kB / 333.2 MB, free: 6.965 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * 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 9.446e-05/0.01104, allocations: 141.8 kB / 333.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.532e-05/0.01107, allocations: 27.8 kB / 333.4 MB, free: 6.789 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.9e-05/0.01111, allocations: 25.81 kB / 333.4 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.01111, allocations: 0 / 333.4 MB, free: 6.766 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.01112, allocations: 4 kB / 333.4 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.01112, allocations: 3.984 kB / 333.4 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000551/0.01168, allocations: 0.53 MB / 333.9 MB, free: 6.172 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.01168, allocations: 4 kB / 333.9 MB, free: 6.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001494/0.01183, allocations: 63.84 kB / 334 MB, free: 6.105 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.01183, allocations: 4 kB / 334 MB, free: 6.102 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.194e-05/0.01184, allocations: 4 kB / 334 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.01185, allocations: 4 kB / 334 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.01185, allocations: 0 / 334 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003966/0.01225, allocations: 0.4896 MB / 334.5 MB, free: 5.578 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.864e-05/0.01227, allocations: 23.89 kB / 334.5 MB, free: 5.555 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.033e-05/0.0123, allocations: 8 kB / 334.5 MB, free: 5.547 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.781e-05/0.01238, allocations: 11.94 kB / 334.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.01243, allocations: 19.91 kB / 334.5 MB, free: 5.516 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.01244, allocations: 11.98 kB / 334.6 MB, free: 5.504 MB / 298.7 MB Notification: Performance of sorting global known variables: time 7.22e-05/0.01251, allocations: 140.2 kB / 334.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01251, allocations: 0 / 334.7 MB, free: 5.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002272/0.01274, allocations: 52 kB / 334.7 MB, free: 5.316 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.v) * 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 (26): * Single equations (assignments): 26 * 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.0005802/0.01332, allocations: 1.031 MB / 335.8 MB, free: 4.25 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002548/0.01357, allocations: 174.4 kB / 335.9 MB, free: 4.082 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.01357, allocations: 0 / 335.9 MB, free: 4.082 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.729e-05/0.01367, allocations: 96.03 kB / 336 MB, free: 3.988 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.01402, allocations: 52.7 kB / 336.1 MB, free: 3.938 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.01616, allocations: 2.553 MB / 338.6 MB, free: 1.246 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.193e-05/0.01626, allocations: 142.1 kB / 338.8 MB, free: 1.09 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.281e-05/0.01634, allocations: 21.94 kB / 338.8 MB, free: 1.066 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.571e-05/0.01642, allocations: 72.48 kB / 338.9 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of SimCode: time 1.573e-06/0.01643, allocations: 0 / 338.9 MB, free: 0.9961 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.03372, allocations: 5.256 MB / 344.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.529/6.562, allocations: 4 kB / 344.1 MB, free: 11.89 MB / 314.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Translational.Examples.Oscillator.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: 8.100424520671368]