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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001572/0.001572, allocations: 112.3 kB / 17.06 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001905/0.001905, allocations: 198.8 kB / 18.01 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000989/0.000989, allocations: 43.94 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2627/0.2637, allocations: 49.44 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002786/0.2665, allocations: 1.746 MB / 402 MB, free: 7.055 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009647/0.2675, allocations: 0.5329 MB / 402.5 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.833e-05/0.2676, allocations: 3.938 kB / 402.5 MB, free: 6.523 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.4e-05/0.2677, allocations: 11.86 kB / 402.5 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001676/0.2679, allocations: 15.86 kB / 402.6 MB, free: 6.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004019/0.2683, allocations: 103.6 kB / 402.7 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001483/0.2684, allocations: 87.77 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001193/0.2686, allocations: 25.11 kB / 402.8 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.904e-05/0.2687, allocations: 47.77 kB / 402.8 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.45e-05/0.2688, allocations: 43.78 kB / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.397e-05/0.2688, allocations: 12 kB / 402.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.51e-05/0.2688, allocations: 4 kB / 402.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.751e-05/0.2689, allocations: 31.84 kB / 402.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 7.042e-05/0.269, allocations: 51.67 kB / 402.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00018/0.2691, allocations: 102.5 kB / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.2692, allocations: 0 / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2692, allocations: 0 / 403 MB, free: 6 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.878e-06/0.2692, allocations: 0 / 403 MB, free: 6 MB / 318.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.0006164/0.2698, allocations: 442.8 kB / 403.5 MB, free: 5.52 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.2698, allocations: 12.02 kB / 403.5 MB, free: 5.508 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.054e-05/0.2699, allocations: 42.69 kB / 403.5 MB, free: 5.457 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.216e-05/0.2699, allocations: 16.84 kB / 403.6 MB, free: 5.441 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.2702, allocations: 227.7 kB / 403.8 MB, free: 5.184 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.2703, allocations: 8.375 kB / 403.8 MB, free: 5.176 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.2703, allocations: 8.375 kB / 403.8 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005093/0.2708, allocations: 269.8 kB / 404.1 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.2708, allocations: 4 kB / 404.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.2708, allocations: 0 / 404.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.2709, allocations: 0 / 404.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001393/0.271, allocations: 55.89 kB / 404.1 MB, free: 4.824 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003368/0.2713, allocations: 314.4 kB / 404.4 MB, free: 4.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.2716, allocations: 131.9 kB / 404.5 MB, free: 4.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001282/0.2717, allocations: 74.62 kB / 404.6 MB, free: 4.223 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.649e-05/0.2717, allocations: 3.984 kB / 404.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.2718, allocations: 38.56 kB / 404.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.132e-06/0.2718, allocations: 0 / 404.7 MB, free: 4.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004001/0.2722, allocations: 177.6 kB / 404.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.195e-05/0.2723, allocations: 114.8 kB / 404.9 MB, free: 3.855 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000118/0.2724, allocations: 153.1 kB / 405.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.569e-05/0.2724, allocations: 29.83 kB / 405.1 MB, free: 3.664 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.599e-05/0.2725, allocations: 96.12 kB / 405.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.397e-05/0.2725, allocations: 15.91 kB / 405.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.2726, allocations: 37.7 kB / 405.3 MB, free: 3.508 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.2727, allocations: 326.8 kB / 405.6 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.708e-05/0.2727, allocations: 27.98 kB / 405.6 MB, free: 3.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000123/0.2729, allocations: 130.6 kB / 405.7 MB, free: 2.973 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001896/0.2731, allocations: 170.3 kB / 405.9 MB, free: 2.754 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.2731, allocations: 8.375 kB / 405.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003171/0.2734, allocations: 185.2 kB / 406.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.898e-05/0.2734, allocations: 8.469 kB / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.2735, allocations: 8 kB / 406.1 MB, free: 2.543 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.2735, allocations: 11.94 kB / 406.1 MB, free: 2.531 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.2736, allocations: 27.92 kB / 406.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.2737, allocations: 7.938 kB / 406.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.466e-05/0.2737, allocations: 19.89 kB / 406.2 MB, free: 2.477 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.2738, allocations: 8 kB / 406.2 MB, free: 2.469 MB / 318.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.0001096/0.2739, allocations: 137.7 kB / 406.3 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001864/0.2741, allocations: 113.6 kB / 406.4 MB, free: 2.207 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.416e-05/0.2741, allocations: 20.72 kB / 406.5 MB, free: 2.184 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/0.2741, allocations: 4 kB / 406.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/0.2741, allocations: 3.938 kB / 406.5 MB, free: 2.176 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2742, allocations: 3.984 kB / 406.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.2744, allocations: 201.5 kB / 406.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.2744, allocations: 0 / 406.7 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001246/0.2745, allocations: 27.92 kB / 406.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.2745, allocations: 0 / 406.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.2745, allocations: 7.984 kB / 406.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2745, allocations: 4 kB / 406.7 MB, free: 1.887 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.966e-06/0.2745, allocations: 3.938 kB / 406.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.2748, allocations: 253 kB / 407 MB, free: 1.613 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.421e-05/0.2749, allocations: 105 kB / 407.1 MB, free: 1.492 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.636e-05/0.275, allocations: 8 kB / 407.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.224e-05/0.275, allocations: 0 / 407.1 MB, free: 1.484 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.723e-05/0.2751, allocations: 11.94 kB / 407.1 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2751, allocations: 11.98 kB / 407.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.661e-05/0.2752, allocations: 115.1 kB / 407.2 MB, free: 1.348 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2752, allocations: 0 / 407.2 MB, free: 1.348 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000272/0.2755, allocations: 20 kB / 407.2 MB, free: 1.328 MB / 318.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.0006572/0.2761, allocations: 0.8491 MB / 408.1 MB, free: 460 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002279/0.2764, allocations: 112.8 kB / 408.2 MB, free: 348 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.2764, allocations: 96 / 408.2 MB, free: 348 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.946e-05/0.2764, allocations: 12 kB / 408.2 MB, free: 336 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.2769, allocations: 87.94 kB / 408.3 MB, free: 248 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00179/0.2787, allocations: 1.871 MB / 410.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003059/0.279, allocations: 0.7163 MB / 410.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.435e-05/0.2791, allocations: 13.42 kB / 410.9 MB, free: 13.42 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.783e-05/0.2791, allocations: 35.42 kB / 410.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2791, allocations: 0 / 410.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01802/0.2972, allocations: 2.733 MB / 413.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.486/7.783, allocations: 7.062 kB / 413.7 MB, free: 10.77 MB / 334.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv","/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) "Error: Could not read variable upSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample2.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! " Variables in the reference:time,upSample1.y,upSample2.y,add.y Variables in the result:time,add.u1,add.u2,add.y,sample1.y,sine.y