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.001299/0.001299, allocations: 115.6 kB / 20.43 MB, free: 1.309 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.001583/0.001583, allocations: 215.3 kB / 23.74 MB, free: 4.535 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.458/1.458, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.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 0.001565/0.001565, allocations: 47.92 kB / 377.8 MB, free: 3.164 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2727/0.2743, allocations: 53.36 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004389/0.2786, allocations: 2.466 MB / 433.6 MB, free: 4.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001438/0.2801, allocations: 0.6661 MB / 434.3 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002425/0.2803, allocations: 7.938 kB / 434.3 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002094/0.2805, allocations: 39.58 kB / 434.3 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.2808, allocations: 71.36 kB / 434.4 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004011/0.2812, allocations: 71.89 kB / 434.4 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004231/0.2816, allocations: 258.8 kB / 434.7 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002087/0.2818, allocations: 73.62 kB / 434.8 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000277/0.2821, allocations: 111.6 kB / 434.9 MB, free: 3.102 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002277/0.2823, allocations: 115.5 kB / 435 MB, free: 2.988 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.453e-05/0.2824, allocations: 20 kB / 435 MB, free: 2.969 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.021e-05/0.2824, allocations: 28 kB / 435 MB, free: 2.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.94e-05/0.2825, allocations: 43.84 kB / 435.1 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001344/0.2826, allocations: 115.4 kB / 435.2 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003992/0.283, allocations: 263.3 kB / 435.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.283, allocations: 0 / 435.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.283, allocations: 0 / 435.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.283, allocations: 3.938 kB / 435.5 MB, free: 2.527 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.0008749/0.2839, allocations: 473.5 kB / 435.9 MB, free: 2.035 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.2839, allocations: 12.03 kB / 435.9 MB, free: 2.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.774e-05/0.284, allocations: 50.73 kB / 436 MB, free: 1.965 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002603/0.2843, allocations: 48.72 kB / 436 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003356/0.2846, allocations: 183 kB / 436.2 MB, free: 1.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.2846, allocations: 20.8 kB / 436.2 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.547e-05/0.2847, allocations: 28.33 kB / 436.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004248/0.2851, allocations: 221 kB / 436.5 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.928e-05/0.2851, allocations: 4 kB / 436.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.104e-05/0.2852, allocations: 8 kB / 436.5 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.166e-06/0.2852, allocations: 4 kB / 436.5 MB, free: 1.426 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003281/0.2855, allocations: 147.8 kB / 436.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.2868, allocations: 0.7472 MB / 437.4 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004372/0.2872, allocations: 189 kB / 437.6 MB, free: 276 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002369/0.2874, allocations: 97.66 kB / 437.7 MB, free: 172 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/0.2875, allocations: 4.188 kB / 437.7 MB, free: 168 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.068e-05/0.2875, allocations: 38.44 kB / 437.7 MB, free: 120 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.2875, allocations: 4 kB / 437.7 MB, free: 116 kB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001661/0.2892, allocations: 0.7201 MB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.365e-05/0.2892, allocations: 81.11 kB / 438.5 MB, free: 15.24 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001914/0.2894, allocations: 179.8 kB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.2894, allocations: 37.7 kB / 438.7 MB, free: 15.01 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.2895, allocations: 136.5 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.227e-05/0.2896, allocations: 99.12 kB / 438.9 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.824e-05/0.2897, allocations: 45.7 kB / 439 MB, free: 14.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.2899, allocations: 334.8 kB / 439.3 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001549/0.29, allocations: 63.97 kB / 439.4 MB, free: 14.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001855/0.2902, allocations: 108.2 kB / 439.5 MB, free: 14.21 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.2906, allocations: 191 kB / 439.7 MB, free: 14.01 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.2906, allocations: 3.938 kB / 439.7 MB, free: 14 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004567/0.291, allocations: 241.7 kB / 439.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.291, allocations: 4 kB / 439.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.946e-06/0.2911, allocations: 4 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.584e-05/0.2911, allocations: 0 / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002677/0.2913, allocations: 67.89 kB / 440 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.256e-05/0.2913, allocations: 12 kB / 440 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.2915, allocations: 8.094 kB / 440 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.2915, allocations: 12 kB / 440 MB, free: 13.66 MB / 350.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.0001561/0.2916, allocations: 146.1 kB / 440.2 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.09e-05/0.2917, allocations: 27.84 kB / 440.2 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.848e-05/0.2918, allocations: 29.8 kB / 440.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.2918, allocations: 8 kB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2918, allocations: 0 / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2918, allocations: 3.984 kB / 440.2 MB, free: 13.44 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009589/0.2928, allocations: 0.5621 MB / 440.8 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.2928, allocations: 4 kB / 440.8 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002681/0.293, allocations: 51.97 kB / 440.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.293, allocations: 4 kB / 440.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.986e-05/0.293, allocations: 7.938 kB / 440.9 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.2931, allocations: 7.938 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.2931, allocations: 4.094 kB / 440.9 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007251/0.2938, allocations: 489.1 kB / 441.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.497e-05/0.2938, allocations: 27.84 kB / 441.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.428e-05/0.2939, allocations: 4 kB / 441.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.294, allocations: 7.938 kB / 441.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.245e-05/0.2941, allocations: 24 kB / 441.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.719e-05/0.2941, allocations: 8 kB / 441.4 MB, free: 12.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001372/0.2942, allocations: 132.5 kB / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2942, allocations: 0 / 441.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003594/0.2946, allocations: 52 kB / 441.6 MB, free: 11.98 MB / 350.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.001089/0.2957, allocations: 1.029 MB / 442.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004416/0.2961, allocations: 174.5 kB / 442.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2961, allocations: 0 / 442.8 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001957/0.2963, allocations: 91.83 kB / 442.9 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005064/0.2968, allocations: 38.7 kB / 442.9 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003637/0.3005, allocations: 2.66 MB / 445.6 MB, free: 7.836 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003941/0.3009, allocations: 0.7479 MB / 446.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000103/0.301, allocations: 29.92 kB / 446.4 MB, free: 7.031 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001292/0.3011, allocations: 71.41 kB / 446.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of SimCode: time 9.31e-07/0.3011, allocations: 0 / 446.4 MB, free: 6.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03619/0.3373, allocations: 4.735 MB / 451.2 MB, free: 2.383 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.58, allocations: 480 / 451.2 MB, free: 2.383 MB / 350.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/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: 13.948084481060505]