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.001228/0.001228, allocations: 106 kB / 18.49 MB, free: 4.543 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.001293/0.001293, allocations: 197 kB / 21.43 MB, free: 1.609 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.38/1.38, allocations: 225.6 MB / 249.8 MB, free: 3.602 MB / 190.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 51.92 kB / 366.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1017, allocations: 52.14 MB / 418.5 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003682/0.1054, allocations: 2.437 MB / 420.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009665/0.1064, allocations: 0.5765 MB / 421.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001107/0.1065, allocations: 7.938 kB / 421.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001402/0.1066, allocations: 43.58 kB / 421.5 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.1067, allocations: 63.42 kB / 421.6 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002377/0.107, allocations: 71.8 kB / 421.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000301/0.1073, allocations: 250.9 kB / 421.9 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001672/0.1075, allocations: 69.36 kB / 422 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001485/0.1076, allocations: 99.64 kB / 422.1 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1078, allocations: 111.5 kB / 422.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.903e-05/0.1078, allocations: 20 kB / 422.2 MB, free: 8.848 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.406e-05/0.1078, allocations: 20 kB / 422.2 MB, free: 8.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.549e-05/0.1079, allocations: 51.83 kB / 422.3 MB, free: 8.777 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001057/0.108, allocations: 115.4 kB / 422.4 MB, free: 8.664 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002919/0.1083, allocations: 255 kB / 422.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1083, allocations: 0 / 422.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1083, allocations: 0 / 422.6 MB, free: 8.414 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.613e-06/0.1083, allocations: 3.938 kB / 422.6 MB, free: 8.41 MB / 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.0007914/0.1091, allocations: 0.5221 MB / 423.2 MB, free: 7.84 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.1091, allocations: 23.95 kB / 423.2 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.521e-05/0.1091, allocations: 4.625 kB / 423.2 MB, free: 7.812 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.643e-05/0.1092, allocations: 58.73 kB / 423.3 MB, free: 7.746 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.281e-05/0.1092, allocations: 28.75 kB / 423.3 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003307/0.1096, allocations: 229.5 kB / 423.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.78e-05/0.1096, allocations: 12.81 kB / 423.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.873e-05/0.1096, allocations: 28.31 kB / 423.5 MB, free: 7.41 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000405/0.11, allocations: 224.9 kB / 423.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.1101, allocations: 0 / 423.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.252e-05/0.1101, allocations: 8 kB / 423.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.1101, allocations: 8 kB / 423.8 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003297/0.1104, allocations: 143.9 kB / 423.9 MB, free: 7.023 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.1116, allocations: 0.7872 MB / 424.7 MB, free: 6.168 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003963/0.112, allocations: 181 kB / 424.9 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002245/0.1122, allocations: 97.86 kB / 425 MB, free: 5.871 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.888e-05/0.1122, allocations: 7.938 kB / 425 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/0.1123, allocations: 38.5 kB / 425 MB, free: 5.816 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 4.548e-06/0.1123, allocations: 3.984 kB / 425 MB, free: 5.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=26): time 0.001619/0.1139, allocations: 0.8733 MB / 425.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/0.1139, allocations: 81.11 kB / 426 MB, free: 4.754 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.1141, allocations: 174.3 kB / 426.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.1141, allocations: 29.7 kB / 426.2 MB, free: 4.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.546e-05/0.1142, allocations: 144.5 kB / 426.3 MB, free: 4.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.753e-05/0.1143, allocations: 103.1 kB / 426.4 MB, free: 4.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.918e-05/0.1144, allocations: 45.7 kB / 426.5 MB, free: 4.242 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.1145, allocations: 330.8 kB / 426.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.1147, allocations: 67.95 kB / 426.9 MB, free: 3.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000177/0.1149, allocations: 108.8 kB / 427 MB, free: 3.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003469/0.1152, allocations: 202.5 kB / 427.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.1152, allocations: 0 / 427.2 MB, free: 3.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004404/0.1157, allocations: 247.3 kB / 427.4 MB, free: 3.266 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.1157, allocations: 4 kB / 427.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1157, allocations: 0 / 427.4 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.1157, allocations: 4 kB / 427.4 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002655/0.116, allocations: 63.84 kB / 427.5 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.116, allocations: 3.938 kB / 427.5 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001153/0.1161, allocations: 15.95 kB / 427.5 MB, free: 3.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.934e-05/0.1161, allocations: 11.98 kB / 427.5 MB, free: 3.164 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.0001391/0.1162, allocations: 146.4 kB / 427.6 MB, free: 3.012 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.452e-05/0.1163, allocations: 19.91 kB / 427.7 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.66e-05/0.1164, allocations: 25.88 kB / 427.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.1164, allocations: 0 / 427.7 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.1164, allocations: 4 kB / 427.7 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.701e-06/0.1164, allocations: 3.984 kB / 427.7 MB, free: 2.957 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008449/0.1172, allocations: 0.5826 MB / 428.3 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.188e-06/0.1172, allocations: 3.984 kB / 428.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002801/0.1175, allocations: 59.97 kB / 428.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1175, allocations: 0 / 428.3 MB, free: 2.246 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.1175, allocations: 8 kB / 428.4 MB, free: 2.238 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.431e-06/0.1175, allocations: 7.875 kB / 428.4 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.1175, allocations: 4 kB / 428.4 MB, free: 2.227 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006579/0.1182, allocations: 493.1 kB / 428.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.843e-05/0.1183, allocations: 101 kB / 428.9 MB, free: 1.602 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.403e-05/0.1183, allocations: 11.98 kB / 429 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001718/0.1185, allocations: 15.94 kB / 429 MB, free: 1.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.558e-05/0.1185, allocations: 19.91 kB / 429 MB, free: 1.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.553e-05/0.1186, allocations: 8 kB / 429 MB, free: 1.547 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001013/0.1187, allocations: 132.3 kB / 429.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1187, allocations: 0 / 429.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003302/0.119, allocations: 48 kB / 429.2 MB, free: 1.371 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.0009585/0.1199, allocations: 1.037 MB / 430.2 MB, free: 304 kB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004001/0.1203, allocations: 176.2 kB / 430.4 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1203, allocations: 0 / 430.4 MB, free: 128 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001762/0.1205, allocations: 87.84 kB / 430.5 MB, free: 40 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004815/0.121, allocations: 44.28 kB / 430.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00325/0.1243, allocations: 2.64 MB / 433.2 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.1246, allocations: 0.7556 MB / 433.9 MB, free: 12.45 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 9.003e-05/0.1247, allocations: 21.94 kB / 433.9 MB, free: 12.42 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.1248, allocations: 71.41 kB / 434 MB, free: 12.35 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1248, allocations: 4 kB / 434 MB, free: 12.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02233/0.1472, allocations: 4.463 MB / 438.5 MB, free: 8.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.124/8.271, allocations: 19.92 kB / 438.5 MB, free: 8.004 MB / 366.1 MB " [Timeout remaining time 652] (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] "" Variables in the reference:time,damper1.s_rel,damper1.v_rel,mass1.s,mass1.v Variables in the result:damper1.d,damper1.f,damper1.flange_a.f,damper1.flange_a.s,damper1.flange_b.f,damper1.flange_b.s,damper1.lossPower,damper1.s_nominal,damper1.s_rel,damper1.stateSelect,damper1.useHeatPort,damper1.v_rel,der(damper1.s_rel),der(damper1.v_rel),der(der(mass2.flange_b.s)),der(mass1.s),der(mass1.v),der(mass2.flange_b.s),der(mass2.s),der(mass2.v),fixed1.flange.f,fixed1.flange.s,fixed1.s0,fixed2.flange.f,fixed2.flange.s,fixed2.s0,force1.f,force1.flange.f,force1.flange.s,force1.s,force1.useSupport,force2.f,force2.flange.f,force2.flange.s,force2.s,force2.useSupport,mass1.L,mass1.a,mass1.flange_a.f,mass1.flange_a.s,mass1.flange_b.f,mass1.flange_b.s,mass1.m,mass1.s,mass1.stateSelect,mass1.v,mass2.L,mass2.a,mass2.flange_a.f,mass2.flange_a.s,mass2.flange_b.f,mass2.flange_b.s,mass2.m,mass2.s,mass2.stateSelect,mass2.v,sine1.amplitude,sine1.f,sine1.offset,sine1.phase,sine1.startTime,sine1.y,sine2.amplitude,sine2.f,sine2.offset,sine2.phase,sine2.startTime,sine2.y,spring1.c,spring1.f,spring1.flange_a.f,spring1.flange_a.s,spring1.flange_b.f,spring1.flange_b.s,spring1.s_rel,spring1.s_rel0,spring2.c,spring2.f,spring2.flange_a.f,spring2.flange_a.s,spring2.flange_b.f,spring2.flange_b.s,spring2.s_rel,spring2.s_rel0,time [Calling sys.exit(0), Time elapsed: 10.777411576011218]