Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001504/0.001504, allocations: 117.9 kB / 17.84 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00177/0.00177, allocations: 199.5 kB / 18.79 MB, free: 4.156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.523/1.523, allocations: 230.4 MB / 250 MB, free: 9.059 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 71.83 kB / 366.9 MB, free: 7.547 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2876, allocations: 53.3 MB / 420.2 MB, free: 8.281 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003037/0.2907, allocations: 1.604 MB / 421.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001061/0.2917, allocations: 0.5337 MB / 422.3 MB, free: 6.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.662e-05/0.2918, allocations: 4 kB / 422.3 MB, free: 6.133 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.22e-05/0.2919, allocations: 11.86 kB / 422.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.292, allocations: 3.938 kB / 422.3 MB, free: 6.117 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000329/0.2923, allocations: 67.31 kB / 422.4 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001139/0.2924, allocations: 47.8 kB / 422.4 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001015/0.2925, allocations: 16.16 kB / 422.5 MB, free: 5.992 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001198/0.2927, allocations: 31.86 kB / 422.5 MB, free: 5.961 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.961e-05/0.2927, allocations: 19.86 kB / 422.5 MB, free: 5.941 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.2927, allocations: 4 kB / 422.5 MB, free: 5.938 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.326e-05/0.2928, allocations: 12 kB / 422.5 MB, free: 5.926 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.831e-05/0.2928, allocations: 19.91 kB / 422.5 MB, free: 5.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.499e-05/0.2929, allocations: 19.81 kB / 422.6 MB, free: 5.887 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.293, allocations: 62.69 kB / 422.6 MB, free: 5.828 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.293, allocations: 4 kB / 422.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.293, allocations: 0 / 422.6 MB, free: 5.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.293, allocations: 0 / 422.6 MB, free: 5.824 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005015/0.2935, allocations: 385.9 kB / 423 MB, free: 5.402 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2936, allocations: 12.03 kB / 423 MB, free: 5.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.289e-05/0.2936, allocations: 46.67 kB / 423.1 MB, free: 5.336 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.2938, allocations: 16.83 kB / 423.1 MB, free: 5.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002721/0.294, allocations: 208.8 kB / 423.3 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.788e-06/0.294, allocations: 4.125 kB / 423.3 MB, free: 5.074 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.453e-05/0.2941, allocations: 4 kB / 423.3 MB, free: 5.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002694/0.2943, allocations: 117.9 kB / 423.4 MB, free: 4.934 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.2943, allocations: 4 kB / 423.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.556e-06/0.2943, allocations: 0 / 423.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.2943, allocations: 0 / 423.4 MB, free: 4.93 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.061e-05/0.2944, allocations: 23.92 kB / 423.4 MB, free: 4.906 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003368/0.2948, allocations: 278.5 kB / 423.7 MB, free: 4.578 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001211/0.2949, allocations: 71.86 kB / 423.8 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.579e-05/0.295, allocations: 30.56 kB / 423.8 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.046e-05/0.295, allocations: 4 kB / 423.8 MB, free: 4.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.918e-05/0.295, allocations: 42.5 kB / 423.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.295, allocations: 0 / 423.8 MB, free: 4.387 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002713/0.2953, allocations: 81.55 kB / 423.9 MB, free: 4.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.971e-05/0.2954, allocations: 110.8 kB / 424 MB, free: 4.168 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001431/0.2955, allocations: 154.2 kB / 424.2 MB, free: 4.012 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.2955, allocations: 29.7 kB / 424.2 MB, free: 3.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.2956, allocations: 92.12 kB / 424.3 MB, free: 3.883 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.2956, allocations: 4 kB / 424.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.2956, allocations: 17.67 kB / 424.3 MB, free: 3.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001363/0.2958, allocations: 318.8 kB / 424.6 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.252e-05/0.2958, allocations: 15.94 kB / 424.7 MB, free: 3.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.388e-05/0.2959, allocations: 35.42 kB / 424.7 MB, free: 3.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.721e-05/0.296, allocations: 47.36 kB / 424.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.296, allocations: 0 / 424.7 MB, free: 3.414 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001407/0.2961, allocations: 69.61 kB / 424.8 MB, free: 3.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.385e-05/0.2961, allocations: 4 kB / 424.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.772e-06/0.2961, allocations: 4 kB / 424.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.2961, allocations: 0 / 424.8 MB, free: 3.332 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.909e-05/0.2962, allocations: 11.98 kB / 424.8 MB, free: 3.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.39e-05/0.2962, allocations: 7.875 kB / 424.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.035e-05/0.2963, allocations: 4 kB / 424.8 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.2963, allocations: 0 / 424.8 MB, free: 3.309 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 9.601e-05/0.2964, allocations: 122 kB / 425 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.271e-05/0.2965, allocations: 57.53 kB / 425 MB, free: 3.117 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.243e-05/0.2965, allocations: 11.88 kB / 425 MB, free: 3.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.1e-06/0.2965, allocations: 3.984 kB / 425 MB, free: 3.094 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.005e-06/0.2965, allocations: 7.938 kB / 425 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2965, allocations: 0 / 425 MB, free: 3.086 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002009/0.2967, allocations: 173.6 kB / 425.2 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.2967, allocations: 7.938 kB / 425.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.132e-05/0.2968, allocations: 12.08 kB / 425.2 MB, free: 2.848 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.2968, allocations: 4.047 kB / 425.2 MB, free: 2.844 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.2968, allocations: 8 kB / 425.2 MB, free: 2.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.717e-06/0.2968, allocations: 4 kB / 425.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.2968, allocations: 3.938 kB / 425.2 MB, free: 2.828 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001896/0.297, allocations: 173.1 kB / 425.4 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.455e-05/0.2971, allocations: 93.05 kB / 425.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.664e-05/0.2971, allocations: 8 kB / 425.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.543e-05/0.2971, allocations: 0 / 425.5 MB, free: 2.52 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.827e-05/0.2972, allocations: 11.92 kB / 425.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.2972, allocations: 0 / 425.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.112e-05/0.2973, allocations: 111.3 kB / 425.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2973, allocations: 0 / 425.6 MB, free: 2.398 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002228/0.2975, allocations: 4 kB / 425.6 MB, free: 2.395 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0004997/0.298, allocations: 0.7141 MB / 426.3 MB, free: 1.648 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001538/0.2981, allocations: 27.92 kB / 426.4 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.037e-06/0.2981, allocations: 8.188 kB / 426.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.866e-05/0.2982, allocations: 11.98 kB / 426.4 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003513/0.2985, allocations: 27.95 kB / 426.4 MB, free: 1.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001398/0.2999, allocations: 1.402 MB / 427.8 MB, free: 68 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003204/0.3003, allocations: 0.6885 MB / 428.5 MB, free: 15.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.663e-05/0.3003, allocations: 11.98 kB / 428.5 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.248e-05/0.3003, allocations: 19.44 kB / 428.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.3003, allocations: 0 / 428.5 MB, free: 15.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.3244, allocations: 1.734 MB / 430.3 MB, free: 13.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.785/8.109, allocations: 11.86 kB / 430.3 MB, free: 13.73 MB / 350.1 MB (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 8e-05 Modelica_4_1_0-beta_om_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1)