Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.TimeBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",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.001308/0.001308, allocations: 105.5 kB / 17.06 MB, free: 6.016 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.001266/0.001266, allocations: 188 kB / 18 MB, free: 5.102 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.362/1.362, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 43.94 kB / 350.8 MB, free: 3.773 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2836, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.002698/0.2864, allocations: 1.468 MB / 401.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.000677/0.2871, allocations: 412.5 kB / 402.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.472e-05/0.2872, allocations: 4 kB / 402.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.111e-05/0.2872, allocations: 7.922 kB / 402.1 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.313e-05/0.2873, allocations: 7.922 kB / 402.1 MB, free: 6.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002363/0.2875, allocations: 23.98 kB / 402.2 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.244e-05/0.2876, allocations: 43.78 kB / 402.2 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.2878, allocations: 19.98 kB / 402.2 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.187e-05/0.2878, allocations: 8 kB / 402.2 MB, free: 6.836 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.107e-05/0.2879, allocations: 15.92 kB / 402.2 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.745e-05/0.2879, allocations: 4 kB / 402.2 MB, free: 6.816 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.168e-05/0.2879, allocations: 4 kB / 402.3 MB, free: 6.812 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.76e-05/0.2879, allocations: 7.922 kB / 402.3 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.695e-05/0.288, allocations: 15.94 kB / 402.3 MB, free: 6.789 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 9.96e-05/0.2881, allocations: 39.81 kB / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.2881, allocations: 0 / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2881, allocations: 0 / 402.3 MB, free: 6.75 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2881, allocations: 0 / 402.3 MB, free: 6.75 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004652/0.2886, allocations: 358.3 kB / 402.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.2886, allocations: 8.031 kB / 402.7 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.141e-05/0.2887, allocations: 34.75 kB / 402.7 MB, free: 6.305 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.951e-05/0.2887, allocations: 4.938 kB / 402.7 MB, free: 6.301 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002503/0.289, allocations: 180.2 kB / 402.9 MB, free: 6.086 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.289, allocations: 4.375 kB / 402.9 MB, free: 6.082 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.289, allocations: 4.375 kB / 402.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004372/0.2895, allocations: 143.4 kB / 403 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.2895, allocations: 0 / 403 MB, free: 5.926 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.358e-05/0.2895, allocations: 3.984 kB / 403 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.968e-06/0.2895, allocations: 0 / 403 MB, free: 5.922 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001689/0.2897, allocations: 43.91 kB / 403.1 MB, free: 5.879 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001397/0.2898, allocations: 165.6 kB / 403.2 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.2901, allocations: 78.52 kB / 403.3 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/0.2902, allocations: 36.91 kB / 403.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.2902, allocations: 0 / 403.4 MB, free: 5.543 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.386e-05/0.2903, allocations: 34.5 kB / 403.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.2903, allocations: 0 / 403.4 MB, free: 5.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003648/0.2907, allocations: 97.58 kB / 403.5 MB, free: 5.398 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.2907, allocations: 63.39 kB / 403.5 MB, free: 5.324 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.434e-05/0.2908, allocations: 105.9 kB / 403.7 MB, free: 5.211 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.66e-05/0.2908, allocations: 25.7 kB / 403.7 MB, free: 5.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.583e-05/0.2909, allocations: 88.11 kB / 403.8 MB, free: 5.09 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.977e-06/0.2909, allocations: 4 kB / 403.8 MB, free: 5.086 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.787e-05/0.2909, allocations: 13.72 kB / 403.8 MB, free: 5.066 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.617e-05/0.291, allocations: 318.8 kB / 404.1 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.25e-05/0.291, allocations: 7.984 kB / 404.1 MB, free: 4.738 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.511e-05/0.2911, allocations: 27.44 kB / 404.1 MB, free: 4.699 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.985e-05/0.2911, allocations: 35.38 kB / 404.2 MB, free: 4.652 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.2911, allocations: 3.938 kB / 404.2 MB, free: 4.648 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.728e-05/0.2912, allocations: 65.53 kB / 404.2 MB, free: 4.578 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2912, allocations: 4 kB / 404.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.2912, allocations: 0 / 404.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.2912, allocations: 4 kB / 404.2 MB, free: 4.57 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.46e-05/0.2913, allocations: 4 kB / 404.2 MB, free: 4.566 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.652e-06/0.2913, allocations: 4 kB / 404.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.344e-05/0.2913, allocations: 11.89 kB / 404.3 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.737e-06/0.2914, allocations: 0 / 404.3 MB, free: 4.551 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 7.638e-05/0.2914, allocations: 113.8 kB / 404.4 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001914/0.2916, allocations: 85.62 kB / 404.5 MB, free: 4.34 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.082e-05/0.2917, allocations: 7.906 kB / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.2917, allocations: 0 / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.666e-06/0.2917, allocations: 0 / 404.5 MB, free: 4.324 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.2917, allocations: 4 kB / 404.5 MB, free: 4.32 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.147e-05/0.2918, allocations: 157.7 kB / 404.6 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2918, allocations: 0 / 404.6 MB, free: 4.117 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.476e-05/0.2919, allocations: 15.92 kB / 404.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.2919, allocations: 336 / 404.6 MB, free: 4.102 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.153e-06/0.2919, allocations: 4 kB / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2919, allocations: 0 / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2919, allocations: 0 / 404.6 MB, free: 4.098 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002203/0.2921, allocations: 109 kB / 404.7 MB, free: 3.973 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.465e-05/0.2922, allocations: 84.98 kB / 404.8 MB, free: 3.871 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.431e-05/0.2922, allocations: 3.984 kB / 404.8 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.524e-05/0.2923, allocations: 8 kB / 404.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.524e-06/0.2923, allocations: 0 / 404.8 MB, free: 3.859 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.44e-06/0.2923, allocations: 4 kB / 404.8 MB, free: 3.855 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.37e-05/0.2923, allocations: 87.27 kB / 404.9 MB, free: 3.77 MB / 318.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2923, allocations: 0 / 404.9 MB, free: 3.77 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0001853/0.2925, allocations: 4 kB / 404.9 MB, free: 3.766 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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.0004814/0.293, allocations: 0.6474 MB / 405.6 MB, free: 3.09 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00015/0.2932, allocations: 31.92 kB / 405.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.2932, allocations: 0 / 405.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.91e-07/0.2932, allocations: 0 / 405.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003252/0.2935, allocations: 48.14 kB / 405.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000932/0.2945, allocations: 1.166 MB / 406.8 MB, free: 1.746 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.2947, allocations: 0.6844 MB / 407.5 MB, free: 1.035 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 1.731e-05/0.2947, allocations: 4 kB / 407.5 MB, free: 1.031 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.669e-05/0.2948, allocations: 19.42 kB / 407.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2948, allocations: 0 / 407.5 MB, free: 1.012 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01786/0.3126, allocations: 1.36 MB / 408.9 MB, free: 15.77 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.412/7.725, allocations: 7.688 kB / 408.9 MB, free: 15.77 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches