Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.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.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_BackSample",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.001577/0.001577, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.002365/0.002365, allocations: 195.9 kB / 18 MB, free: 4.965 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.359/1.359, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001107/0.001107, allocations: 55.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2753, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.003467/0.2788, allocations: 1.902 MB / 402.1 MB, free: 6.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.2807, allocations: 1.091 MB / 403.2 MB, free: 5.809 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001416/0.2808, allocations: 7.938 kB / 403.2 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006111/0.2815, allocations: 149.6 kB / 403.4 MB, free: 5.656 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000296/0.2818, allocations: 119.5 kB / 403.5 MB, free: 5.539 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005568/0.2823, allocations: 209.6 kB / 403.7 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002778/0.2826, allocations: 191.4 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001331/0.2828, allocations: 29.67 kB / 403.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.2829, allocations: 83.69 kB / 404 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001144/0.283, allocations: 79.56 kB / 404.1 MB, free: 4.957 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.526e-05/0.283, allocations: 12 kB / 404.1 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.2832, allocations: 59.95 kB / 404.1 MB, free: 4.887 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.817e-05/0.2833, allocations: 43.84 kB / 404.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.531e-05/0.2834, allocations: 71.48 kB / 404.3 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003239/0.2837, allocations: 214.2 kB / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.2837, allocations: 0 / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2837, allocations: 0 / 404.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.092e-06/0.2837, allocations: 0 / 404.5 MB, free: 4.566 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008651/0.2846, allocations: 0.5309 MB / 405 MB, free: 3.98 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.2846, allocations: 12.03 kB / 405 MB, free: 3.969 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.893e-05/0.2847, allocations: 34.75 kB / 405 MB, free: 3.926 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.053e-05/0.2848, allocations: 28.78 kB / 405.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.2851, allocations: 271 kB / 405.3 MB, free: 3.598 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.23e-05/0.2852, allocations: 8.375 kB / 405.3 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.13e-05/0.2852, allocations: 11.94 kB / 405.4 MB, free: 3.578 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003455/0.2855, allocations: 175.5 kB / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.858e-06/0.2856, allocations: 0 / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.319e-05/0.2856, allocations: 0 / 405.5 MB, free: 3.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.2856, allocations: 8 kB / 405.5 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.2857, allocations: 51.83 kB / 405.6 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004868/0.2862, allocations: 363.3 kB / 405.9 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002306/0.2864, allocations: 142.4 kB / 406.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.637e-05/0.2865, allocations: 55.42 kB / 406.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.482e-05/0.2866, allocations: 4 kB / 406.1 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001528/0.2867, allocations: 83.31 kB / 406.2 MB, free: 2.566 MB / 318.1 MB Notification: Performance of pre-optimization done (n=11): time 1.663e-06/0.2868, allocations: 4 kB / 406.2 MB, free: 2.562 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003564/0.2871, allocations: 149.8 kB / 406.4 MB, free: 2.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.664e-05/0.2872, allocations: 170.2 kB / 406.5 MB, free: 2.207 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000251/0.2875, allocations: 268.9 kB / 406.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.2875, allocations: 29.7 kB / 406.8 MB, free: 1.895 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.456e-05/0.2876, allocations: 120.4 kB / 406.9 MB, free: 1.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.577e-05/0.2876, allocations: 23.91 kB / 407 MB, free: 1.746 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.692e-05/0.2877, allocations: 33.66 kB / 407 MB, free: 1.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001399/0.2878, allocations: 334.8 kB / 407.3 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.523e-05/0.2879, allocations: 23.98 kB / 407.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.474e-05/0.288, allocations: 83.7 kB / 407.4 MB, free: 1.238 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001497/0.2881, allocations: 93.92 kB / 407.5 MB, free: 1.125 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2881, allocations: 0 / 407.5 MB, free: 1.125 MB / 318.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002076/0.2884, allocations: 129.5 kB / 407.7 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.2884, allocations: 8 kB / 407.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.2884, allocations: 0 / 407.7 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.2884, allocations: 4 kB / 407.7 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.807e-05/0.2885, allocations: 11.94 kB / 407.7 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.2885, allocations: 4 kB / 407.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.687e-05/0.2886, allocations: 19.88 kB / 407.7 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.528e-06/0.2886, allocations: 4 kB / 407.7 MB, free: 0.9414 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001257/0.2887, allocations: 153.8 kB / 407.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.895e-05/0.2889, allocations: 73.53 kB / 407.9 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.038e-05/0.2889, allocations: 21.72 kB / 407.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.2889, allocations: 7.984 kB / 408 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2889, allocations: 320 / 408 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.2889, allocations: 3.938 kB / 408 MB, free: 0.668 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.2891, allocations: 229.5 kB / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2891, allocations: 0 / 408.2 MB, free: 404 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.788e-05/0.2892, allocations: 11.92 kB / 408.2 MB, free: 392 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.338e-06/0.2892, allocations: 8.094 kB / 408.2 MB, free: 384 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.092e-05/0.2892, allocations: 4 kB / 408.2 MB, free: 380 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.2892, allocations: 4 kB / 408.2 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.2892, allocations: 0 / 408.2 MB, free: 376 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002424/0.2895, allocations: 179.3 kB / 408.4 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.807e-05/0.2896, allocations: 109 kB / 408.5 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.2896, allocations: 3.984 kB / 408.5 MB, free: 36 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.335e-05/0.2897, allocations: 11.94 kB / 408.5 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.2897, allocations: 7.938 kB / 408.5 MB, free: 16 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.509e-05/0.2897, allocations: 7.984 kB / 408.5 MB, free: 8 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001936/0.2899, allocations: 196.5 kB / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.29, allocations: 0 / 408.7 MB, free: 15.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002615/0.2902, allocations: 35.94 kB / 408.8 MB, free: 15.78 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001274/0.2915, allocations: 1.02 MB / 409.8 MB, free: 14.89 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002203/0.2917, allocations: 87.78 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.2917, allocations: 4 kB / 409.9 MB, free: 14.8 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.565e-05/0.2918, allocations: 23.98 kB / 409.9 MB, free: 14.77 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000431/0.2923, allocations: 89.42 kB / 410 MB, free: 14.7 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002149/0.2944, allocations: 2.023 MB / 412 MB, free: 12.53 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002616/0.2947, allocations: 0.7436 MB / 412.7 MB, free: 11.76 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.879e-05/0.2948, allocations: 21.53 kB / 412.8 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.18e-05/0.2949, allocations: 51.42 kB / 412.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of SimCode: time 1.463e-06/0.2949, allocations: 0 / 412.8 MB, free: 11.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/0.3166, allocations: 4.911 MB / 417.7 MB, free: 6.926 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.052/8.368, allocations: 4.562 kB / 417.7 MB, free: 6.922 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_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_BooleanSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches