Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",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.001298/0.001297, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001305/0.001305, allocations: 189.4 kB / 18 MB, free: 5.09 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.448/1.448, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 44.06 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.312/0.3135, allocations: 49.44 MB / 400.2 MB, free: 8.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.003752/0.3173, allocations: 1.547 MB / 401.8 MB, free: 7.363 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004793/0.3178, allocations: 139.6 kB / 401.9 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.985e-05/0.3179, allocations: 1.062 kB / 401.9 MB, free: 7.258 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.319e-05/0.318, allocations: 8.922 kB / 401.9 MB, free: 7.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001469/0.3182, allocations: 9.062 kB / 401.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002846/0.3184, allocations: 35.47 kB / 402 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001229/0.3186, allocations: 36.22 kB / 402 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001195/0.3187, allocations: 15.98 kB / 402 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.508e-05/0.3188, allocations: 15.92 kB / 402 MB, free: 7.156 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.178e-05/0.3188, allocations: 11.94 kB / 402.1 MB, free: 7.145 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.645e-05/0.3188, allocations: 4 kB / 402.1 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.3189, allocations: 0 / 402.1 MB, free: 7.141 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.334e-05/0.3189, allocations: 15.92 kB / 402.1 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.538e-05/0.319, allocations: 23.81 kB / 402.1 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001485/0.3191, allocations: 50.7 kB / 402.2 MB, free: 7.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.765e-06/0.3192, allocations: 4 kB / 402.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.415e-06/0.3192, allocations: 0 / 402.2 MB, free: 7.051 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.223e-05/0.3192, allocations: 4 kB / 402.2 MB, free: 7.047 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005982/0.3198, allocations: 375.1 kB / 402.5 MB, free: 6.629 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.3198, allocations: 8.031 kB / 402.5 MB, free: 6.621 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.594e-05/0.3199, allocations: 30.75 kB / 402.6 MB, free: 6.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.027e-05/0.3199, allocations: 8.891 kB / 402.6 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002819/0.3202, allocations: 192.3 kB / 402.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.673e-05/0.3202, allocations: 4.312 kB / 402.8 MB, free: 6.344 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.411e-05/0.3202, allocations: 8.375 kB / 402.8 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003252/0.3206, allocations: 113.6 kB / 402.9 MB, free: 6.207 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.185e-05/0.3206, allocations: 7.875 kB / 402.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.307e-06/0.3206, allocations: 0 / 402.9 MB, free: 6.199 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.3206, allocations: 4 kB / 402.9 MB, free: 6.195 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.574e-05/0.3207, allocations: 11.98 kB / 402.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/0.3211, allocations: 273.6 kB / 403.2 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002528/0.3214, allocations: 142.2 kB / 403.3 MB, free: 5.688 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.161e-05/0.3215, allocations: 37.7 kB / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.573e-05/0.3215, allocations: 0 / 403.4 MB, free: 5.645 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.3215, allocations: 30.56 kB / 403.4 MB, free: 5.605 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.142e-06/0.3215, allocations: 7.938 kB / 403.4 MB, free: 5.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002773/0.3218, allocations: 81.55 kB / 403.5 MB, free: 5.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.298e-05/0.3219, allocations: 85.11 kB / 403.6 MB, free: 5.41 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001345/0.3221, allocations: 126.1 kB / 403.7 MB, free: 5.273 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.3221, allocations: 25.7 kB / 403.7 MB, free: 5.242 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.006e-05/0.3221, allocations: 92.12 kB / 403.8 MB, free: 5.148 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.605e-05/0.3222, allocations: 4 kB / 403.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.833e-05/0.3222, allocations: 21.8 kB / 403.8 MB, free: 5.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001609/0.3224, allocations: 314.8 kB / 404.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.38e-05/0.3224, allocations: 11.98 kB / 404.1 MB, free: 4.789 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.169e-05/0.3225, allocations: 31.42 kB / 404.2 MB, free: 4.746 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.384e-05/0.3226, allocations: 55.36 kB / 404.2 MB, free: 4.68 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.3226, allocations: 3.938 kB / 404.2 MB, free: 4.676 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001351/0.3227, allocations: 61.56 kB / 404.3 MB, free: 4.609 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.792e-05/0.3228, allocations: 8 kB / 404.3 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3228, allocations: 0 / 404.3 MB, free: 4.602 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.3228, allocations: 4.125 kB / 404.3 MB, free: 4.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.103e-05/0.3229, allocations: 11.98 kB / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.3229, allocations: 0 / 404.3 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.342e-05/0.3229, allocations: 4 kB / 404.3 MB, free: 4.582 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.165e-06/0.3229, allocations: 3.984 kB / 404.3 MB, free: 4.578 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 9.615e-05/0.323, allocations: 125.8 kB / 404.4 MB, free: 4.445 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.728e-05/0.3231, allocations: 49.59 kB / 404.5 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.124e-05/0.3232, allocations: 12.23 kB / 404.5 MB, free: 4.371 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.3232, allocations: 4 kB / 404.5 MB, free: 4.367 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.3232, allocations: 4 kB / 404.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.3232, allocations: 0 / 404.5 MB, free: 4.363 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.3234, allocations: 173.5 kB / 404.7 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3234, allocations: 0 / 404.7 MB, free: 4.145 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.396e-05/0.3235, allocations: 8 kB / 404.7 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.3235, allocations: 0 / 404.7 MB, free: 4.137 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.3235, allocations: 4 kB / 404.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.3235, allocations: 0 / 404.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3235, allocations: 0 / 404.7 MB, free: 4.133 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000221/0.3237, allocations: 176.2 kB / 404.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.159e-05/0.3238, allocations: 96.98 kB / 405 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.448e-05/0.3238, allocations: 0 / 405 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.363e-05/0.3239, allocations: 7.984 kB / 405 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.054e-05/0.3239, allocations: 0 / 405 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.216e-06/0.3239, allocations: 0 / 405 MB, free: 3.82 MB / 318.1 MB Notification: Performance of sorting global known variables: time 8.073e-05/0.324, allocations: 106.6 kB / 405.1 MB, free: 3.719 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.324, allocations: 4 kB / 405.1 MB, free: 3.715 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002199/0.3243, allocations: 7.938 kB / 405.1 MB, free: 3.707 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.0005055/0.3248, allocations: 0.7053 MB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001452/0.3249, allocations: 31.97 kB / 405.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.3249, allocations: 0 / 405.8 MB, free: 2.941 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.672e-05/0.325, allocations: 11.94 kB / 405.8 MB, free: 2.93 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003345/0.3253, allocations: 30.44 kB / 405.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001304/0.3266, allocations: 1.318 MB / 407.2 MB, free: 1.48 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003151/0.327, allocations: 0.6883 MB / 407.9 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.222e-05/0.327, allocations: 11.98 kB / 407.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.775e-05/0.3271, allocations: 19.38 kB / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3271, allocations: 0 / 407.9 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02196/0.349, allocations: 1.468 MB / 409.4 MB, free: 15.36 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.581/8.93, allocations: 20.23 kB / 409.4 MB, free: 15.35 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_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_Sample2.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:time,assignClock.u,assignClock.y,sample1.y,step.y,step.height