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.00171/0.001711, allocations: 122.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001978/0.001978, allocations: 202 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.565/1.565, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 56.14 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2995, allocations: 50.56 MB / 408.8 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003145/0.3027, allocations: 1.75 MB / 410.5 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001188/0.3039, allocations: 0.5999 MB / 411.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.304, allocations: 7.938 kB / 411.1 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.163e-05/0.3041, allocations: 7.875 kB / 411.1 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000135/0.3042, allocations: 15.81 kB / 411.2 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.3047, allocations: 99.73 kB / 411.3 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001598/0.3048, allocations: 91.7 kB / 411.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001316/0.305, allocations: 29.44 kB / 411.4 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.3051, allocations: 59.77 kB / 411.4 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.195e-05/0.3052, allocations: 43.72 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.107e-05/0.3053, allocations: 4 kB / 411.5 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.033e-05/0.3053, allocations: 16 kB / 411.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.765e-05/0.3054, allocations: 23.91 kB / 411.5 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.628e-05/0.3055, allocations: 51.67 kB / 411.6 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002173/0.3057, allocations: 122.4 kB / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3057, allocations: 0 / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3057, allocations: 0 / 411.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.29e-06/0.3057, allocations: 0 / 411.7 MB, free: 14.72 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.0006687/0.3064, allocations: 426.9 kB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.613e-05/0.3064, allocations: 15.97 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.236e-05/0.3065, allocations: 38.73 kB / 412.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.3067, allocations: 24.84 kB / 412.2 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003839/0.3071, allocations: 236 kB / 412.4 MB, free: 13.9 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.75e-05/0.3071, allocations: 8.375 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.11e-05/0.3071, allocations: 8.375 kB / 412.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000533/0.3077, allocations: 268.8 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.3077, allocations: 3.984 kB / 412.7 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.219e-05/0.3077, allocations: 4 kB / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.609e-06/0.3077, allocations: 0 / 412.7 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.3079, allocations: 55.91 kB / 412.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004466/0.3083, allocations: 314.4 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002632/0.3086, allocations: 135.9 kB / 413.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.3087, allocations: 78.61 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.148e-05/0.3088, allocations: 0 / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.3088, allocations: 34.56 kB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 9.82e-07/0.3088, allocations: 0 / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004656/0.3093, allocations: 185.8 kB / 413.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.299e-05/0.3094, allocations: 114.8 kB / 413.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001557/0.3095, allocations: 158.8 kB / 413.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.3096, allocations: 29.7 kB / 413.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.656e-05/0.3096, allocations: 92.09 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.804e-05/0.3097, allocations: 19.89 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.671e-05/0.3097, allocations: 41.83 kB / 413.9 MB, free: 12.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001533/0.3099, allocations: 330.8 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.807e-05/0.31, allocations: 23.98 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000158/0.3101, allocations: 134.2 kB / 414.4 MB, free: 11.67 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002279/0.3104, allocations: 170.7 kB / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3104, allocations: 0 / 414.6 MB, free: 11.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003004/0.3107, allocations: 185.2 kB / 414.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3107, allocations: 8 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.3107, allocations: 7.938 kB / 414.8 MB, free: 11.25 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.3108, allocations: 4 kB / 414.8 MB, free: 11.24 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001247/0.3109, allocations: 27.92 kB / 414.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.3109, allocations: 16.45 kB / 414.8 MB, free: 11.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.519e-05/0.311, allocations: 15.95 kB / 414.8 MB, free: 11.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.311, allocations: 8 kB / 414.8 MB, free: 11.18 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.0001329/0.3112, allocations: 137.7 kB / 415 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.3114, allocations: 117.5 kB / 415.1 MB, free: 10.91 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.624e-05/0.3114, allocations: 24.7 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.476e-05/0.3114, allocations: 0 / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.3115, allocations: 11.88 kB / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.3115, allocations: 0 / 415.1 MB, free: 10.87 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002237/0.3117, allocations: 197.6 kB / 415.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.3117, allocations: 0 / 415.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.3118, allocations: 31.92 kB / 415.4 MB, free: 10.6 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.3118, allocations: 4 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.3119, allocations: 0 / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3119, allocations: 0 / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.642e-06/0.3119, allocations: 7.938 kB / 415.4 MB, free: 10.59 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.3122, allocations: 261 kB / 415.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.96e-05/0.3123, allocations: 104.9 kB / 415.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.527e-05/0.3124, allocations: 4 kB / 415.7 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.815e-05/0.3125, allocations: 19.97 kB / 415.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.431e-05/0.3125, allocations: 3.938 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.739e-06/0.3125, allocations: 4 kB / 415.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.665e-05/0.3126, allocations: 123.4 kB / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.3126, allocations: 0 / 415.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002782/0.3129, allocations: 24 kB / 415.9 MB, free: 10.01 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.0008074/0.3137, allocations: 0.835 MB / 416.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002611/0.314, allocations: 111.9 kB / 416.8 MB, free: 9.035 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.314, allocations: 3.938 kB / 416.8 MB, free: 9.031 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.936e-05/0.3141, allocations: 11.98 kB / 416.9 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004912/0.3146, allocations: 90.03 kB / 416.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/0.3167, allocations: 1.86 MB / 418.8 MB, free: 6.883 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/0.3172, allocations: 0.7202 MB / 419.5 MB, free: 6.137 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.9e-05/0.3172, allocations: 13.36 kB / 419.5 MB, free: 6.121 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.813e-05/0.3173, allocations: 35.64 kB / 419.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3173, allocations: 0 / 419.6 MB, free: 6.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02975/0.347, allocations: 2.746 MB / 422.3 MB, free: 3.457 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.408/8.755, allocations: 4.688 kB / 422.3 MB, free: 3.453 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.1.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