Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.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.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample",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.001496/0.001496, allocations: 110.4 kB / 16.92 MB, free: 6.332 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.001594/0.001594, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.496/1.496, allocations: 222.9 MB / 241.5 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001142/0.001142, allocations: 47.39 kB / 300.7 MB, free: 5.785 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1176/0.1187, allocations: 49.44 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample): time 0.003858/0.1226, allocations: 1.561 MB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001087/0.1238, allocations: 0.4884 MB / 352.2 MB, free: 2.254 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001442/0.1239, allocations: 3.938 kB / 352.2 MB, free: 2.25 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.645e-05/0.124, allocations: 3.938 kB / 352.2 MB, free: 2.246 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001807/0.1242, allocations: 15.91 kB / 352.2 MB, free: 2.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003611/0.1246, allocations: 51.83 kB / 352.3 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000131/0.1247, allocations: 47.8 kB / 352.3 MB, free: 2.133 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.1249, allocations: 12.19 kB / 352.4 MB, free: 2.121 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.165e-05/0.125, allocations: 23.86 kB / 352.4 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.36e-05/0.125, allocations: 23.84 kB / 352.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.066e-05/0.1251, allocations: 4 kB / 352.4 MB, free: 2.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.571e-05/0.1251, allocations: 4 kB / 352.4 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.494e-05/0.1252, allocations: 23.86 kB / 352.4 MB, free: 2.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.766e-05/0.1252, allocations: 23.81 kB / 352.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001305/0.1254, allocations: 55.8 kB / 352.5 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1254, allocations: 0 / 352.5 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1254, allocations: 0 / 352.5 MB, free: 1.965 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.1254, allocations: 0 / 352.5 MB, free: 1.965 MB / 286.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.0005864/0.126, allocations: 387.3 kB / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.16e-05/0.1261, allocations: 8.031 kB / 352.9 MB, free: 1.531 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.28e-05/0.1261, allocations: 38.75 kB / 352.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.744e-05/0.1261, allocations: 8.844 kB / 352.9 MB, free: 1.477 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002569/0.1264, allocations: 204.1 kB / 353.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.408e-06/0.1264, allocations: 384 / 353.1 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.437e-05/0.1265, allocations: 4.375 kB / 353.1 MB, free: 1.234 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003058/0.1268, allocations: 125.8 kB / 353.3 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.1268, allocations: 0 / 353.3 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.034e-05/0.1268, allocations: 4 kB / 353.3 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.1268, allocations: 0 / 353.3 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.537e-05/0.1269, allocations: 27.91 kB / 353.3 MB, free: 1.059 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003886/0.1273, allocations: 274.5 kB / 353.6 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001172/0.1274, allocations: 75.78 kB / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.414e-05/0.1275, allocations: 26.64 kB / 353.7 MB, free: 0.5977 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.559e-05/0.1275, allocations: 3.984 kB / 353.7 MB, free: 0.5938 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.154e-05/0.1276, allocations: 46.48 kB / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 2.995e-06/0.1276, allocations: 0 / 353.7 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002946/0.1279, allocations: 85.45 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.342e-05/0.128, allocations: 106.8 kB / 353.9 MB, free: 328 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001551/0.1281, allocations: 145.1 kB / 354 MB, free: 176 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1282, allocations: 29.7 kB / 354.1 MB, free: 140 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.122e-05/0.1282, allocations: 84.14 kB / 354.2 MB, free: 52 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.063e-05/0.1282, allocations: 11.91 kB / 354.2 MB, free: 40 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.726e-05/0.1283, allocations: 13.72 kB / 354.2 MB, free: 20 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.1285, allocations: 322.8 kB / 354.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.213e-05/0.1285, allocations: 11.98 kB / 354.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.612e-05/0.1286, allocations: 39.38 kB / 354.5 MB, free: 15.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.683e-05/0.1287, allocations: 39.42 kB / 354.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1287, allocations: 0 / 354.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001608/0.1289, allocations: 81.45 kB / 354.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/0.1289, allocations: 4 kB / 354.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.1289, allocations: 4 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.731e-05/0.1289, allocations: 0 / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.397e-05/0.129, allocations: 11.98 kB / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.129, allocations: 0 / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.459e-05/0.1291, allocations: 7.938 kB / 354.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.615e-06/0.1291, allocations: 0 / 354.7 MB, free: 15.46 MB / 302.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.0001411/0.1293, allocations: 129.9 kB / 354.8 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.424e-05/0.1293, allocations: 49.55 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.4e-05/0.1294, allocations: 15.86 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1294, allocations: 0 / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.1294, allocations: 4 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.726e-06/0.1294, allocations: 0 / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002007/0.1296, allocations: 169.6 kB / 355.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1296, allocations: 4 kB / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.845e-05/0.1297, allocations: 15.92 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.677e-06/0.1297, allocations: 4.062 kB / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.019e-05/0.1298, allocations: 4 kB / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1298, allocations: 0 / 355.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.1298, allocations: 4 kB / 355.1 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.13, allocations: 181.1 kB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.454e-05/0.1301, allocations: 96.94 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.689e-05/0.1301, allocations: 4 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.057e-05/0.1302, allocations: 4 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.233e-05/0.1303, allocations: 3.984 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-06/0.1303, allocations: 4 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001074/0.1304, allocations: 103.3 kB / 355.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1304, allocations: 3.938 kB / 355.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000245/0.1306, allocations: 8 kB / 355.5 MB, free: 14.56 MB / 302.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.0005918/0.1312, allocations: 0.714 MB / 356.2 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001645/0.1314, allocations: 35.92 kB / 356.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.339e-06/0.1314, allocations: 4.25 kB / 356.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.097e-05/0.1315, allocations: 7.984 kB / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004647/0.132, allocations: 34.88 kB / 356.3 MB, free: 13.74 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.1337, allocations: 1.391 MB / 357.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.134, allocations: 0.6963 MB / 358.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.364e-05/0.1341, allocations: 8.156 kB / 358.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.191e-05/0.1341, allocations: 19.38 kB / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1341, allocations: 0 / 358.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02305/0.1572, allocations: 1.683 MB / 360.1 MB, free: 9.898 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.265/8.423, allocations: 3.984 kB / 360.1 MB, free: 9.895 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.csv --start-time 0 --stop-time 0.09 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.6e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_ShiftSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/ShiftSample/ShiftSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.ShiftSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches