Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 191.7 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.455/1.455, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] 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.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 47.92 kB / 370.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2686/0.2701, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample): time 0.003403/0.2735, allocations: 1.865 MB / 424.4 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001726/0.2753, allocations: 0.9898 MB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.902e-05/0.2754, allocations: 7.938 kB / 425.4 MB, free: 11.5 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005939/0.2759, allocations: 147.5 kB / 425.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002976/0.2762, allocations: 119.5 kB / 425.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005248/0.2768, allocations: 201.7 kB / 425.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002897/0.2771, allocations: 187.5 kB / 426.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.2772, allocations: 21.53 kB / 426.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001292/0.2773, allocations: 83.62 kB / 426.2 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001353/0.2774, allocations: 67.69 kB / 426.2 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.559e-05/0.2775, allocations: 12 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000147/0.2776, allocations: 59.94 kB / 426.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.394e-05/0.2777, allocations: 43.78 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.528e-05/0.2778, allocations: 51.62 kB / 426.4 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003145/0.2781, allocations: 209 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2781, allocations: 0 / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.2781, allocations: 0 / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.14e-06/0.2781, allocations: 0 / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0007277/0.2788, allocations: 449.8 kB / 427 MB, free: 9.848 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.3e-05/0.2789, allocations: 12.03 kB / 427.1 MB, free: 9.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.941e-05/0.2789, allocations: 38.75 kB / 427.1 MB, free: 9.789 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.08e-05/0.2789, allocations: 20.8 kB / 427.1 MB, free: 9.77 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003367/0.2793, allocations: 213.1 kB / 427.3 MB, free: 9.535 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2793, allocations: 4.375 kB / 427.3 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.933e-05/0.2793, allocations: 11.94 kB / 427.3 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003138/0.2796, allocations: 136.2 kB / 427.5 MB, free: 9.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.926e-06/0.2796, allocations: 4 kB / 427.5 MB, free: 9.363 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.2797, allocations: 4 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2797, allocations: 0 / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001014/0.2798, allocations: 35.97 kB / 427.5 MB, free: 9.324 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004664/0.2802, allocations: 329.4 kB / 427.8 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002367/0.2805, allocations: 111.9 kB / 427.9 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.08e-05/0.2805, allocations: 38.56 kB / 428 MB, free: 8.77 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.235e-05/0.2806, allocations: 11.94 kB / 428 MB, free: 8.758 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.2807, allocations: 79.33 kB / 428.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.2807, allocations: 0 / 428.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003616/0.2811, allocations: 145.5 kB / 428.2 MB, free: 8.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.767e-05/0.2812, allocations: 106.8 kB / 428.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002932/0.2815, allocations: 268.8 kB / 428.6 MB, free: 8.121 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.2815, allocations: 29.7 kB / 428.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.075e-05/0.2816, allocations: 120.1 kB / 428.7 MB, free: 7.965 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.2816, allocations: 16.16 kB / 428.7 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.003e-05/0.2817, allocations: 29.7 kB / 428.8 MB, free: 7.914 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001836/0.2818, allocations: 326.8 kB / 429.1 MB, free: 7.586 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.476e-05/0.2819, allocations: 23.98 kB / 429.1 MB, free: 7.562 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001137/0.282, allocations: 90.78 kB / 429.2 MB, free: 7.449 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.2822, allocations: 76.22 kB / 429.3 MB, free: 7.359 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2822, allocations: 4 kB / 429.3 MB, free: 7.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002051/0.2824, allocations: 117.5 kB / 429.4 MB, free: 7.234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.2824, allocations: 11.98 kB / 429.4 MB, free: 7.223 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.2824, allocations: 3.984 kB / 429.4 MB, free: 7.219 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.2824, allocations: 4 kB / 429.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.66e-05/0.2825, allocations: 8 kB / 429.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.2825, allocations: 0 / 429.4 MB, free: 7.207 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.986e-05/0.2826, allocations: 27.81 kB / 429.5 MB, free: 7.18 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/0.2826, allocations: 0 / 429.5 MB, free: 7.18 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample1.u,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001303/0.2827, allocations: 150.2 kB / 429.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.128e-05/0.2828, allocations: 61.5 kB / 429.7 MB, free: 6.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002337/0.283, allocations: 115.4 kB / 429.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.283, allocations: 0 / 429.8 MB, free: 6.836 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.283, allocations: 4 kB / 429.8 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.283, allocations: 11.92 kB / 429.8 MB, free: 6.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001844/0.2832, allocations: 176.7 kB / 430 MB, free: 6.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.2832, allocations: 4 kB / 430 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.368e-05/0.2832, allocations: 8 kB / 430 MB, free: 6.594 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2832, allocations: 4.062 kB / 430 MB, free: 6.59 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.17e-05/0.2833, allocations: 4 kB / 430 MB, free: 6.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.2833, allocations: 3.938 kB / 430 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2833, allocations: 0 / 430 MB, free: 6.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002525/0.2835, allocations: 170.5 kB / 430.2 MB, free: 6.391 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.252e-05/0.2836, allocations: 35.83 kB / 430.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.659e-05/0.2836, allocations: 0 / 430.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.259e-05/0.2837, allocations: 7.984 kB / 430.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.902e-05/0.2837, allocations: 15.92 kB / 430.2 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.2837, allocations: 4 kB / 430.2 MB, free: 6.328 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001903/0.2839, allocations: 196.5 kB / 430.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2839, allocations: 0 / 430.4 MB, free: 6.137 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000247/0.2842, allocations: 27.98 kB / 430.4 MB, free: 6.109 MB / 334.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: 7 ($whenCondition1,sample1.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 8 * 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.002072/0.2863, allocations: 1.047 MB / 431.5 MB, free: 5.219 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000223/0.2865, allocations: 71.84 kB / 431.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.2865, allocations: 256 / 431.5 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.353e-05/0.2866, allocations: 31.98 kB / 431.6 MB, free: 5.117 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.2869, allocations: 58.19 kB / 431.6 MB, free: 5.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.2893, allocations: 1.941 MB / 433.6 MB, free: 3.008 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001295/0.2894, allocations: 123.4 kB / 433.7 MB, free: 2.863 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.304e-05/0.2895, allocations: 17.48 kB / 433.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.674e-05/0.2896, allocations: 55.34 kB / 433.8 MB, free: 2.793 MB / 334.1 MB Notification: Performance of SimCode: time 5.61e-07/0.2896, allocations: 3.938 kB / 433.8 MB, free: 2.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03186/0.3214, allocations: 5.272 MB / 439 MB, free: 13.58 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.28, allocations: 5.531 kB / 439.1 MB, free: 13.58 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.98963e-05 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_SubSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable sample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable sample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! Error: Could not read variable subSample1.y in file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv. Warning: Get data of variable subSample1.y from file Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.SubSample_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.842132123187184]