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.001231/0.001231, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001365/0.001365, allocations: 211.9 kB / 24.51 MB, free: 3.941 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.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.801 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 48.02 kB / 378.5 MB, free: 3.012 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.2269, allocations: 53.36 MB / 431.8 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003669/0.2305, allocations: 2.306 MB / 434.1 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001214/0.2317, allocations: 0.6232 MB / 434.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001444/0.2319, allocations: 7.938 kB / 434.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001673/0.2321, allocations: 35.64 kB / 434.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001516/0.2322, allocations: 71.34 kB / 434.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003268/0.2325, allocations: 79.84 kB / 435 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003366/0.2329, allocations: 262.8 kB / 435.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001772/0.233, allocations: 71.75 kB / 435.3 MB, free: 3.348 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002186/0.2333, allocations: 111.6 kB / 435.4 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.2334, allocations: 103.5 kB / 435.5 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.2335, allocations: 23.94 kB / 435.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.202e-05/0.2335, allocations: 28 kB / 435.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.277e-05/0.2336, allocations: 43.83 kB / 435.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.2337, allocations: 95.53 kB / 435.7 MB, free: 2.949 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000321/0.234, allocations: 262.9 kB / 435.9 MB, free: 2.691 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.234, allocations: 4 kB / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.234, allocations: 0 / 435.9 MB, free: 2.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.733e-06/0.234, allocations: 3.938 kB / 436 MB, free: 2.684 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.0007886/0.2348, allocations: 473.5 kB / 436.4 MB, free: 2.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.2349, allocations: 8.031 kB / 436.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.742e-05/0.2349, allocations: 8.625 kB / 436.4 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.608e-05/0.2349, allocations: 54.73 kB / 436.5 MB, free: 2.113 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002199/0.2351, allocations: 52.72 kB / 436.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003041/0.2355, allocations: 178.9 kB / 436.7 MB, free: 1.863 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.2355, allocations: 16.81 kB / 436.7 MB, free: 1.844 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.2355, allocations: 24.33 kB / 436.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004115/0.2359, allocations: 220.9 kB / 437 MB, free: 1.598 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.2359, allocations: 4 kB / 437 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.238e-05/0.236, allocations: 8 kB / 437 MB, free: 1.586 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.236, allocations: 8 kB / 437 MB, free: 1.578 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003208/0.2363, allocations: 149.5 kB / 437.1 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001139/0.2374, allocations: 0.7043 MB / 437.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004184/0.2379, allocations: 193 kB / 438 MB, free: 472 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002225/0.2381, allocations: 101.8 kB / 438.1 MB, free: 364 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.802e-05/0.2381, allocations: 11.88 kB / 438.1 MB, free: 352 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.37e-05/0.2381, allocations: 30.56 kB / 438.2 MB, free: 312 kB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 1.633e-06/0.2381, allocations: 0 / 438.2 MB, free: 312 kB / 334.1 MB Notification: Performance of matching and sorting (n=26): time 0.001549/0.2397, allocations: 0.7269 MB / 438.9 MB, free: 15.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.2397, allocations: 81.11 kB / 439 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.2399, allocations: 183.8 kB / 439.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.2399, allocations: 33.7 kB / 439.2 MB, free: 15.2 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.575e-05/0.24, allocations: 140.4 kB / 439.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.542e-05/0.2401, allocations: 99.12 kB / 439.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.721e-05/0.2402, allocations: 45.7 kB / 439.5 MB, free: 14.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00014/0.2403, allocations: 334.8 kB / 439.8 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.2405, allocations: 63.97 kB / 439.9 MB, free: 14.52 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001757/0.2406, allocations: 108.2 kB / 440 MB, free: 14.39 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003277/0.241, allocations: 190.7 kB / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.241, allocations: 0 / 440.1 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004492/0.2414, allocations: 252 kB / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/0.2414, allocations: 8.094 kB / 440.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.742e-06/0.2414, allocations: 7.938 kB / 440.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2415, allocations: 4 kB / 440.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002528/0.2417, allocations: 63.91 kB / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.2417, allocations: 0 / 440.5 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.2418, allocations: 12 kB / 440.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.765e-05/0.2418, allocations: 7.984 kB / 440.5 MB, free: 13.84 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.0001281/0.242, allocations: 146.2 kB / 440.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.222e-05/0.242, allocations: 23.86 kB / 440.7 MB, free: 13.67 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.129e-05/0.2421, allocations: 29.81 kB / 440.7 MB, free: 13.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.2421, allocations: 7.984 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.2421, allocations: 0 / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.2421, allocations: 3.984 kB / 440.7 MB, free: 13.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008275/0.2429, allocations: 0.5232 MB / 441.2 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.2429, allocations: 4 kB / 441.2 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002658/0.2432, allocations: 59.91 kB / 441.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.2432, allocations: 0 / 441.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.928e-05/0.2432, allocations: 12.09 kB / 441.3 MB, free: 12.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.2432, allocations: 7.938 kB / 441.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2432, allocations: 0 / 441.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000647/0.2439, allocations: 493 kB / 441.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.493e-05/0.2439, allocations: 19.94 kB / 441.8 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.244, allocations: 8 kB / 441.8 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.2441, allocations: 11.94 kB / 441.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.005e-05/0.2442, allocations: 19.95 kB / 441.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.419e-05/0.2442, allocations: 12 kB / 441.9 MB, free: 12.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001084/0.2443, allocations: 136.4 kB / 442 MB, free: 12.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2443, allocations: 0 / 442 MB, free: 12.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.2446, allocations: 48 kB / 442 MB, free: 12.21 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.0009575/0.2456, allocations: 1.034 MB / 443.1 MB, free: 11.13 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003816/0.246, allocations: 175.8 kB / 443.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.246, allocations: 4 kB / 443.2 MB, free: 10.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.2461, allocations: 83.84 kB / 443.3 MB, free: 10.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004806/0.2466, allocations: 48.66 kB / 443.4 MB, free: 10.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003251/0.2499, allocations: 2.653 MB / 446 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001366/0.25, allocations: 134.1 kB / 446.2 MB, free: 7.898 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.567e-05/0.2501, allocations: 29.92 kB / 446.2 MB, free: 7.871 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/0.2502, allocations: 71.41 kB / 446.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2502, allocations: 0 / 446.3 MB, free: 7.801 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.2768, allocations: 4.845 MB / 451.1 MB, free: 3.133 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/10.9, allocations: 10.64 kB / 451.1 MB, free: 3.125 MB / 350.1 MB " [Timeout remaining time 649] (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.17873096500989]