Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_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.001647/0.001646, allocations: 122.8 kB / 17.79 MB, free: 5.25 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001903/0.001903, allocations: 197.2 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.518/1.518, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001953/0.001953, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3353, allocations: 50.54 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003203/0.3386, allocations: 1.6 MB / 410.4 MB, free: 15.92 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.3397, allocations: 0.526 MB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.25e-05/0.3398, allocations: 3.938 kB / 410.9 MB, free: 15.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.852e-05/0.3399, allocations: 3.938 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001496/0.34, allocations: 15.88 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003358/0.3404, allocations: 63.73 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000122/0.3405, allocations: 47.84 kB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.3406, allocations: 20.19 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.3408, allocations: 27.91 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.291e-05/0.3408, allocations: 23.86 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.3409, allocations: 0 / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.964e-05/0.3409, allocations: 8 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.448e-05/0.341, allocations: 15.92 kB / 411.1 MB, free: 15.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.568e-05/0.341, allocations: 27.75 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001643/0.3412, allocations: 58.69 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3412, allocations: 7.938 kB / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.3412, allocations: 0 / 411.2 MB, free: 15.07 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.821e-06/0.3412, allocations: 0 / 411.2 MB, free: 15.07 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.0005572/0.3418, allocations: 395 kB / 411.6 MB, free: 14.64 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3418, allocations: 12.03 kB / 411.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.248e-05/0.3419, allocations: 30.75 kB / 411.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001543/0.342, allocations: 20.88 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002816/0.3423, allocations: 200.1 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.475e-05/0.3423, allocations: 8.125 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.146e-05/0.3424, allocations: 8 kB / 411.9 MB, free: 14.32 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002759/0.3426, allocations: 109.9 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.026e-06/0.3427, allocations: 0 / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.939e-05/0.3427, allocations: 0 / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.46e-06/0.3427, allocations: 3.938 kB / 412 MB, free: 14.19 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.294e-05/0.3428, allocations: 27.98 kB / 412 MB, free: 14.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003684/0.3432, allocations: 282.5 kB / 412.3 MB, free: 13.83 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/0.3433, allocations: 71.8 kB / 412.3 MB, free: 13.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.419e-05/0.3434, allocations: 30.62 kB / 412.4 MB, free: 13.69 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.486e-05/0.3434, allocations: 7.984 kB / 412.4 MB, free: 13.68 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.188e-05/0.3435, allocations: 34.56 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.3435, allocations: 0 / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002806/0.3437, allocations: 89.55 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.085e-05/0.3438, allocations: 110.8 kB / 412.6 MB, free: 13.41 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001544/0.344, allocations: 149.7 kB / 412.8 MB, free: 13.26 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.344, allocations: 29.7 kB / 412.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.655e-05/0.3441, allocations: 84.52 kB / 412.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.429e-05/0.3441, allocations: 4 kB / 412.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.3442, allocations: 21.67 kB / 412.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/0.3443, allocations: 322.8 kB / 413.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.405e-05/0.3444, allocations: 11.92 kB / 413.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.261e-05/0.3444, allocations: 31.44 kB / 413.3 MB, free: 12.73 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.888e-05/0.3445, allocations: 51.36 kB / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.3446, allocations: 0 / 413.3 MB, free: 12.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001429/0.3447, allocations: 69.7 kB / 413.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.3447, allocations: 6.969 kB / 413.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.3447, allocations: 12.06 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.813e-05/0.3448, allocations: 7.984 kB / 413.4 MB, free: 12.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.564e-05/0.3448, allocations: 11.98 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.3449, allocations: 3.938 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.935e-05/0.3449, allocations: 4 kB / 413.4 MB, free: 12.55 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.412e-06/0.3449, allocations: 3.938 kB / 413.4 MB, free: 12.54 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.17e-05/0.345, allocations: 117.8 kB / 413.5 MB, free: 12.42 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/0.3451, allocations: 57.55 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.652e-05/0.3452, allocations: 19.92 kB / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3452, allocations: 0 / 413.6 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/0.3452, allocations: 3.938 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.3452, allocations: 4 kB / 413.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002001/0.3454, allocations: 169.6 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.3454, allocations: 4 kB / 413.8 MB, free: 12.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.979e-05/0.3455, allocations: 7.984 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/0.3455, allocations: 4 kB / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.3455, allocations: 0 / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.3455, allocations: 0 / 413.8 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3455, allocations: 7.938 kB / 413.8 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002016/0.3457, allocations: 181.1 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.233e-05/0.3458, allocations: 93.05 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.3459, allocations: 0 / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.962e-05/0.3459, allocations: 4 kB / 414.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.913e-05/0.346, allocations: 11.92 kB / 414.1 MB, free: 11.76 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.891e-06/0.346, allocations: 4 kB / 414.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.323e-05/0.3461, allocations: 108.4 kB / 414.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3461, allocations: 0 / 414.2 MB, free: 11.65 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002282/0.3463, allocations: 8 kB / 414.2 MB, free: 11.64 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.0005143/0.3468, allocations: 0.7102 MB / 414.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000197/0.347, allocations: 31.92 kB / 415 MB, free: 10.87 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3471, allocations: 3.938 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.475e-05/0.3471, allocations: 7.984 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003475/0.3474, allocations: 43.75 kB / 415 MB, free: 10.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.3489, allocations: 1.391 MB / 416.4 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003566/0.3493, allocations: 0.6885 MB / 417.1 MB, free: 8.602 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.599e-05/0.3493, allocations: 7.984 kB / 417.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.615e-05/0.3494, allocations: 19.38 kB / 417.1 MB, free: 8.574 MB / 334.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3494, allocations: 4 kB / 417.1 MB, free: 8.57 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02467/0.3741, allocations: 1.7 MB / 418.8 MB, free: 6.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.616/8.99, allocations: 6.984 kB / 418.8 MB, free: 6.977 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches