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.001287/0.001287, allocations: 109.2 kB / 17.06 MB, free: 5.973 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.001205/0.001205, allocations: 196.1 kB / 18.01 MB, free: 5.051 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.419/1.419, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001534/0.001535, allocations: 51.92 kB / 350.8 MB, free: 3.734 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2708/0.2723, allocations: 49.44 MB / 400.3 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.UpSample1): time 0.003313/0.2757, allocations: 1.732 MB / 402 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.2769, allocations: 0.5375 MB / 402.5 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001052/0.277, allocations: 7.938 kB / 402.5 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.237e-05/0.2771, allocations: 7.875 kB / 402.5 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001513/0.2772, allocations: 11.81 kB / 402.5 MB, free: 6.492 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004253/0.2777, allocations: 101.8 kB / 402.6 MB, free: 6.395 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001559/0.2778, allocations: 87.75 kB / 402.7 MB, free: 6.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.278, allocations: 37.11 kB / 402.8 MB, free: 6.273 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001012/0.2781, allocations: 39.78 kB / 402.8 MB, free: 6.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.64e-05/0.2782, allocations: 47.77 kB / 402.9 MB, free: 6.188 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.566e-05/0.2782, allocations: 8 kB / 402.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.957e-05/0.2782, allocations: 8 kB / 402.9 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.531e-05/0.2783, allocations: 23.86 kB / 402.9 MB, free: 6.148 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.63e-05/0.2784, allocations: 51.67 kB / 402.9 MB, free: 6.098 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001903/0.2786, allocations: 106.5 kB / 403 MB, free: 5.996 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.2786, allocations: 8 kB / 403.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.2786, allocations: 0 / 403.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.2786, allocations: 0 / 403.1 MB, free: 5.988 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.0006331/0.2792, allocations: 434.8 kB / 403.5 MB, free: 5.516 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/0.2793, allocations: 12.03 kB / 403.5 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.337e-05/0.2794, allocations: 50.62 kB / 403.5 MB, free: 5.445 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.989e-05/0.2794, allocations: 12.84 kB / 403.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000331/0.2797, allocations: 223.8 kB / 403.8 MB, free: 5.18 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.687e-05/0.2798, allocations: 8.375 kB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.651e-05/0.2798, allocations: 12.38 kB / 403.8 MB, free: 5.16 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005287/0.2803, allocations: 261.8 kB / 404 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2804, allocations: 0 / 404 MB, free: 4.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.2804, allocations: 4 kB / 404.1 MB, free: 4.879 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.204e-06/0.2804, allocations: 7.938 kB / 404.1 MB, free: 4.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.2806, allocations: 51.97 kB / 404.1 MB, free: 4.82 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000434/0.281, allocations: 302.5 kB / 404.4 MB, free: 4.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002669/0.2813, allocations: 143.9 kB / 404.5 MB, free: 4.301 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001323/0.2814, allocations: 66.62 kB / 404.6 MB, free: 4.227 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.276e-05/0.2815, allocations: 8.125 kB / 404.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.079e-05/0.2815, allocations: 42.5 kB / 404.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of pre-optimization done (n=17): time 1.793e-06/0.2815, allocations: 0 / 404.7 MB, free: 4.168 MB / 318.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004445/0.2819, allocations: 173.5 kB / 404.8 MB, free: 3.992 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001097/0.2821, allocations: 118.8 kB / 404.9 MB, free: 3.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001451/0.2822, allocations: 149.1 kB / 405.1 MB, free: 3.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.598e-05/0.2823, allocations: 33.7 kB / 405.1 MB, free: 3.66 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.687e-05/0.2823, allocations: 92.12 kB / 405.2 MB, free: 3.566 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.127e-05/0.2824, allocations: 15.91 kB / 405.2 MB, free: 3.551 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.777e-05/0.2824, allocations: 41.64 kB / 405.3 MB, free: 3.504 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.2826, allocations: 330.9 kB / 405.6 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7e-05/0.2827, allocations: 23.98 kB / 405.6 MB, free: 3.148 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001598/0.2828, allocations: 132.1 kB / 405.7 MB, free: 2.969 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002349/0.2831, allocations: 174.3 kB / 405.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2831, allocations: 384 / 405.9 MB, free: 2.746 MB / 318.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003084/0.2834, allocations: 185.2 kB / 406.1 MB, free: 2.559 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.2834, allocations: 8 kB / 406.1 MB, free: 2.551 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/0.2834, allocations: 4 kB / 406.1 MB, free: 2.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.2835, allocations: 7.938 kB / 406.1 MB, free: 2.539 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001222/0.2836, allocations: 27.92 kB / 406.1 MB, free: 2.512 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.717e-05/0.2836, allocations: 11.94 kB / 406.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.618e-05/0.2837, allocations: 16.39 kB / 406.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.632e-05/0.2837, allocations: 15.98 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.0001401/0.2839, allocations: 137.7 kB / 406.3 MB, free: 2.324 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000233/0.2841, allocations: 121.5 kB / 406.4 MB, free: 2.199 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.852e-05/0.2842, allocations: 16.72 kB / 406.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2842, allocations: 0 / 406.5 MB, free: 2.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.486e-06/0.2842, allocations: 7.938 kB / 406.5 MB, free: 2.172 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.488e-06/0.2842, allocations: 3.984 kB / 406.5 MB, free: 2.168 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002318/0.2844, allocations: 201.5 kB / 406.7 MB, free: 1.922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2845, allocations: 4 kB / 406.7 MB, free: 1.918 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.2846, allocations: 27.98 kB / 406.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2846, allocations: 0 / 406.7 MB, free: 1.891 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.2846, allocations: 7.984 kB / 406.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.2846, allocations: 0 / 406.7 MB, free: 1.883 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.2846, allocations: 3.938 kB / 406.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003402/0.285, allocations: 253 kB / 407 MB, free: 1.609 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001043/0.2851, allocations: 105 kB / 407.1 MB, free: 1.488 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.657e-05/0.2851, allocations: 8 kB / 407.1 MB, free: 1.48 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.516e-05/0.2852, allocations: 8 kB / 407.1 MB, free: 1.473 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.2852, allocations: 3.938 kB / 407.1 MB, free: 1.469 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.2853, allocations: 7.984 kB / 407.1 MB, free: 1.461 MB / 318.1 MB Notification: Performance of sorting global known variables: time 9.7e-05/0.2854, allocations: 119.1 kB / 407.2 MB, free: 1.344 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2854, allocations: 0 / 407.2 MB, free: 1.344 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000287/0.2857, allocations: 20 kB / 407.2 MB, free: 1.324 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.0009025/0.2866, allocations: 0.8566 MB / 408.1 MB, free: 448 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003023/0.2869, allocations: 103.8 kB / 408.2 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.2869, allocations: 96 / 408.2 MB, free: 344 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.884e-05/0.287, allocations: 19.88 kB / 408.2 MB, free: 324 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/0.2875, allocations: 75.95 kB / 408.3 MB, free: 248 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002317/0.2898, allocations: 1.868 MB / 410.1 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004359/0.2903, allocations: 0.728 MB / 410.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.741e-05/0.2903, allocations: 9.422 kB / 410.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.238e-05/0.2904, allocations: 35.42 kB / 410.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of SimCode: time 7.11e-07/0.2904, allocations: 0 / 410.9 MB, free: 13.38 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02636/0.3168, allocations: 2.729 MB / 413.6 MB, free: 10.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.886/8.203, allocations: 7.438 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