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.001224/0.001224, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001245/0.001245, allocations: 190.7 kB / 24.49 MB, free: 3.941 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.364/1.364, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.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.001454/0.001454, allocations: 47.92 kB / 371.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2364, allocations: 52.18 MB / 423.4 MB, free: 14.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002989/0.2394, allocations: 1.725 MB / 425.1 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009658/0.2403, allocations: 0.4987 MB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.343e-05/0.2404, allocations: 7.938 kB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.524e-05/0.2405, allocations: 15.8 kB / 425.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001425/0.2406, allocations: 11.88 kB / 425.6 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004012/0.241, allocations: 111.6 kB / 425.7 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001481/0.2412, allocations: 83.77 kB / 425.8 MB, free: 11.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.2413, allocations: 23.41 kB / 425.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.396e-05/0.2414, allocations: 47.78 kB / 425.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.432e-05/0.2414, allocations: 43.77 kB / 425.9 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/0.2415, allocations: 8 kB / 425.9 MB, free: 11.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.981e-05/0.2415, allocations: 8 kB / 425.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.446e-05/0.2416, allocations: 27.91 kB / 426 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.731e-05/0.2416, allocations: 35.73 kB / 426 MB, free: 11.71 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.2418, allocations: 115.4 kB / 426.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2418, allocations: 4 kB / 426.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2418, allocations: 0 / 426.1 MB, free: 11.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.2418, allocations: 0 / 426.1 MB, free: 11.59 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.0005498/0.2424, allocations: 356.8 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.2424, allocations: 8.031 kB / 426.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.666e-05/0.2424, allocations: 4.188 kB / 426.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.13e-05/0.2424, allocations: 46.67 kB / 426.5 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.833e-05/0.2425, allocations: 16.84 kB / 426.5 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002876/0.2428, allocations: 162.3 kB / 426.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.2428, allocations: 8.375 kB / 426.7 MB, free: 10.94 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.194e-05/0.2428, allocations: 16.38 kB / 426.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005219/0.2433, allocations: 276.9 kB / 427 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.124e-05/0.2434, allocations: 3.984 kB / 427 MB, free: 10.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.2434, allocations: 7.938 kB / 427 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.2434, allocations: 4 kB / 427 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001418/0.2435, allocations: 43.97 kB / 427.1 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003952/0.2439, allocations: 257.6 kB / 427.3 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002574/0.2442, allocations: 127.9 kB / 427.4 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.2443, allocations: 70.61 kB / 427.5 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.615e-05/0.2443, allocations: 4 kB / 427.5 MB, free: 10.04 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.251e-05/0.2444, allocations: 38.5 kB / 427.5 MB, free: 9.996 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.363e-06/0.2444, allocations: 4 kB / 427.5 MB, free: 9.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004452/0.2448, allocations: 177.8 kB / 427.7 MB, free: 9.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.781e-05/0.2449, allocations: 118.8 kB / 427.8 MB, free: 9.672 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001602/0.2451, allocations: 149.1 kB / 428 MB, free: 9.52 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.2451, allocations: 29.7 kB / 428 MB, free: 9.484 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.286e-05/0.2452, allocations: 100.2 kB / 428.1 MB, free: 9.383 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.998e-05/0.2452, allocations: 19.89 kB / 428.1 MB, free: 9.363 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.959e-05/0.2452, allocations: 37.67 kB / 428.2 MB, free: 9.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.2454, allocations: 326.8 kB / 428.5 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.774e-05/0.2455, allocations: 23.98 kB / 428.5 MB, free: 8.969 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.2456, allocations: 136 kB / 428.6 MB, free: 8.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.2459, allocations: 178.4 kB / 428.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2459, allocations: 0 / 428.8 MB, free: 8.559 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002995/0.2462, allocations: 173.7 kB / 429 MB, free: 8.383 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.764e-05/0.2462, allocations: 12.03 kB / 429 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.091e-05/0.2462, allocations: 4 kB / 429 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.227e-05/0.2462, allocations: 4 kB / 429 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001503/0.2464, allocations: 35.92 kB / 429 MB, free: 8.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.2464, allocations: 7.938 kB / 429 MB, free: 8.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.987e-05/0.2465, allocations: 19.88 kB / 429.1 MB, free: 8.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/0.2465, allocations: 12 kB / 429.1 MB, free: 8.289 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.0001305/0.2466, allocations: 129.8 kB / 429.2 MB, free: 8.152 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001993/0.2468, allocations: 113.6 kB / 429.3 MB, free: 8.035 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.95e-05/0.2469, allocations: 20.72 kB / 429.3 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2469, allocations: 4 kB / 429.3 MB, free: 8.012 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.2469, allocations: 11.86 kB / 429.3 MB, free: 8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.2469, allocations: 3.938 kB / 429.4 MB, free: 7.996 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.2471, allocations: 160.6 kB / 429.5 MB, free: 7.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.2471, allocations: 4 kB / 429.5 MB, free: 7.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001067/0.2472, allocations: 23.98 kB / 429.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.2472, allocations: 0 / 429.5 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.2472, allocations: 7.984 kB / 429.5 MB, free: 7.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.2472, allocations: 4 kB / 429.5 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.2472, allocations: 11.94 kB / 429.6 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003296/0.2475, allocations: 249.2 kB / 429.8 MB, free: 7.48 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.305e-05/0.2476, allocations: 31.83 kB / 429.8 MB, free: 7.449 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.853e-05/0.2476, allocations: 7.984 kB / 429.8 MB, free: 7.441 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.188e-05/0.2477, allocations: 4 kB / 429.8 MB, free: 7.438 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.632e-05/0.2478, allocations: 7.922 kB / 429.9 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.2478, allocations: 8 kB / 429.9 MB, free: 7.422 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.707e-05/0.2479, allocations: 119.1 kB / 430 MB, free: 7.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2479, allocations: 0 / 430 MB, free: 7.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002802/0.2481, allocations: 20 kB / 430 MB, free: 7.285 MB / 334.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.0007408/0.2489, allocations: 0.8499 MB / 430.8 MB, free: 6.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.2491, allocations: 100.8 kB / 430.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2491, allocations: 0 / 430.9 MB, free: 6.309 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.121e-05/0.2492, allocations: 15.92 kB / 431 MB, free: 6.293 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004471/0.2496, allocations: 75.98 kB / 431 MB, free: 6.219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.2516, allocations: 1.866 MB / 432.9 MB, free: 4.164 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.2517, allocations: 110.2 kB / 433 MB, free: 4.031 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.223e-05/0.2518, allocations: 9.438 kB / 433 MB, free: 4.016 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.388e-05/0.2519, allocations: 39.36 kB / 433.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.2519, allocations: 0 / 433.1 MB, free: 3.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02416/0.276, allocations: 3.038 MB / 436.1 MB, free: 1.105 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.61/10.89, allocations: 4.062 kB / 436.1 MB, free: 1.102 MB / 334.1 MB " [Timeout remaining time 649] (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: 13.279605153948069]