Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 109.4 kB / 17.06 MB, free: 5.965 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.001143/0.001143, allocations: 200 kB / 18.01 MB, free: 5.047 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.464/1.464, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001225/0.001225, allocations: 43.92 kB / 350.8 MB, free: 3.711 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3122/0.3134, allocations: 49.44 MB / 400.2 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003318/0.3168, allocations: 1.582 MB / 401.8 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008749/0.3177, allocations: 477.8 kB / 402.3 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.494e-05/0.3178, allocations: 4 kB / 402.3 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.367e-05/0.3179, allocations: 3.938 kB / 402.3 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001554/0.318, allocations: 15.86 kB / 402.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002998/0.3184, allocations: 58.58 kB / 402.4 MB, free: 6.648 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001115/0.3185, allocations: 43.84 kB / 402.4 MB, free: 6.605 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.3186, allocations: 20.16 kB / 402.4 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.864e-05/0.3187, allocations: 23.86 kB / 402.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.438e-05/0.3187, allocations: 23.86 kB / 402.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.782e-05/0.3188, allocations: 0 / 402.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.21e-05/0.3188, allocations: 4 kB / 402.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.75e-05/0.3189, allocations: 19.92 kB / 402.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.899e-05/0.3189, allocations: 31.8 kB / 402.5 MB, free: 6.484 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001334/0.319, allocations: 50.7 kB / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.319, allocations: 0 / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3191, allocations: 0 / 402.6 MB, free: 6.438 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3191, allocations: 0 / 402.6 MB, free: 6.438 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0004949/0.3196, allocations: 383 kB / 403 MB, free: 6.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3196, allocations: 8.031 kB / 403 MB, free: 6.008 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.546e-05/0.3197, allocations: 38.75 kB / 403 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.074e-05/0.3197, allocations: 12.89 kB / 403 MB, free: 5.949 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002615/0.32, allocations: 200.2 kB / 403.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.746e-06/0.32, allocations: 384 / 403.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.313e-05/0.32, allocations: 4.375 kB / 403.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002832/0.3203, allocations: 121.8 kB / 403.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.3203, allocations: 0 / 403.3 MB, free: 5.57 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3203, allocations: 3.984 kB / 403.3 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.3203, allocations: 0 / 403.3 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.515e-05/0.3204, allocations: 23.92 kB / 403.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003669/0.3208, allocations: 282.5 kB / 403.6 MB, free: 5.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.3209, allocations: 63.84 kB / 403.7 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.403e-05/0.321, allocations: 30.58 kB / 403.7 MB, free: 5.082 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.217e-05/0.321, allocations: 15.92 kB / 403.7 MB, free: 5.066 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.3211, allocations: 38.5 kB / 403.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.162e-06/0.3211, allocations: 0 / 403.8 MB, free: 5.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002728/0.3214, allocations: 77.56 kB / 403.9 MB, free: 4.938 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.678e-05/0.3214, allocations: 107.2 kB / 404 MB, free: 4.809 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001213/0.3216, allocations: 149.8 kB / 404.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.316e-05/0.3216, allocations: 25.7 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.881e-05/0.3216, allocations: 88.08 kB / 404.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.038e-05/0.3217, allocations: 11.95 kB / 404.2 MB, free: 4.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.551e-05/0.3217, allocations: 17.7 kB / 404.3 MB, free: 4.496 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.339e-05/0.3218, allocations: 322.7 kB / 404.6 MB, free: 4.172 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.569e-05/0.3219, allocations: 7.984 kB / 404.6 MB, free: 4.164 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.329e-05/0.3219, allocations: 35.44 kB / 404.6 MB, free: 4.117 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.486e-05/0.322, allocations: 47.36 kB / 404.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.746e-06/0.322, allocations: 0 / 404.7 MB, free: 4.059 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001366/0.3222, allocations: 77.56 kB / 404.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3222, allocations: 4 kB / 404.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.3222, allocations: 0 / 404.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3222, allocations: 4 kB / 404.7 MB, free: 3.969 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.726e-05/0.3223, allocations: 11.98 kB / 404.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.3223, allocations: 0 / 404.8 MB, free: 3.957 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.433e-05/0.3224, allocations: 4 kB / 404.8 MB, free: 3.953 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.3224, allocations: 128 / 404.8 MB, free: 3.953 MB / 318.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 8.696e-05/0.3225, allocations: 129.7 kB / 404.9 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.543e-05/0.3226, allocations: 49.66 kB / 404.9 MB, free: 3.762 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.707e-05/0.3226, allocations: 15.86 kB / 404.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.846e-06/0.3226, allocations: 0 / 404.9 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.221e-06/0.3226, allocations: 4 kB / 405 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3226, allocations: 4 kB / 405 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.3228, allocations: 173.5 kB / 405.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.3228, allocations: 0 / 405.1 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.891e-05/0.3229, allocations: 16.05 kB / 405.1 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3229, allocations: 4 kB / 405.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.3229, allocations: 0 / 405.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.3229, allocations: 0 / 405.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.3229, allocations: 0 / 405.1 MB, free: 3.496 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00019/0.3231, allocations: 189.2 kB / 405.3 MB, free: 3.289 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.03e-05/0.3232, allocations: 101 kB / 405.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.923e-05/0.3232, allocations: 0 / 405.4 MB, free: 3.172 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.475e-05/0.3233, allocations: 11.94 kB / 405.4 MB, free: 3.16 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.702e-05/0.3234, allocations: 3.984 kB / 405.4 MB, free: 3.156 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.581e-06/0.3234, allocations: 4 kB / 405.4 MB, free: 3.152 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.127e-05/0.3234, allocations: 106 kB / 405.6 MB, free: 3.051 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3235, allocations: 0 / 405.6 MB, free: 3.051 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.3237, allocations: 4 kB / 405.6 MB, free: 3.047 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: 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.000469/0.3242, allocations: 0.7179 MB / 406.3 MB, free: 2.297 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001523/0.3243, allocations: 40.05 kB / 406.3 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3243, allocations: 0 / 406.3 MB, free: 2.258 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.158e-05/0.3244, allocations: 11.92 kB / 406.3 MB, free: 2.246 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.3248, allocations: 24.02 kB / 406.3 MB, free: 2.223 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.3262, allocations: 1.388 MB / 407.7 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.3264, allocations: 0.6961 MB / 408.4 MB, free: 0 / 318.1 MB Notification: Performance of simCode: alias equations: time 5.999e-05/0.3265, allocations: 4.047 kB / 408.4 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.312e-05/0.3265, allocations: 19.38 kB / 408.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3266, allocations: 0 / 408.5 MB, free: 15.98 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02002/0.3466, allocations: 1.667 MB / 410.1 MB, free: 14.42 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.92/8.267, allocations: 8.438 kB / 410.1 MB, free: 14.41 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches