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.001497/0.001497, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001591/0.001591, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.366/1.366, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001435/0.001435, allocations: 47.92 kB / 378.6 MB, free: 3.145 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2245/0.226, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002994/0.229, allocations: 1.771 MB / 433.7 MB, free: 5.102 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001111/0.2301, allocations: 0.6193 MB / 434.3 MB, free: 4.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.976e-05/0.2302, allocations: 7.938 kB / 434.3 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.935e-05/0.2302, allocations: 7.875 kB / 434.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001279/0.2303, allocations: 23.8 kB / 434.4 MB, free: 4.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003962/0.2307, allocations: 94.7 kB / 434.5 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001595/0.2309, allocations: 99.69 kB / 434.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.231, allocations: 25.62 kB / 434.6 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001363/0.2311, allocations: 55.77 kB / 434.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.866e-05/0.2312, allocations: 51.66 kB / 434.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.947e-05/0.2312, allocations: 8 kB / 434.7 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.899e-05/0.2313, allocations: 8 kB / 434.7 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.481e-05/0.2313, allocations: 27.91 kB / 434.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.166e-05/0.2314, allocations: 51.67 kB / 434.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000192/0.2316, allocations: 119.8 kB / 434.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.2316, allocations: 0 / 434.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.083e-06/0.2316, allocations: 0 / 434.9 MB, free: 3.906 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.2316, allocations: 0 / 434.9 MB, free: 3.906 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.0005242/0.2321, allocations: 353.8 kB / 435.2 MB, free: 3.531 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.2321, allocations: 8.031 kB / 435.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.448e-05/0.2322, allocations: 4.188 kB / 435.3 MB, free: 3.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.2322, allocations: 42.75 kB / 435.3 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000136/0.2323, allocations: 24.83 kB / 435.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002793/0.2326, allocations: 170.2 kB / 435.5 MB, free: 3.254 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.31e-05/0.2326, allocations: 16.31 kB / 435.5 MB, free: 3.238 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.839e-05/0.2327, allocations: 12.38 kB / 435.5 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000487/0.2331, allocations: 267.2 kB / 435.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.957e-06/0.2332, allocations: 0 / 435.8 MB, free: 2.945 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.339e-05/0.2332, allocations: 4 kB / 435.8 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.2332, allocations: 4 kB / 435.8 MB, free: 2.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001376/0.2333, allocations: 51.91 kB / 435.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003437/0.2337, allocations: 281.5 kB / 436.1 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002241/0.2339, allocations: 131.9 kB / 436.2 MB, free: 2.406 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.234, allocations: 66.61 kB / 436.3 MB, free: 2.332 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.128e-05/0.234, allocations: 4.141 kB / 436.3 MB, free: 2.328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.234, allocations: 38.56 kB / 436.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.272e-06/0.234, allocations: 0 / 436.3 MB, free: 2.281 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004025/0.2345, allocations: 173.4 kB / 436.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.713e-05/0.2345, allocations: 123.1 kB / 436.6 MB, free: 1.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001412/0.2347, allocations: 162.1 kB / 436.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.773e-05/0.2347, allocations: 29.64 kB / 436.8 MB, free: 1.758 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.014e-05/0.2348, allocations: 96.09 kB / 436.9 MB, free: 1.66 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.285e-05/0.2348, allocations: 15.89 kB / 436.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.142e-05/0.2348, allocations: 41.7 kB / 437 MB, free: 1.598 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001338/0.235, allocations: 326.9 kB / 437.3 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.989e-05/0.235, allocations: 27.98 kB / 437.3 MB, free: 1.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001409/0.2352, allocations: 134.6 kB / 437.4 MB, free: 1.059 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002121/0.2354, allocations: 170.3 kB / 437.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.2354, allocations: 0 / 437.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003009/0.2357, allocations: 185.2 kB / 437.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.2357, allocations: 8 kB / 437.8 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.2357, allocations: 4 kB / 437.8 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.688e-05/0.2357, allocations: 4 kB / 437.8 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001215/0.2359, allocations: 31.92 kB / 437.8 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.316e-05/0.2359, allocations: 11.92 kB / 437.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.048e-05/0.2359, allocations: 8.469 kB / 437.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.442e-05/0.236, allocations: 19.94 kB / 437.9 MB, free: 0.5664 MB / 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.0001172/0.2361, allocations: 133.7 kB / 438 MB, free: 436 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001933/0.2363, allocations: 121.5 kB / 438.1 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.589e-05/0.2363, allocations: 20.7 kB / 438.2 MB, free: 288 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.2363, allocations: 4 kB / 438.2 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.2363, allocations: 3.938 kB / 438.2 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2363, allocations: 0 / 438.2 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001944/0.2365, allocations: 172.6 kB / 438.3 MB, free: 64 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-06/0.2365, allocations: 4 kB / 438.3 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001089/0.2366, allocations: 31.92 kB / 438.4 MB, free: 28 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.479e-06/0.2366, allocations: 4 kB / 438.4 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.029e-05/0.2367, allocations: 0 / 438.4 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.51e-06/0.2367, allocations: 8 kB / 438.4 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.2367, allocations: 3.938 kB / 438.4 MB, free: 12 kB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003453/0.237, allocations: 264.1 kB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.212e-05/0.2371, allocations: 27.88 kB / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.2371, allocations: 8 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.874e-05/0.2372, allocations: 0 / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.2372, allocations: 12.02 kB / 438.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.166e-05/0.2372, allocations: 11.94 kB / 438.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.943e-05/0.2373, allocations: 111.2 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2373, allocations: 0 / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002793/0.2376, allocations: 24 kB / 438.8 MB, free: 15.54 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.0007043/0.2383, allocations: 0.8354 MB / 439.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002496/0.2385, allocations: 107.8 kB / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2385, allocations: 0 / 439.8 MB, free: 14.57 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.909e-05/0.2386, allocations: 11.98 kB / 439.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004566/0.239, allocations: 90.47 kB / 439.9 MB, free: 14.47 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001939/0.241, allocations: 1.867 MB / 441.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003293/0.2413, allocations: 0.7278 MB / 442.5 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.792e-05/0.2414, allocations: 5.438 kB / 442.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.981e-05/0.2414, allocations: 39.42 kB / 442.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of SimCode: time 5.91e-07/0.2414, allocations: 0 / 442.5 MB, free: 11.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.2647, allocations: 3.025 MB / 445.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/10.82, allocations: 8.062 kB / 445.5 MB, free: 8.734 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.239625935035292]