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.001278/0.001278, allocations: 112.3 kB / 17.06 MB, free: 5.969 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.001212/0.001212, allocations: 200 kB / 18.01 MB, free: 5.051 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.377/1.377, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 43.92 kB / 350.8 MB, free: 3.723 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3305, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.00405/0.3347, allocations: 1.557 MB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004852/0.3352, allocations: 135.1 kB / 401.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.3353, allocations: 1.094 kB / 401.9 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 5.466e-05/0.3354, allocations: 8.922 kB / 401.9 MB, free: 7.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001599/0.3355, allocations: 8.984 kB / 401.9 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003041/0.3359, allocations: 46.75 kB / 402 MB, free: 7.043 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000118/0.336, allocations: 36.72 kB / 402 MB, free: 7.02 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000115/0.3361, allocations: 11.44 kB / 402 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.372e-05/0.3362, allocations: 20.2 kB / 402.1 MB, free: 7 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.641e-05/0.3362, allocations: 11.94 kB / 402.1 MB, free: 6.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.3362, allocations: 4 kB / 402.1 MB, free: 6.984 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.384e-05/0.3363, allocations: 4 kB / 402.1 MB, free: 6.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.821e-05/0.3363, allocations: 15.92 kB / 402.1 MB, free: 6.965 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.285e-05/0.3364, allocations: 19.81 kB / 402.1 MB, free: 6.945 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001408/0.3365, allocations: 50.77 kB / 402.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3365, allocations: 0 / 402.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3365, allocations: 0 / 402.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.021e-05/0.3366, allocations: 0 / 402.2 MB, free: 6.898 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.0004958/0.3371, allocations: 375.1 kB / 402.5 MB, free: 6.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.614e-05/0.3371, allocations: 11.89 kB / 402.5 MB, free: 6.469 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.746e-05/0.3372, allocations: 34.75 kB / 402.6 MB, free: 6.426 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.578e-05/0.3372, allocations: 8.891 kB / 402.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003/0.3375, allocations: 196.2 kB / 402.8 MB, free: 6.188 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.3375, allocations: 4.312 kB / 402.8 MB, free: 6.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.487e-05/0.3375, allocations: 4.375 kB / 402.8 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003129/0.3379, allocations: 113.6 kB / 402.9 MB, free: 6.051 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3379, allocations: 7.938 kB / 402.9 MB, free: 6.043 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.3379, allocations: 7.938 kB / 402.9 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/0.3379, allocations: 0 / 402.9 MB, free: 6.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.247e-05/0.338, allocations: 19.92 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003864/0.3384, allocations: 265.7 kB / 403.2 MB, free: 5.703 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002278/0.3386, allocations: 142.2 kB / 403.3 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.044e-05/0.3387, allocations: 33.77 kB / 403.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.327e-05/0.3387, allocations: 0 / 403.4 MB, free: 5.488 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.3388, allocations: 34.56 kB / 403.4 MB, free: 5.445 MB / 318.1 MB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.3388, allocations: 0 / 403.4 MB, free: 5.445 MB / 318.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002804/0.3391, allocations: 81.55 kB / 403.5 MB, free: 5.359 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.3391, allocations: 81.11 kB / 403.6 MB, free: 5.262 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001406/0.3393, allocations: 130.1 kB / 403.7 MB, free: 5.121 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.6e-05/0.3393, allocations: 25.7 kB / 403.7 MB, free: 5.09 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.49e-05/0.3394, allocations: 92.12 kB / 403.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.504e-05/0.3394, allocations: 0 / 403.8 MB, free: 4.996 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.862e-05/0.3395, allocations: 21.67 kB / 403.8 MB, free: 4.969 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001977/0.3397, allocations: 315 kB / 404.1 MB, free: 4.652 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.295e-05/0.3397, allocations: 15.98 kB / 404.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.42e-05/0.3398, allocations: 35.36 kB / 404.2 MB, free: 4.59 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.385e-05/0.3399, allocations: 47.42 kB / 404.2 MB, free: 4.531 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.961e-06/0.3399, allocations: 3.938 kB / 404.2 MB, free: 4.527 MB / 318.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001435/0.34, allocations: 65.56 kB / 404.3 MB, free: 4.457 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.3401, allocations: 8 kB / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.3401, allocations: 0 / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.807e-05/0.3401, allocations: 0 / 404.3 MB, free: 4.449 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.558e-05/0.3402, allocations: 12.11 kB / 404.3 MB, free: 4.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.014e-05/0.3402, allocations: 8 kB / 404.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.28e-05/0.3402, allocations: 0 / 404.3 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.876e-06/0.3402, allocations: 4 kB / 404.3 MB, free: 4.426 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 0.0001115/0.3404, allocations: 125.7 kB / 404.4 MB, free: 4.293 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.712e-05/0.3404, allocations: 45.66 kB / 404.5 MB, free: 4.242 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.083e-05/0.3405, allocations: 16.23 kB / 404.5 MB, free: 4.219 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.3405, allocations: 3.938 kB / 404.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3405, allocations: 0 / 404.5 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-06/0.3405, allocations: 4 kB / 404.5 MB, free: 4.211 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002253/0.3408, allocations: 169.6 kB / 404.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.823e-06/0.3408, allocations: 4 kB / 404.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.538e-05/0.3408, allocations: 8 kB / 404.7 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.15e-06/0.3408, allocations: 4 kB / 404.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.296e-06/0.3408, allocations: 0 / 404.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.803e-06/0.3409, allocations: 0 / 404.7 MB, free: 3.98 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.3409, allocations: 3.984 kB / 404.7 MB, free: 3.977 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001864/0.3411, allocations: 176.2 kB / 404.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.314e-05/0.3411, allocations: 96.98 kB / 405 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.466e-05/0.3412, allocations: 0 / 405 MB, free: 3.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.535e-05/0.3412, allocations: 7.984 kB / 405 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.246e-05/0.3413, allocations: 0 / 405 MB, free: 3.664 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.3413, allocations: 0 / 405 MB, free: 3.664 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.807e-05/0.3413, allocations: 106.5 kB / 405.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3414, allocations: 0 / 405.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002482/0.3416, allocations: 8 kB / 405.1 MB, free: 3.555 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.0005509/0.3422, allocations: 0.7092 MB / 405.8 MB, free: 2.816 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001495/0.3423, allocations: 36.11 kB / 405.8 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.3423, allocations: 0 / 405.8 MB, free: 2.781 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 3.231e-05/0.3424, allocations: 4 kB / 405.8 MB, free: 2.777 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.3427, allocations: 23.53 kB / 405.9 MB, free: 2.758 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.3441, allocations: 1.326 MB / 407.2 MB, free: 1.328 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.3444, allocations: 0.6883 MB / 407.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 3.298e-05/0.3445, allocations: 3.984 kB / 407.9 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.005e-05/0.3445, allocations: 15.44 kB / 407.9 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of SimCode: time 1.452e-06/0.3445, allocations: 4 kB / 407.9 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.3636, allocations: 1.479 MB / 409.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.048/8.412, allocations: 12.73 kB / 409.4 MB, free: 15.2 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