Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008701/0.0008701, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008256/0.0008256, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8748/0.8748, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.704e-05/1.884e-05, allocations: 2.281 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.002611/0.00263, allocations: 2.271 MB / 320.7 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008389/0.003469, allocations: 0.5569 MB / 321.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001111/0.00358, allocations: 11.94 kB / 321.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.003696, allocations: 39.59 kB / 321.3 MB, free: 3.453 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001111/0.003807, allocations: 67.3 kB / 321.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002155/0.004023, allocations: 59.91 kB / 321.4 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.000223/0.004246, allocations: 270.7 kB / 321.7 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.00439, allocations: 65.69 kB / 321.8 MB, free: 2.996 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000159/0.004549, allocations: 155.7 kB / 321.9 MB, free: 2.844 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.836e-05/0.004638, allocations: 79.7 kB / 322 MB, free: 2.766 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.637e-05/0.004664, allocations: 20 kB / 322 MB, free: 2.746 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.876e-05/0.004683, allocations: 20 kB / 322 MB, free: 2.727 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 2.684e-05/0.00471, allocations: 43.83 kB / 322.1 MB, free: 2.684 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.12e-05/0.004761, allocations: 83.83 kB / 322.1 MB, free: 2.602 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001907/0.004951, allocations: 255.1 kB / 322.4 MB, free: 2.352 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.473e-06/0.004953, allocations: 3.938 kB / 322.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.004954, allocations: 0 / 322.4 MB, free: 2.348 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.004958, allocations: 0 / 322.4 MB, free: 2.348 MB / 282.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.0004858/0.005444, allocations: 461.6 kB / 322.9 MB, free: 1.867 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.005478, allocations: 12.92 kB / 322.9 MB, free: 1.855 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.96e-05/0.005517, allocations: 54.73 kB / 322.9 MB, free: 1.793 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.265e-05/0.00555, allocations: 28.8 kB / 322.9 MB, free: 1.766 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001968/0.005747, allocations: 174.1 kB / 323.1 MB, free: 1.566 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.404e-05/0.005761, allocations: 16.88 kB / 323.1 MB, free: 1.551 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.727e-05/0.005788, allocations: 24.38 kB / 323.2 MB, free: 1.527 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002743/0.006062, allocations: 218.7 kB / 323.4 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.006077, allocations: 7.938 kB / 323.4 MB, free: 1.293 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.342e-05/0.006091, allocations: 8 kB / 323.4 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.006097, allocations: 4 kB / 323.4 MB, free: 1.281 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001992/0.006296, allocations: 147.8 kB / 323.5 MB, free: 1.137 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006791/0.006975, allocations: 0.7048 MB / 324.2 MB, free: 380 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002514/0.007226, allocations: 193.2 kB / 324.4 MB, free: 168 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001338/0.00736, allocations: 89.67 kB / 324.5 MB, free: 72 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.007377, allocations: 4 kB / 324.5 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.784e-05/0.007395, allocations: 38.56 kB / 324.6 MB, free: 20 kB / 282.7 MB Notification: Performance of pre-optimization done (n=22): time 2.134e-06/0.007397, allocations: 3.984 kB / 324.6 MB, free: 16 kB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009266/0.008323, allocations: 0.7161 MB / 325.3 MB, free: 15.25 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.008358, allocations: 85.05 kB / 325.4 MB, free: 15.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.946e-05/0.008457, allocations: 182.3 kB / 325.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.008471, allocations: 33.64 kB / 325.6 MB, free: 14.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.69e-05/0.008528, allocations: 140.5 kB / 325.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.48e-05/0.008573, allocations: 99.16 kB / 325.8 MB, free: 14.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.872e-05/0.008621, allocations: 53.66 kB / 325.9 MB, free: 14.62 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.12e-05/0.008693, allocations: 326.8 kB / 326.2 MB, free: 14.29 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.529e-05/0.008778, allocations: 67.95 kB / 326.2 MB, free: 14.23 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.862e-05/0.008877, allocations: 104.2 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001993/0.009076, allocations: 184.5 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.009078, allocations: 4 kB / 326.5 MB, free: 13.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000247/0.009325, allocations: 247.7 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.009336, allocations: 8 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.00934, allocations: 3.938 kB / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.468e-06/0.009349, allocations: 0 / 326.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.00948, allocations: 63.91 kB / 326.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.009486, allocations: 4 kB / 326.8 MB, free: 13.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.367e-05/0.00954, allocations: 20.03 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.135e-05/0.009551, allocations: 8 kB / 326.9 MB, free: 13.56 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 7.595e-05/0.009627, allocations: 137.8 kB / 327 MB, free: 13.41 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.175e-05/0.009659, allocations: 23.8 kB / 327 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.312e-05/0.009692, allocations: 29.8 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.009695, allocations: 4 kB / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.009699, allocations: 0 / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/0.009702, allocations: 0 / 327.1 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004937/0.0102, allocations: 0.5382 MB / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.0102, allocations: 0 / 327.6 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001326/0.01033, allocations: 55.91 kB / 327.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.01033, allocations: 4 kB / 327.7 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.01034, allocations: 8 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.845e-06/0.01035, allocations: 4 kB / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.01035, allocations: 0 / 327.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003728/0.01072, allocations: 0.4977 MB / 328.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.173e-05/0.01074, allocations: 19.86 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.767e-05/0.01076, allocations: 8 kB / 328.2 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.398e-05/0.01085, allocations: 8 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.745e-05/0.01088, allocations: 23.94 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.01089, allocations: 8 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.955e-05/0.01095, allocations: 128.4 kB / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01095, allocations: 0 / 328.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002138/0.01116, allocations: 48 kB / 328.4 MB, free: 11.94 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.0005198/0.01168, allocations: 1.026 MB / 329.4 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002341/0.01192, allocations: 171.8 kB / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.01192, allocations: 0 / 329.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 9.878e-05/0.01202, allocations: 87.78 kB / 329.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002988/0.01232, allocations: 50.72 kB / 329.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.01417, allocations: 2.549 MB / 332.3 MB, free: 7.891 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.452e-05/0.01426, allocations: 138.2 kB / 332.4 MB, free: 7.738 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.232e-05/0.01432, allocations: 21.94 kB / 332.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.91e-05/0.0144, allocations: 76.47 kB / 332.5 MB, free: 7.645 MB / 298.7 MB Notification: Performance of SimCode: time 4.6e-07/0.0144, allocations: 0 / 332.5 MB, free: 7.645 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01637/0.03077, allocations: 5.194 MB / 337.7 MB, free: 2.602 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.787/6.817, allocations: 8.5 kB / 337.7 MB, free: 2.598 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.420044908300042]