Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.00125/0.00125, allocations: 112.6 kB / 18.49 MB, free: 4.562 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.001232/0.001232, allocations: 193 kB / 21.43 MB, free: 1.633 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.368/1.368, allocations: 225.6 MB / 249.8 MB, free: 3.711 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.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 48.06 kB / 366.4 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09251/0.09405, allocations: 52.14 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003258/0.09731, allocations: 1.751 MB / 420.2 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.09836, allocations: 0.5453 MB / 420.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001046/0.09847, allocations: 3.938 kB / 420.8 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 5.582e-05/0.09852, allocations: 15.86 kB / 420.8 MB, free: 10.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001481/0.09867, allocations: 11.81 kB / 420.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004285/0.0991, allocations: 98.45 kB / 420.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001794/0.09928, allocations: 91.75 kB / 421 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.09939, allocations: 25.05 kB / 421 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001045/0.09949, allocations: 51.78 kB / 421.1 MB, free: 9.996 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.439e-05/0.09958, allocations: 43.77 kB / 421.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.292e-05/0.0996, allocations: 8 kB / 421.1 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.788e-05/0.09962, allocations: 8 kB / 421.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.118e-05/0.09968, allocations: 23.92 kB / 421.2 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.169e-05/0.09974, allocations: 51.66 kB / 421.2 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001827/0.09992, allocations: 111.4 kB / 421.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.09993, allocations: 0 / 421.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.09993, allocations: 0 / 421.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.09993, allocations: 0 / 421.3 MB, free: 9.754 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0006067/0.1005, allocations: 438.7 kB / 421.7 MB, free: 9.277 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.1006, allocations: 12.03 kB / 421.8 MB, free: 9.266 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.791e-05/0.1006, allocations: 8.172 kB / 421.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.674e-05/0.1006, allocations: 34.75 kB / 421.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.091e-05/0.1007, allocations: 16.84 kB / 421.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.101, allocations: 224.1 kB / 422 MB, free: 8.941 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.673e-05/0.101, allocations: 8.375 kB / 422 MB, free: 8.934 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.997e-05/0.101, allocations: 8.375 kB / 422.1 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005059/0.1015, allocations: 275.2 kB / 422.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.1016, allocations: 0 / 422.3 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.298e-05/0.1016, allocations: 4 kB / 422.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.1016, allocations: 4 kB / 422.3 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001477/0.1017, allocations: 51.84 kB / 422.4 MB, free: 8.578 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003878/0.1021, allocations: 310.5 kB / 422.7 MB, free: 8.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002466/0.1024, allocations: 123.9 kB / 422.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001385/0.1025, allocations: 74.59 kB / 422.9 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.1025, allocations: 7.984 kB / 422.9 MB, free: 7.98 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.118e-05/0.1026, allocations: 38.5 kB / 422.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.1026, allocations: 0 / 422.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004283/0.103, allocations: 173.4 kB / 423.1 MB, free: 7.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.754e-05/0.1031, allocations: 119.1 kB / 423.2 MB, free: 7.617 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001385/0.1032, allocations: 157.5 kB / 423.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.069e-05/0.1032, allocations: 25.7 kB / 423.4 MB, free: 7.426 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.013e-05/0.1033, allocations: 92.14 kB / 423.5 MB, free: 7.332 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/0.1033, allocations: 19.89 kB / 423.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.55e-05/0.1034, allocations: 37.7 kB / 423.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.1035, allocations: 326.8 kB / 423.9 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.79e-05/0.1036, allocations: 31.98 kB / 423.9 MB, free: 6.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.1037, allocations: 130.5 kB / 424 MB, free: 6.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002252/0.104, allocations: 174.4 kB / 424.2 MB, free: 6.508 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.538e-06/0.104, allocations: 4 kB / 424.2 MB, free: 6.504 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003056/0.1043, allocations: 181.5 kB / 424.4 MB, free: 6.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.1043, allocations: 10.19 kB / 424.4 MB, free: 6.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.1043, allocations: 4 kB / 424.4 MB, free: 6.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.664e-05/0.1043, allocations: 4 kB / 424.4 MB, free: 6.305 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001205/0.1044, allocations: 31.92 kB / 424.4 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.277e-05/0.1044, allocations: 11.88 kB / 424.4 MB, free: 6.262 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.492e-05/0.1045, allocations: 19.89 kB / 424.4 MB, free: 6.242 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.533e-05/0.1046, allocations: 8 kB / 424.5 MB, free: 6.234 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 8 ($CLKPRE.upSample2.b_super,upSample2.b_super,$CLKPRE.upSample1.b_super,upSample1.b_super,$CLKPRE.upSample2.b,upSample2.b,$CLKPRE.upSample1.b,upSample1.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001167/0.1047, allocations: 142.3 kB / 424.6 MB, free: 6.086 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001971/0.1049, allocations: 121.9 kB / 424.7 MB, free: 5.961 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.83e-05/0.1049, allocations: 20.66 kB / 424.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.439e-06/0.1049, allocations: 4 kB / 424.7 MB, free: 5.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.1049, allocations: 3.938 kB / 424.7 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.1049, allocations: 0 / 424.7 MB, free: 5.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002103/0.1051, allocations: 197.6 kB / 424.9 MB, free: 5.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.1051, allocations: 4 kB / 424.9 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001144/0.1053, allocations: 19.98 kB / 425 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.1053, allocations: 8 kB / 425 MB, free: 5.656 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.1053, allocations: 7.984 kB / 425 MB, free: 5.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.1053, allocations: 4 kB / 425 MB, free: 5.645 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.1053, allocations: 7.875 kB / 425 MB, free: 5.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003108/0.1056, allocations: 245 kB / 425.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.16e-05/0.1057, allocations: 113 kB / 425.3 MB, free: 5.246 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.572e-05/0.1057, allocations: 8 kB / 425.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.226e-05/0.1058, allocations: 0 / 425.3 MB, free: 5.238 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.42e-05/0.1058, allocations: 7.938 kB / 425.3 MB, free: 5.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.44e-05/0.1058, allocations: 8 kB / 425.4 MB, free: 5.223 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.853e-05/0.1059, allocations: 115.1 kB / 425.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1059, allocations: 0 / 425.5 MB, free: 5.109 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002771/0.1062, allocations: 23.98 kB / 425.5 MB, free: 5.086 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 17 * 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.0007917/0.107, allocations: 0.8505 MB / 426.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002635/0.1073, allocations: 110.6 kB / 426.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1073, allocations: 0 / 426.4 MB, free: 4.098 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.132e-05/0.1073, allocations: 8 kB / 426.5 MB, free: 4.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.1077, allocations: 76.23 kB / 426.5 MB, free: 4.016 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/0.1098, allocations: 1.869 MB / 428.4 MB, free: 1.957 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003619/0.1102, allocations: 0.7241 MB / 429.1 MB, free: 1.207 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.623e-05/0.1102, allocations: 13.42 kB / 429.1 MB, free: 1.191 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.548e-05/0.1103, allocations: 31.42 kB / 429.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1103, allocations: 0 / 429.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01975/0.1301, allocations: 2.789 MB / 432 MB, free: 14.51 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.897/8.027, allocations: 20.03 kB / 432 MB, free: 14.49 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78998e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,upSample1.y,upSample2.y,add.y Variables in the result:add.k1,add.k2,add.u1,add.u2,add.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(upSample1.b),previous(upSample1.b_super),previous(upSample2.b),previous(upSample2.b_super),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,upSample1.b,upSample1.b_super,upSample1.factor,upSample1.inferFactor,upSample1.u,upSample1.y,upSample2.b,upSample2.b_super,upSample2.factor,upSample2.inferFactor,upSample2.u,upSample2.y [Calling sys.exit(0), Time elapsed: 10.431401919980999]