Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.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.00148/0.00148, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001667/0.001667, allocations: 211.8 kB / 24.51 MB, free: 3.918 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.352/1.352, allocations: 230.6 MB / 258.3 MB, free: 7.773 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.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001477/0.001477, allocations: 47.92 kB / 378.5 MB, free: 2.934 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2232/0.2247, allocations: 53.36 MB / 431.9 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002978/0.2277, allocations: 1.745 MB / 433.6 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001043/0.2287, allocations: 0.5726 MB / 434.2 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.559e-05/0.2288, allocations: 7.938 kB / 434.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.822e-05/0.2289, allocations: 11.86 kB / 434.2 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001229/0.229, allocations: 7.875 kB / 434.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004119/0.2294, allocations: 115.6 kB / 434.3 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001478/0.2295, allocations: 91.7 kB / 434.4 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.2297, allocations: 27.72 kB / 434.4 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001444/0.2298, allocations: 47.86 kB / 434.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.514e-05/0.2299, allocations: 43.77 kB / 434.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.122e-05/0.2299, allocations: 11.94 kB / 434.5 MB, free: 3.926 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.232e-05/0.2299, allocations: 8 kB / 434.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.109e-05/0.23, allocations: 31.91 kB / 434.6 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.411e-05/0.2301, allocations: 35.73 kB / 434.6 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001967/0.2302, allocations: 119.4 kB / 434.7 MB, free: 3.734 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2303, allocations: 4 kB / 434.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2303, allocations: 0 / 434.7 MB, free: 3.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.2303, allocations: 0 / 434.7 MB, free: 3.73 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.0005541/0.2308, allocations: 357.7 kB / 435.1 MB, free: 3.352 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.2308, allocations: 12.03 kB / 435.1 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.148e-05/0.2309, allocations: 192 / 435.1 MB, free: 3.34 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.923e-05/0.2309, allocations: 46.73 kB / 435.1 MB, free: 3.285 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001434/0.2311, allocations: 28.83 kB / 435.2 MB, free: 3.258 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002714/0.2313, allocations: 162.2 kB / 435.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.992e-05/0.2314, allocations: 12.36 kB / 435.3 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.265e-05/0.2314, allocations: 12.38 kB / 435.4 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005128/0.2319, allocations: 263.2 kB / 435.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.072e-05/0.2319, allocations: 4 kB / 435.6 MB, free: 2.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.2319, allocations: 4 kB / 435.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.499e-06/0.2319, allocations: 0 / 435.6 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.2321, allocations: 51.91 kB / 435.7 MB, free: 2.715 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003447/0.2324, allocations: 265.6 kB / 435.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000244/0.2326, allocations: 127.9 kB / 436.1 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001269/0.2328, allocations: 74.53 kB / 436.1 MB, free: 2.172 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.2328, allocations: 8 kB / 436.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.423e-05/0.2329, allocations: 30.56 kB / 436.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.193e-06/0.2329, allocations: 0 / 436.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004192/0.2333, allocations: 185.6 kB / 436.3 MB, free: 1.938 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.112e-05/0.2334, allocations: 115 kB / 436.5 MB, free: 1.801 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000149/0.2335, allocations: 158.8 kB / 436.6 MB, free: 1.637 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.97e-05/0.2336, allocations: 29.83 kB / 436.6 MB, free: 1.602 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.412e-05/0.2336, allocations: 104 kB / 436.7 MB, free: 1.496 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.914e-05/0.2336, allocations: 23.89 kB / 436.8 MB, free: 1.473 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.035e-05/0.2337, allocations: 37.7 kB / 436.8 MB, free: 1.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.2339, allocations: 330.8 kB / 437.1 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.998e-05/0.2339, allocations: 27.98 kB / 437.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000151/0.2341, allocations: 134.6 kB / 437.3 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.2343, allocations: 170.3 kB / 437.5 MB, free: 0.668 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2343, allocations: 4 kB / 437.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002974/0.2346, allocations: 185.7 kB / 437.6 MB, free: 488 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.2346, allocations: 4 kB / 437.6 MB, free: 484 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2346, allocations: 4 kB / 437.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.2346, allocations: 8 kB / 437.7 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001192/0.2348, allocations: 27.92 kB / 437.7 MB, free: 444 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.477e-05/0.2348, allocations: 11.92 kB / 437.7 MB, free: 432 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.276e-05/0.2349, allocations: 15.95 kB / 437.7 MB, free: 416 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.2349, allocations: 8 kB / 437.7 MB, free: 408 kB / 334.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.0001241/0.235, allocations: 140.3 kB / 437.9 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001884/0.2352, allocations: 113.6 kB / 438 MB, free: 140 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.93e-05/0.2352, allocations: 28.73 kB / 438 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.2352, allocations: 0 / 438 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.2353, allocations: 3.938 kB / 438 MB, free: 108 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.501e-06/0.2353, allocations: 4 kB / 438 MB, free: 104 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002325/0.2355, allocations: 160.6 kB / 438.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2355, allocations: 0 / 438.2 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.2356, allocations: 27.92 kB / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.2356, allocations: 0 / 438.2 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.845e-05/0.2356, allocations: 8 kB / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.2356, allocations: 0 / 438.2 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.2356, allocations: 7.938 kB / 438.2 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003194/0.2359, allocations: 251.8 kB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.072e-05/0.236, allocations: 35.81 kB / 438.5 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.601e-05/0.236, allocations: 4 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.4e-05/0.2361, allocations: 7.938 kB / 438.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.645e-05/0.2362, allocations: 7.938 kB / 438.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.2362, allocations: 7.984 kB / 438.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.026e-05/0.2363, allocations: 119.4 kB / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2363, allocations: 0 / 438.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002762/0.2365, allocations: 20 kB / 438.6 MB, free: 15.39 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.0008094/0.2373, allocations: 0.8428 MB / 439.5 MB, free: 14.52 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000258/0.2376, allocations: 104.8 kB / 439.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2376, allocations: 0 / 439.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.715e-05/0.2376, allocations: 4 kB / 439.6 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005152/0.2382, allocations: 91.22 kB / 439.7 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002105/0.2403, allocations: 1.876 MB / 441.6 MB, free: 12.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001031/0.2404, allocations: 102.3 kB / 441.7 MB, free: 12.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.924e-05/0.2404, allocations: 13.42 kB / 441.7 MB, free: 12.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.958e-05/0.2405, allocations: 35.52 kB / 441.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2405, allocations: 0 / 441.7 MB, free: 12.09 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02315/0.2636, allocations: 3.062 MB / 444.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.81, allocations: 10.39 kB / 444.8 MB, free: 9.191 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1_fmu --startTime=0 --stopTime=0.09 --stepSize=1.78998e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/UpSample1/UpSample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.continuous,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: 13.197306051966734]