Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",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.001431/0.001431, allocations: 111.8 kB / 17.06 MB, free: 5.992 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.001373/0.001373, allocations: 196 kB / 18 MB, free: 5.074 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.436/1.436, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001002/0.001002, allocations: 43.94 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3244/0.3254, allocations: 49.43 MB / 400.2 MB, free: 8.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.004854/0.3304, allocations: 1.685 MB / 401.9 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007165/0.3311, allocations: 167.4 kB / 402.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000145/0.3313, allocations: 0 / 402.1 MB, free: 7.117 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.679e-05/0.3314, allocations: 11.88 kB / 402.1 MB, free: 7.105 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002026/0.3316, allocations: 15.86 kB / 402.1 MB, free: 7.09 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003964/0.332, allocations: 51.77 kB / 402.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001712/0.3322, allocations: 47.91 kB / 402.2 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002115/0.3324, allocations: 35.97 kB / 402.2 MB, free: 6.957 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.922e-05/0.3325, allocations: 23.88 kB / 402.3 MB, free: 6.934 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.967e-05/0.3326, allocations: 19.86 kB / 402.3 MB, free: 6.914 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.705e-05/0.3326, allocations: 4 kB / 402.3 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.959e-05/0.3327, allocations: 4 kB / 402.3 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.497e-05/0.3328, allocations: 19.92 kB / 402.3 MB, free: 6.887 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.474e-05/0.3328, allocations: 35.73 kB / 402.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.3331, allocations: 67.61 kB / 402.4 MB, free: 6.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.127e-05/0.3331, allocations: 3.984 kB / 402.4 MB, free: 6.781 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.527e-06/0.3331, allocations: 4 kB / 402.4 MB, free: 6.777 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.3331, allocations: 0 / 402.4 MB, free: 6.777 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0006701/0.3338, allocations: 389.6 kB / 402.8 MB, free: 6.348 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.151e-05/0.3338, allocations: 12.03 kB / 402.8 MB, free: 6.336 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.499e-05/0.3339, allocations: 38.73 kB / 402.9 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.3339, allocations: 12.84 kB / 402.9 MB, free: 6.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003413/0.3343, allocations: 204.1 kB / 403.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.638e-05/0.3343, allocations: 12.38 kB / 403.1 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.401e-05/0.3343, allocations: 8.312 kB / 403.1 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003804/0.3347, allocations: 161.6 kB / 403.2 MB, free: 5.844 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.3347, allocations: 3.938 kB / 403.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.897e-05/0.3348, allocations: 15.98 kB / 403.3 MB, free: 5.824 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.3348, allocations: 3.938 kB / 403.3 MB, free: 5.82 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001102/0.3349, allocations: 31.98 kB / 403.3 MB, free: 5.789 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004696/0.3354, allocations: 365.8 kB / 403.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002444/0.3356, allocations: 115.8 kB / 403.8 MB, free: 5.234 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.3357, allocations: 54.69 kB / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.255e-05/0.3358, allocations: 0 / 403.8 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.3358, allocations: 46.5 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.112e-06/0.3358, allocations: 0 / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003554/0.3362, allocations: 129.6 kB / 404 MB, free: 4.984 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.386e-05/0.3363, allocations: 110.8 kB / 404.1 MB, free: 4.852 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001486/0.3364, allocations: 140.5 kB / 404.2 MB, free: 4.707 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.784e-05/0.3365, allocations: 25.95 kB / 404.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.073e-05/0.3365, allocations: 88.14 kB / 404.4 MB, free: 4.586 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.866e-05/0.3366, allocations: 19.88 kB / 404.4 MB, free: 4.566 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.921e-05/0.3366, allocations: 21.72 kB / 404.4 MB, free: 4.539 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3368, allocations: 318.8 kB / 404.7 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.61e-05/0.3369, allocations: 15.98 kB / 404.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.994e-05/0.337, allocations: 79.59 kB / 404.8 MB, free: 4.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.3371, allocations: 95.58 kB / 404.9 MB, free: 3.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.748e-06/0.3371, allocations: 4 kB / 404.9 MB, free: 3.973 MB / 318.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001897/0.3373, allocations: 105.6 kB / 405 MB, free: 3.863 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.3374, allocations: 8 kB / 405 MB, free: 3.855 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.3374, allocations: 3.938 kB / 405 MB, free: 3.852 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.045e-05/0.3374, allocations: 4 kB / 405 MB, free: 3.848 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.312e-05/0.3375, allocations: 19.98 kB / 405 MB, free: 3.828 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.163e-05/0.3375, allocations: 7.938 kB / 405 MB, free: 3.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.122e-05/0.3376, allocations: 4 kB / 405 MB, free: 3.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.628e-06/0.3376, allocations: 4 kB / 405 MB, free: 3.812 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (10): * Single equations (assignments): 10 * 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 0.0001302/0.3377, allocations: 129.9 kB / 405.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001313/0.3379, allocations: 81.53 kB / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.021e-05/0.3379, allocations: 16.72 kB / 405.3 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3379, allocations: 4 kB / 405.3 MB, free: 3.566 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.3379, allocations: 4 kB / 405.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3379, allocations: 0 / 405.3 MB, free: 3.562 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000304/0.3383, allocations: 185.5 kB / 405.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.3383, allocations: 0 / 405.5 MB, free: 3.332 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.428e-05/0.3383, allocations: 19.98 kB / 405.5 MB, free: 3.312 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.759e-05/0.3384, allocations: 4 kB / 405.5 MB, free: 3.309 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.3384, allocations: 8 kB / 405.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3384, allocations: 0 / 405.5 MB, free: 3.301 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.3384, allocations: 4 kB / 405.5 MB, free: 3.297 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004174/0.3388, allocations: 308.3 kB / 405.8 MB, free: 2.973 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.444e-05/0.3389, allocations: 108.9 kB / 405.9 MB, free: 2.848 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.3389, allocations: 4 kB / 405.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001085/0.3391, allocations: 7.984 kB / 405.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.332e-05/0.3391, allocations: 0 / 405.9 MB, free: 2.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.706e-06/0.3391, allocations: 4 kB / 405.9 MB, free: 2.832 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.00011/0.3392, allocations: 105.9 kB / 406 MB, free: 2.73 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3393, allocations: 288 / 406 MB, free: 2.73 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000302/0.3396, allocations: 12 kB / 406 MB, free: 2.719 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 (10): * Single equations (assignments): 10 * 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.0007128/0.3403, allocations: 0.8498 MB / 406.9 MB, free: 1.836 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002063/0.3405, allocations: 71.84 kB / 407 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3405, allocations: 0 / 407 MB, free: 1.766 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.48e-05/0.3406, allocations: 11.98 kB / 407 MB, free: 1.754 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.3411, allocations: 47.89 kB / 407 MB, free: 1.707 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001766/0.3428, allocations: 1.582 MB / 408.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.3432, allocations: 0.7078 MB / 409.3 MB, free: 15.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.104e-05/0.3433, allocations: 4.672 kB / 409.3 MB, free: 15.24 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.319e-05/0.3433, allocations: 23.42 kB / 409.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of SimCode: time 2.01e-07/0.3433, allocations: 0 / 409.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02142/0.3648, allocations: 1.871 MB / 411.2 MB, free: 13.45 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.085/8.449, allocations: 11.91 kB / 411.2 MB, free: 13.44 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_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_Sample3.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches