Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001597/0.001597, allocations: 118.8 kB / 17.78 MB, free: 5.281 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001537/0.001537, allocations: 197.2 kB / 18.73 MB, free: 4.336 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.543/1.543, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001555/0.001555, allocations: 59.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3987/0.4003, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.002827/0.4031, allocations: 1.761 MB / 410.5 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.4042, allocations: 0.6038 MB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.742e-05/0.4043, allocations: 7.938 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.127e-05/0.4044, allocations: 7.875 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.4045, allocations: 19.86 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004357/0.405, allocations: 103.2 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001353/0.4051, allocations: 91.7 kB / 411.4 MB, free: 14.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.4053, allocations: 25.44 kB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.4054, allocations: 55.83 kB / 411.4 MB, free: 14.87 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.644e-05/0.4055, allocations: 47.72 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.181e-05/0.4055, allocations: 8 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.515e-05/0.4056, allocations: 11.98 kB / 411.5 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.499e-05/0.4056, allocations: 23.92 kB / 411.5 MB, free: 14.78 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.146e-05/0.4057, allocations: 51.67 kB / 411.6 MB, free: 14.73 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002145/0.4059, allocations: 122.3 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4059, allocations: 0 / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.4059, allocations: 0 / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.4059, allocations: 0 / 411.7 MB, free: 14.61 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.0005376/0.4065, allocations: 430.9 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.136e-05/0.4065, allocations: 8.031 kB / 412.1 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.696e-05/0.4066, allocations: 38.75 kB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001515/0.4067, allocations: 28.83 kB / 412.2 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.407, allocations: 232 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.4071, allocations: 12.38 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.702e-05/0.4071, allocations: 8.375 kB / 412.4 MB, free: 13.77 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004767/0.4076, allocations: 268.8 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.4076, allocations: 0 / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.4076, allocations: 4 kB / 412.7 MB, free: 13.49 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.4076, allocations: 4 kB / 412.7 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001409/0.4078, allocations: 55.84 kB / 412.8 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003483/0.4081, allocations: 306.5 kB / 413.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000218/0.4084, allocations: 131.7 kB / 413.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001278/0.4085, allocations: 82.61 kB / 413.3 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.309e-05/0.4085, allocations: 16.25 kB / 413.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.4086, allocations: 34.56 kB / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.4086, allocations: 0 / 413.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004082/0.409, allocations: 169.4 kB / 413.5 MB, free: 12.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.338e-05/0.4091, allocations: 118.9 kB / 413.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.4092, allocations: 154.8 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.223e-05/0.4092, allocations: 33.69 kB / 413.8 MB, free: 12.26 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.917e-05/0.4093, allocations: 96.09 kB / 413.9 MB, free: 12.16 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.836e-05/0.4093, allocations: 19.89 kB / 413.9 MB, free: 12.14 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.4094, allocations: 37.7 kB / 413.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001033/0.4095, allocations: 326.8 kB / 414.2 MB, free: 11.77 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.587e-05/0.4096, allocations: 23.98 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.4097, allocations: 138.1 kB / 414.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.41, allocations: 174.3 kB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.41, allocations: 4 kB / 414.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002722/0.4102, allocations: 177.6 kB / 414.8 MB, free: 11.16 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.4103, allocations: 4 kB / 414.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.634e-06/0.4103, allocations: 4 kB / 414.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.4103, allocations: 8 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001232/0.4104, allocations: 31.92 kB / 414.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.4105, allocations: 16.17 kB / 414.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.363e-05/0.4106, allocations: 11.95 kB / 414.8 MB, free: 11.08 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.4106, allocations: 12 kB / 414.8 MB, free: 11.07 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.0001154/0.4107, allocations: 148.4 kB / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.4109, allocations: 121.5 kB / 415.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.561e-05/0.4109, allocations: 20.7 kB / 415.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.921e-06/0.4109, allocations: 4 kB / 415.1 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.411, allocations: 7.875 kB / 415.1 MB, free: 10.76 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.411, allocations: 4 kB / 415.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000188/0.4112, allocations: 197.6 kB / 415.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4112, allocations: 0 / 415.3 MB, free: 10.51 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000107/0.4113, allocations: 23.98 kB / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.4113, allocations: 0 / 415.4 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.4113, allocations: 12 kB / 415.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.4113, allocations: 3.938 kB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.4113, allocations: 3.938 kB / 415.4 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002794/0.4116, allocations: 253 kB / 415.6 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.12e-05/0.4117, allocations: 104.9 kB / 415.7 MB, free: 10.08 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.41e-05/0.4117, allocations: 8 kB / 415.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.594e-05/0.4118, allocations: 7.984 kB / 415.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.123e-05/0.4119, allocations: 7.938 kB / 415.7 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.4119, allocations: 8 kB / 415.8 MB, free: 10.05 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.023e-05/0.412, allocations: 119.4 kB / 415.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.112e-06/0.412, allocations: 0 / 415.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002783/0.4123, allocations: 23.94 kB / 415.9 MB, free: 9.906 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.000668/0.4129, allocations: 0.8467 MB / 416.7 MB, free: 9.027 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002471/0.4132, allocations: 111.6 kB / 416.9 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.4132, allocations: 0 / 416.9 MB, free: 8.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.969e-05/0.4132, allocations: 11.98 kB / 416.9 MB, free: 8.91 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004543/0.4137, allocations: 84.22 kB / 416.9 MB, free: 8.828 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001774/0.4155, allocations: 1.872 MB / 418.8 MB, free: 6.762 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.4158, allocations: 0.7124 MB / 419.5 MB, free: 6.023 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.762e-05/0.4158, allocations: 21.36 kB / 419.6 MB, free: 6 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.884e-05/0.4159, allocations: 39.42 kB / 419.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.4159, allocations: 0 / 419.6 MB, free: 5.965 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01981/0.4357, allocations: 2.723 MB / 422.3 MB, free: 3.352 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.182/8.618, allocations: 7.672 kB / 422.3 MB, free: 3.348 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_UpSample1.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample1.y from file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv failed! Error: Could not read variable upSample2.y in file Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1_res.csv. Warning: Get data of variable upSample2.y from file Modelica_trunk_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