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.001315/0.001315, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001452/0.001452, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.439/1.439, allocations: 230.6 MB / 254.1 MB, free: 15.07 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.001538/0.001538, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09888/0.1004, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.004126/0.1045, allocations: 2.443 MB / 428.7 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0015/0.106, allocations: 0.666 MB / 429.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002286/0.1063, allocations: 8 kB / 429.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001699/0.1064, allocations: 39.58 kB / 429.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002026/0.1066, allocations: 71.36 kB / 429.5 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.107, allocations: 71.83 kB / 429.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003825/0.1074, allocations: 254.9 kB / 429.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1075, allocations: 73.34 kB / 429.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002449/0.1078, allocations: 111.6 kB / 430 MB, free: 1.043 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001875/0.108, allocations: 111.5 kB / 430.1 MB, free: 0.9336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.99e-05/0.108, allocations: 23.94 kB / 430.2 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.944e-05/0.1081, allocations: 24 kB / 430.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.561e-05/0.1081, allocations: 51.78 kB / 430.2 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001283/0.1083, allocations: 119.4 kB / 430.4 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003808/0.1087, allocations: 262.8 kB / 430.6 MB, free: 472 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.1087, allocations: 4 kB / 430.6 MB, free: 468 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1087, allocations: 0 / 430.6 MB, free: 468 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.457e-05/0.1087, allocations: 0 / 430.6 MB, free: 468 kB / 350.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.1894/0.2981, allocations: 0.5255 MB / 431.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.317e-05/0.2981, allocations: 9 kB / 431.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.279e-05/0.2982, allocations: 56.91 kB / 431.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002715/0.2985, allocations: 45.92 kB / 431.2 MB, free: 11.15 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003472/0.2988, allocations: 240.1 kB / 431.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.033e-05/0.2988, allocations: 17.12 kB / 431.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.106e-05/0.2989, allocations: 28.23 kB / 431.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004311/0.2993, allocations: 223.2 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.2993, allocations: 0.5 kB / 431.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.2993, allocations: 6.344 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.2994, allocations: 5.094 kB / 431.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003359/0.2997, allocations: 150 kB / 431.9 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001026/0.3007, allocations: 0.7855 MB / 432.7 MB, free: 10.43 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004048/0.3011, allocations: 190.5 kB / 432.9 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002235/0.3013, allocations: 100.2 kB / 433 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.818e-05/0.3014, allocations: 2.188 kB / 433 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.939e-05/0.3014, allocations: 34.58 kB / 433 MB, free: 10.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.342e-06/0.3014, allocations: 0 / 433 MB, free: 10.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001517/0.3029, allocations: 0.8801 MB / 433.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.135e-05/0.3029, allocations: 79.36 kB / 434 MB, free: 9.734 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001433/0.3031, allocations: 180.7 kB / 434.1 MB, free: 9.633 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.616e-05/0.3031, allocations: 29.14 kB / 434.2 MB, free: 9.602 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.921e-05/0.3032, allocations: 138.2 kB / 434.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.923e-05/0.3032, allocations: 107.4 kB / 434.4 MB, free: 9.434 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.613e-05/0.3033, allocations: 45.8 kB / 434.5 MB, free: 9.418 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.743e-05/0.3033, allocations: 332.7 kB / 434.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001437/0.3035, allocations: 65.23 kB / 434.8 MB, free: 9.105 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001605/0.3036, allocations: 111.8 kB / 435 MB, free: 9.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.3039, allocations: 193.5 kB / 435.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.3039, allocations: 0 / 435.1 MB, free: 9.016 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003912/0.3043, allocations: 253.7 kB / 435.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.3044, allocations: 7.844 kB / 435.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3044, allocations: 1.25 kB / 435.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.3044, allocations: 3.281 kB / 435.4 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002378/0.3046, allocations: 61.62 kB / 435.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.504e-06/0.3046, allocations: 3.25 kB / 435.5 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.3047, allocations: 11.31 kB / 435.5 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/0.3047, allocations: 12.33 kB / 435.5 MB, free: 8.902 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 8.254e-05/0.3048, allocations: 138 kB / 435.6 MB, free: 8.773 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.752e-05/0.3049, allocations: 26.64 kB / 435.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.094e-05/0.3049, allocations: 29.05 kB / 435.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/0.3049, allocations: 3.875 kB / 435.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.3049, allocations: 0 / 435.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.305, allocations: 4.906 kB / 435.7 MB, free: 8.727 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006785/0.3056, allocations: 0.5867 MB / 436.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.3056, allocations: 3.406 kB / 436.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.3059, allocations: 56 kB / 436.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.3059, allocations: 3.125 kB / 436.3 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.65e-05/0.3059, allocations: 7.438 kB / 436.3 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.377e-06/0.3059, allocations: 9.656 kB / 436.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.3059, allocations: 6.094 kB / 436.4 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005744/0.3065, allocations: 493 kB / 436.8 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.581e-05/0.3065, allocations: 94.95 kB / 436.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.186e-05/0.3066, allocations: 8.422 kB / 436.9 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001637/0.3067, allocations: 10.16 kB / 436.9 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.3068, allocations: 25.52 kB / 437 MB, free: 7.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.3068, allocations: 9.812 kB / 437 MB, free: 7.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.586e-05/0.3069, allocations: 136.8 kB / 437.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3069, allocations: 2.25 kB / 437.1 MB, free: 7.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003382/0.3072, allocations: 55.97 kB / 437.2 MB, free: 7.727 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.000766/0.308, allocations: 1.021 MB / 438.2 MB, free: 6.863 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000417/0.3084, allocations: 178.1 kB / 438.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3084, allocations: 1.375 kB / 438.4 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001775/0.3086, allocations: 93.08 kB / 438.5 MB, free: 6.781 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004728/0.3091, allocations: 43.61 kB / 438.5 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.3118, allocations: 2.645 MB / 441.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001802/0.312, allocations: 0.7489 MB / 441.9 MB, free: 4.117 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.067e-05/0.3121, allocations: 24.06 kB / 441.9 MB, free: 4.109 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.883e-05/0.3122, allocations: 72.55 kB / 442 MB, free: 4.062 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.3122, allocations: 0 / 442 MB, free: 4.062 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02938/0.3416, allocations: 4.491 MB / 446.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.394, allocations: 18.67 kB / 446.5 MB, free: 3.465 MB / 350.1 MB " [Timeout remaining time 652] (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: 10.667216876987368]