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.001278/0.001278, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 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.001409/0.001409, allocations: 183.7 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.384/1.384, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001521/0.001521, allocations: 51.92 kB / 370.4 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2759/0.2775, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004005/0.2815, allocations: 2.456 MB / 425.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001057/0.2825, allocations: 0.5843 MB / 425.7 MB, free: 11.54 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2826, allocations: 7.938 kB / 425.7 MB, free: 11.53 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000143/0.2828, allocations: 39.64 kB / 425.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001343/0.2829, allocations: 67.36 kB / 425.8 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002316/0.2831, allocations: 63.86 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003092/0.2835, allocations: 254.9 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001869/0.2836, allocations: 69.64 kB / 426.1 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001639/0.2838, allocations: 103.6 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001858/0.284, allocations: 103.5 kB / 426.4 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.04e-05/0.284, allocations: 20 kB / 426.4 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.683e-05/0.2841, allocations: 20 kB / 426.4 MB, free: 10.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.557e-05/0.2841, allocations: 51.83 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.2842, allocations: 115.4 kB / 426.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003327/0.2846, allocations: 255.3 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.2846, allocations: 0 / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2846, allocations: 4 kB / 426.8 MB, free: 10.39 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.153e-06/0.2846, allocations: 0 / 426.8 MB, free: 10.39 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0008136/0.2854, allocations: 453.6 kB / 427.2 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.2855, allocations: 16.03 kB / 427.3 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.711e-05/0.2855, allocations: 54.73 kB / 427.3 MB, free: 9.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.793e-05/0.2856, allocations: 36.69 kB / 427.4 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003296/0.2859, allocations: 174.8 kB / 427.5 MB, free: 9.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.202e-05/0.2859, allocations: 16.81 kB / 427.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.569e-05/0.286, allocations: 20.33 kB / 427.6 MB, free: 9.57 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004307/0.2864, allocations: 217.1 kB / 427.8 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.2864, allocations: 4 kB / 427.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.443e-05/0.2865, allocations: 12 kB / 427.8 MB, free: 9.328 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.055e-06/0.2865, allocations: 4 kB / 427.8 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003256/0.2868, allocations: 147.8 kB / 427.9 MB, free: 9.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001206/0.288, allocations: 0.7434 MB / 428.7 MB, free: 8.375 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004147/0.2884, allocations: 185 kB / 428.9 MB, free: 8.176 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002407/0.2886, allocations: 101.7 kB / 429 MB, free: 8.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.671e-05/0.2887, allocations: 4.188 kB / 429 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.2887, allocations: 42.44 kB / 429 MB, free: 8.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 3.186e-06/0.2887, allocations: 3.984 kB / 429 MB, free: 8.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001521/0.2902, allocations: 0.7236 MB / 429.7 MB, free: 7.238 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.861e-05/0.2903, allocations: 81.11 kB / 429.8 MB, free: 7.141 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001815/0.2905, allocations: 179.2 kB / 430 MB, free: 6.957 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.2905, allocations: 29.7 kB / 430 MB, free: 6.922 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.61e-05/0.2906, allocations: 140.5 kB / 430.2 MB, free: 6.781 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.654e-05/0.2907, allocations: 107 kB / 430.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.295e-05/0.2908, allocations: 49.7 kB / 430.3 MB, free: 6.621 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.2909, allocations: 334.8 kB / 430.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001504/0.2911, allocations: 59.97 kB / 430.7 MB, free: 6.227 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001722/0.2912, allocations: 108.2 kB / 430.8 MB, free: 6.105 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003662/0.2916, allocations: 186.8 kB / 431 MB, free: 5.91 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.2916, allocations: 3.938 kB / 431 MB, free: 5.906 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000437/0.292, allocations: 241.3 kB / 431.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.2921, allocations: 12.09 kB / 431.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.2921, allocations: 0 / 431.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.953e-05/0.2921, allocations: 4 kB / 431.2 MB, free: 5.648 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/0.2923, allocations: 63.91 kB / 431.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.323e-06/0.2923, allocations: 0 / 431.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.2925, allocations: 27.94 kB / 431.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.2925, allocations: 4 kB / 431.3 MB, free: 5.555 MB / 334.1 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 0.0001334/0.2926, allocations: 141.7 kB / 431.5 MB, free: 5.406 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.938e-05/0.2927, allocations: 19.91 kB / 431.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.49e-05/0.2927, allocations: 29.8 kB / 431.5 MB, free: 5.359 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2927, allocations: 4 kB / 431.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.2928, allocations: 0 / 431.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.2928, allocations: 4 kB / 431.5 MB, free: 5.352 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008871/0.2936, allocations: 0.5505 MB / 432.1 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2936, allocations: 4.031 kB / 432.1 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002668/0.2939, allocations: 59.89 kB / 432.1 MB, free: 4.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.13e-06/0.2939, allocations: 4 kB / 432.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.854e-05/0.2939, allocations: 8 kB / 432.1 MB, free: 4.668 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.2939, allocations: 3.938 kB / 432.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.639e-06/0.2939, allocations: 4 kB / 432.2 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006853/0.2946, allocations: 493.4 kB / 432.6 MB, free: 4.152 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.516e-05/0.2947, allocations: 23.8 kB / 432.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.646e-05/0.2947, allocations: 12.03 kB / 432.7 MB, free: 4.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.2949, allocations: 11.94 kB / 432.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.013e-05/0.2949, allocations: 19.97 kB / 432.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.2949, allocations: 8 kB / 432.7 MB, free: 4.078 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001192/0.2951, allocations: 140.3 kB / 432.9 MB, free: 3.941 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2951, allocations: 3.938 kB / 432.9 MB, free: 3.938 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003338/0.2954, allocations: 52 kB / 432.9 MB, free: 3.887 MB / 334.1 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.001015/0.2964, allocations: 1.019 MB / 433.9 MB, free: 2.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000401/0.2968, allocations: 176 kB / 434.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.2968, allocations: 0 / 434.1 MB, free: 2.656 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001676/0.297, allocations: 87.83 kB / 434.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005159/0.2975, allocations: 39.78 kB / 434.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003384/0.3009, allocations: 2.653 MB / 436.9 MB, free: 15.76 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004068/0.3013, allocations: 0.7441 MB / 437.6 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.899e-05/0.3014, allocations: 25.92 kB / 437.6 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.3015, allocations: 67.42 kB / 437.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of SimCode: time 6.02e-07/0.3015, allocations: 0 / 437.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03334/0.3348, allocations: 4.67 MB / 442.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.23, allocations: 5.188 kB / 442.4 MB, free: 10.38 MB / 350.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/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: 13.477463325951248]